Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

1
vote
0answers
591 views

Firefox won't work. Locale not supported by C library

I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves ...
1
vote
0answers
338 views

How to run Python- postgresql in ubuntu 12.04

I am trying to test pyhton-postgresql script in ubuntu 12.04. The script is this: import psycopg2 import sys con = None try: con = psycopg2.connect(database='mydb', ...
1
vote
0answers
338 views

How to make Ubuntu 13.04 open .py with IDLE for Python 2.7 automatically?

I'm using Ubuntu 13.04 and python 2.7. When I click a .py file, it opens it in gedit. I want it to open in IDLE. When I right-click and choose "open with", IDLE is not in the list. I have tried ...
1
vote
0answers
391 views

GDB import error “ImportError: No module named _weakref ”

I am getting below error when I try to run gdb. from the command line. If type gdb , I get the following error. root@ubuntu:~# gdb Traceback (most recent call last): File ...
1
vote
0answers
187 views

Modifying openstack-dashboard package's source code in Ubuntu when installed using apt-get

I have installed HORIZON openstack-dashboard using "apt-get install openstack-dashboard". I want to apply a patch to that code. I tried to search for the directory where this package's source-code is ...
1
vote
0answers
99 views

Dotdeb alternatives for Ruby or Python?

I really like Dotdeb, but it doesn't include packages for Ruby and Python. While I could build my own repository, I wouldn't want to reinvent the wheel (and then be forced to drive). Are there any ...
1
vote
0answers
52 views

quickly dependecies problem

I use quickly to develop an app. The thing is I wanted to use a library called BeautifulSoup which is found in Universe repository, under python-bs4 library. So I did a quickly configure ...
1
vote
0answers
44 views

What's “Unity.LayoutHint” intended for?

I currently write my own lense in python (Ubuntu 13.4) using singlet. In the api documentation, there is a Unity.LayoutHint (View), which is used by Unity.PreviewAction (View). I don't see any change ...
1
vote
0answers
60 views

Change icon with Launcher API

With Launcher API provided by libunity I can add a counter or a progress-bar to my application icon. But I would also like to change the icon it self or the name of the application. Is this possible? ...
1
vote
0answers
31 views

Batch Launchpadlib api queries together

I want to get information about all the ubuntu bugs filed till date. So I used the launchpadlib api to get all of them using the id. I start a loop at id 1 and continue. But this is a very slow ...
1
vote
0answers
132 views

Turn screen off when no motion in front of webcamera

Is it possible to automatic turn screen off when there is no motion detected in front of webcamera for X minutes ? Can i use sudo service motion start and xset dpms force on/off somehow ...
1
vote
0answers
233 views

gcalcli throwing ssl errors in 13.04

I'm using Ubuntu 13.04. I was using gcalcli (from source) previously on Ubuntu 12.04 and it was working fine. But on 13.04, it fails to authenticate google with an ssl error. It opens a new bowser ...
1
vote
0answers
254 views

Store cookies with WebKit (python)

So I was watching the "Create Your First Ubuntu App"-Video from Jono Bacon and got the idea, to create a simple app. That creates a window with a WebView und opens the URL to Google Keep. Everything ...
1
vote
0answers
209 views

How to create an Ubuntu app using python and Qt4 designer

I recently started developing Ubuntu desktop apps using Quickly. But then I tried out the Qt4 designer and I feel more comfortable with it than Glade designer that Quickly uses. I liked developing ...
1
vote
0answers
231 views

Installing gphoto2 to use the python binding not working

I want to use the Python bindings that are available for gphoto2 and this requires a build from their tarballs. My first step is simply to build gphoto2 such that it recognizes my camera and thus far ...
1
vote
0answers
173 views

I have a problem installing activestate python instead of the default. How can I fix it? Syntax error: “)” unexpected

I am getting this error when trying to run the ./install.sh for ActivePython. How can I correct this? cd /tmp wget ...
1
vote
0answers
173 views

IPython qtconsole not launching, Ubuntu 12.04

When I try launch Ipython qtconsole from terminal, I get the following error: python: /build/buildd/sip4-4.13.2/siplib/siplib.c:7915: sip_api_can_convert_to_type: Assertion `(((td)->td_flags & ...
1
vote
0answers
69 views

How safe is running Wubi's main.pyo using pyrun?

Wubi fails to run for me (see this unresolved question) I have found out that I get the first wubi installation screen if I run pyrun main.pyo from the %TEMP%\pyl**.tmp directory. If I proceed in ...
1
vote
0answers
236 views

Keybindings for individual letter keys (not modifier-combinations) on a GtkTextView widget (Gtk3 and PyGI)

I've been able to set several keybord shortcuts for a GtkTextView and a GtkTextEntry using the new css provider system. I'm finding, though, that I only seem to be able to establish keybindings for ...
0
votes
0answers
7 views

Matplotlib: suggest unexisting filename when saving displayed figure

Is it possible to change the default suggested filename to save a figure to? The default interface always suggests figure_1.png filename even when it exists. This means that, each time I want to save ...
0
votes
0answers
33 views

power down happened during version upgrading

While upgrading from Ubuntu 13.10 to 14.04 unfortunately a power down happened and the PC got powered off. When again booted, I was neither able to upgrade version nor install any software through ...
0
votes
0answers
52 views

fresh install, python-software-properties unmet dependencies

attention: This might be more a question for "gis.stackexchange" but it is Ubuntu-related Geonode 2.0 is available for Ubuntu 12.04 but not for Ubuntu 14.04. According to the docs it should be ...
0
votes
0answers
22 views

anki issues how to make work

Hi further to my question ealrier Below is the error message I get from my computer when I try to use Anki (2.0.28) Today, I have ascertained that it is my computer and not the files for anki which ...
0
votes
0answers
37 views

Error processing package mumble-django

Everytime when i try to install update from the terminal this error is displayed. How do I sort it out? Setting up mumble-django (2.10-2) ... dpkg: error processing package mumble-django ...
0
votes
0answers
20 views

Samsung tv serial commands with python

I have a Samsung Plasma display that I use a Python script to turn on and off with its serial interface. (ex-link). import time, serial ser = serial.Serial(port='/dev/ttyUSB0', baudrate=9600, ...
0
votes
0answers
19 views

Configuration error for pep8 and flymake for emacs

I am trying to configure pep8 to ignore E221, E222, and E226 (all related to spacing around operators). I followed this documentation https://pep8.readthedocs.org/en/1.4.6/intro.html to generate a ...
0
votes
0answers
39 views

python download just mp3 from youtube

I want just to download mp3 tracks from youtube, I know that services like youtube-dl download first an .mp4 and then they convert it. Is it possible to download just a .mp3 in a 256 kb/s format? If ...
0
votes
0answers
47 views

Unable to install bsddb185, Python library for opening Berkeley DB version 1.85 files on Ubuntu

I am writing a python program that makes use of some legacy Berkeley DB 1.85 files. Unfortunately I am unable to install the bsddb185 Python package, either for Python version 2.x and for Python 3. ...
0
votes
0answers
30 views

notify-send does not work with root on Ubuntu 14.04

I have a small python script that I start it using a shell script stored in "/etc/X11/Xsession.d" The code is very simple it show a notification message import os import time while True: ...
0
votes
0answers
28 views

Why doesn't 'launcher.set_property(“urgent”, True)' work?

My script: #!/usr/bin/python # update bar on dash icon by stdin # ex: for i in {0..100};do echo "$i";sleep 0.3;done | ./$0 import sys, time from gi.repository import Unity, Gio, GObject, Dbusmenu ...
0
votes
0answers
30 views

How to create an installer for a python GTK3 application?

I have just finished developing a Python 2.7 application using Gtk3 for GUI. My question is, how can I now create an installer for Windows, Mac, and Linux (possibly three different installers) for my ...
0
votes
0answers
56 views

Cannot compile GDB7.8 with Python support

I am trying to install GDB7.8 with Python support. From the source folder, I am running ./configure --with-python When I did tab-complete from --with- I did not see Python in the list. But when I ran ...
0
votes
0answers
42 views

By mistake I removed Python. Terminal, music player, video player, Software Center etc. are gone

I work on Ubuntu 14.04 to install Python and other packages I entered the following command : sudo apt-get install python python-pip python-pyparsing python-mysqldb gunicorn nginx git-core ipython ...
0
votes
0answers
20 views

Packaging using Quickly and Python 3

I have written an application using Quickly with Python 3. I have adjusted everything necessary for running with Python 3, converted headers to #!/usr/bin/python3, fixed helpers.py, etc. But when I ...
0
votes
0answers
49 views

I'm receiving a GDB test error installing Python 3.4.1 on 14.04

I'm trying to create a VirtualBox VM with Ubuntu 14.04 and Python 3.4.1. I've downloaded the source https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz And I've updated OpenSSL to resolve a ...
0
votes
0answers
10 views

ubuntu 12.4 starts with a balch window agter installing kivi

Iam running ubuntu 12.4 in dual boot with windows 7 on my machine .I installed kivi (with ubuntu), and when I just have rebooted the machine , ubuntu starts with a balck window .I tyed the recovery ...
0
votes
0answers
43 views

upgrade to 14.04 broken: python error: NameError: name 'MAGIC' is not defined

my release upgrade is broken, shows following error related to python: http://www.pasteall.org/53013 My all python versions are: python python2.7 python3.3 python3m python2 python3 ...
0
votes
0answers
78 views

gdb uses python3.3

Currently in Ubuntu 14.04 it seems that gdb uses Python 3. I'd like to downgrade to using the gdb version that uses Python2. Is there any way I could go about doing that easily?
0
votes
0answers
140 views

Install Scipy at virtualenv

I asked a question a few days back, on how to run an older version of matplotlib and I got an amazing answer back. What I had to do was to execute these commands: mkdir matplotlib_1.1.1 cd ...
0
votes
0answers
169 views

Install pygame in anaconda

I have anaconda on Ubuntu 14.04. I want to install the pygame module with anaconda. I already run sudo apt-get install python-pygame, but this only works on python, not in anaconda.
0
votes
0answers
63 views

Untrusted Package Errors when installing Okular and ACE Stream

Whenever I try to install a new application, I get 'Untrusted Package Errors'. For example, at the moment I'm trying to install 'Okular', but I keep getting an Untrusted Package Error upon ...
0
votes
0answers
36 views

multiple connection pycurl ppp0 and ppp1

I have already looked at this question Dialing into multiple PPP connections and it's working well but multiple connections are not available if I'm adding table ppp0, the other ppp1 cant connect ...
0
votes
0answers
90 views

I need someone to go through my conky scripts and correct my mistakes

I modified some conky scripts that I downloaded online. I cant quite figure out how to make the rss feed run. I tried two methods to get the rss feed - the rss command in conky (used in dinamalar ...
0
votes
0answers
45 views

Trying to use Pandas in Python - Error: wrong ELF class: ELFCLASS32

I have installed the latest version of Pandas by using the following: sudo apt-get install python-pandas but I keep getting the following error message when i try to import into Python: ...
0
votes
0answers
155 views

unable to install a package using pip

I'm triying to install a package using pip inside a virtualenv: pip install fuse-python but the output is Downloading/unpacking fuse-python Downloading fuse-python-0.2.tar.gz (53kB): 53kB ...
0
votes
0answers
11 views

Qiime softwares not recognized by PHP. How to configure extentions for it?

I have a script in bash that calls some python functions installed from Qiime packge. I put a echo "end of bash script" only for control. If I call this bash script from terminal it works good. But ...
0
votes
0answers
46 views

Run Twisted server on startup

I am pretty new to Ubuntu and tried to install portia according to this howto: https://github.com/scrapinghub/portia#running-portia Everything worked fine after I run the command twistd -n slyd. I ...
0
votes
0answers
43 views

configure python and cvblob

Hi I'm trying to configure cvblob in order to use it with python ,using the explanition h here but when i came to test it i got this error: ...
0
votes
0answers
14 views

Error while trying to run Pycocuma Contact Management program

I need help understanding this message! mainctrl = MainController() File "/usr/lib/python2.7/dist-packages/pycocumalib/MainController.py", line 79, in __init__ self.view = view = ...
0
votes
0answers
44 views

Bash if password filled save it

I am trying to save a password to gnome keyring via python script. The python script will be runned from bash script if password is filled in zenity GUI. Example: User inserts hes/hers password to ...