ubuntu-14.04

WxPython: PyInstaller fails with No module named _core_

落花浮王杯 提交于 2019-12-01 04:04:19
I am converting my wxpython (3.0.2.0) application to binaries using PyInstaller. The binaries work fine when built and executed on Ubuntu 12.04. However if I build on Ubuntu 14.04, I get the following error. (The application works when I launch the python script directly i.e. python my_application.py even in Ubuntu 14.04). Any idea what could be missing when packaging the application using PyInstaller? $ ./my_application Traceback (most recent call last): File "<string>", line 22, in <module> File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyi_importers.py", line 270, in load

wkhtmltopdf and chinese characters

给你一囗甜甜゛ 提交于 2019-12-01 04:00:08
问题 Trying to generate a PDF with wkhtmltopdf but it gives me a lot of trouble displaying all the characters. Some of characters work - e.g. when printing "Invoice No (付款编号)" Chinese character no 1, 2 and 4 are correctly printed but character no 3 just displays an empty space in the PDF. "Customer no (客户编号)" Chinese character no 1 and 4 are correctly displayed but character no 2 and 3 aren't displayed in the PDF. "Total (总额)" none of the Chinese characters are displayed in the generated PDF. I'm

vagrant : Failed to mount folders in Linux guest, “vboxsf” file system is not available?

你。 提交于 2019-12-01 03:46:56
I have VirtualBox 4.3.10 and Vagrant 1.4.3 installed on my Ubuntu 14.04 64 bit Desktop. Earlier, worked with vagrant technology but this time, multiple issue. Let me describe what I have done clone private git to local system /opt/lampp/htdocs/{project} : done root@desktop:/opt/lampp/htdocs/{project}$ vagrant up gives message on terminal while execution GuestAdditions versions on your host (4.3.10) and guest (4.2.0) do not match. command completed with below message Failed to mount folders in Linux guest. This is usually beacuse the "vboxsf" file system is not available. Please verify that the

/bin/sh: 1: Syntax error: EOF in backquote substitution

两盒软妹~` 提交于 2019-12-01 03:12:21
I created a new task in crontab as shown below : */2 * * * * mongodump --db prodys --out /backup/databases/mongoDatabases/`date +"%m-%d-%y"` I'm getting following error : /bin/sh: 1: Syntax error: EOF in backquote substitution Please help, I don't have any clue whats wrong. The problem is that cron treats % as newlines. From crontab POSIX man page: Percent-signs (%) in the command, unless escaped with backslash \, will be changed into newline characters, and all data after the first % will be sent to the command as standard input. Also use Command Substitution syntax as $() over the legacy ``

How to start redis-server on a different port than the default port 6379 in ubuntu

别等时光非礼了梦想. 提交于 2019-12-01 02:53:47
How to start redis-server on a different port than the default port 6379 in ubuntu I have used the following steps to install the redis sudo add-apt-repository ppa:rwky/redis sudo apt-get update sudo apt-get -y install redis-server I installed, but I don't know how to how to start redis-server on a different port than the default port 6379 So kindly tell me the steps to change the default port to different port ? redis-server --port 6380 will start a Redis server listening to port 6380. redis-cli -p 6380 -- a suggestion made here as well -- does not start a Redis server listening to port 6380

Python or LibreOffice Save xlsx file encrypted with password

拈花ヽ惹草 提交于 2019-12-01 01:23:33
I am trying to save an Excel file encrypted with password. I have tried following the guide on https://help.libreoffice.org/Common/Protecting_Content_in - and works perfectly. However, this is in the GUI, but I am looking for a solution using the command line interface in headless mode. I have looked at the man libreoffice , but I could not find anything in there. Likewise I have looked at the documentation of the Python 3 library openpyxl , but I did not find anything useful there either. Is it possible to save an Excel 2007+ file encrypted with a password on Ubuntu 14.04/16.04 using the

WxPython: PyInstaller fails with No module named _core_

偶尔善良 提交于 2019-12-01 01:19:06
问题 I am converting my wxpython (3.0.2.0) application to binaries using PyInstaller. The binaries work fine when built and executed on Ubuntu 12.04. However if I build on Ubuntu 14.04, I get the following error. (The application works when I launch the python script directly i.e. python my_application.py even in Ubuntu 14.04). Any idea what could be missing when packaging the application using PyInstaller? $ ./my_application Traceback (most recent call last): File "<string>", line 22, in <module>

Sidebar Enhancement plugin installed but not working

自作多情 提交于 2019-12-01 00:44:19
system configuration: Sublime text3 build 3065 + Ubuntu 14.04 I want to add preview in Browser and found that Siderbar Enhancement (SBE) is best plugin to do that. Below are the steps i have done Folder added and project and work space created in ST3 Install [SBE], following the instructions. First removed previous instance of SBE and then install via via Package Control Restart the ST3. But still no menu in folder context menu? Is that any issue with plugin/system or am I missing something? Please help me how to do it? BoredToolBox Exactly as posted above. The context menu is added to the

postgres in vagrant(ubuntu14.04)

╄→гoц情女王★ 提交于 2019-11-30 20:24:18
I tried to create simple dev environment with vagrant but fall in problem with postgres. My Vagrantfile is simple: # -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" config.vm.network "forwarded_port", guest: 8000, host: 8000 config.vm.network :public_network config.vm.provision "ansible" do |ansible| ansible.playbook = "playbook.yml" end end and I use ansible for provision: - name: Configure development

Sidebar Enhancement plugin installed but not working

吃可爱长大的小学妹 提交于 2019-11-30 19:08:58
问题 system configuration: Sublime text3 build 3065 + Ubuntu 14.04 I want to add preview in Browser and found that Siderbar Enhancement (SBE) is best plugin to do that. Below are the steps i have done Folder added and project and work space created in ST3 Install [SBE], following the instructions. First removed previous instance of SBE and then install via via Package Control Restart the ST3. But still no menu in folder context menu? Is that any issue with plugin/system or am I missing something?