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

3
votes
0answers
1k views

install pillow on ubuntu 14.04

I'm crazy with Pillow. I already ask here, without solving: Python Django Mezzanine install fail for Pillow package I have Ubuntu 14.04 and python 2.7. Installing pillow using pip or from github I ...
3
votes
0answers
221 views

Python Access Pidgin Data Structure by Dbus

I recentely started to program in Python and making a script/plugin for Pidgin,i need to access PurpleConversationUiOps and use the has_focus field,based in some examples in documentation of Pidgin i ...
2
votes
0answers
133 views

Why does pip -t not work on Ubuntu 15.04?

I've been having an odd problem with pip on Ubuntu 15.04. When I try to install anything using the "-t" option to put it in a specific directory, it fails with the following error: error: can't ...
2
votes
0answers
100 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
2
votes
0answers
89 views

Huge Python Problem

Preamble: I tried looking up a solution and nothing worked for me. First, when I run the following command $ sudo python --version Python 2.7.5+ Similarly for python2 and 3 $ sudo python2 ...
2
votes
0answers
50 views

Is it safe to modify thunderbird mail box from python?

I would like to compare and merge several mail boxes managed by thunderbird (because they contain a lot of duplicated messages). They are in the mbox format. My first idea was to use the standard ...
2
votes
0answers
98 views

How can I add a custom python indicator to the unity-greeter login screen?

I've installed a custom indicator called PRIME Indicator and it shows up in the top panel (next to date time etc) after I login. I would like to show the indicator before login on the unity-greeter ...
2
votes
0answers
55 views

Is it possible to transform sublime text or emacs to something like bpython?

I'm using sublime text 3 and I like it a lot, but maybe a bit more love for bpython. It detects what libraries are installed and has autocompletion for codes that weren't previously written in the ...
2
votes
0answers
145 views

Pyhton is messed up because of setuptools. Help please

I have trouble getting python working right, after a mixup with python setuptools. after this, I cannot run flexget and other programs without getting this error: flexget execute Traceback (most ...
2
votes
0answers
46 views

Seeing buffering everytime self.webview.open is used to open URL in quickly

I am new to developing apps with python-quickly. Here is the sample code i am trying. Everytime I run this a video is played based on login.php. But it takes time to start or what I understand is that ...
2
votes
0answers
997 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 ...
2
votes
0answers
192 views

How to run Python program installed system-wide through pip without root privileges?

I have two different Ubuntu computers that both has multiple user accounts. I wanted to try the latest version of the backup program Attic, so I used pip3 to install it—with success. However, I can’t ...
2
votes
0answers
176 views

How to distinguish between identical USB's

I have this system where I have 8 USB RFID readers which I would like to distinguish from one another. Here's a snippet from lsusb Bus 002 Device 011: ID 05fe:1010 Chic Technology Corp. Optical ...
2
votes
0answers
41 views

Install Acire and Python Snippets on Ubuntu 14 ?

Install Acire and Python Snippets This is very old,, do not work on Ubuntu 14! :( http://aciresnippets.wordpress.com/ last news 2010 :) give it a Alternative for Ubuntu 14 ??
2
votes
0answers
93 views

Python GTK: How to stop a function from happening if a checkbox is checked

In my program I have one of those annoying popups that alerts the user to go check the settings. I have a checkbox that if checked, is supposed to never show the popup again. I have no idea how to do ...
2
votes
0answers
237 views

Why does Ubuntu's webkit inspector look (and work) just like Safari?

In older Ubuntu, the python-webkit inspector looked like Chrome, as you can see in these screenshots: http://stackoverflow.com/questions/13132459 (It had some annoying bugs, too.) I see Midori's ...
2
votes
0answers
180 views

How to properly install PySide via pyenv?

I'm running Ubuntu 13.10 with Python 3.3.4, installed via pyenv. Running sudo apt-get install python3-pyside installs PySide in /usr/lib/python3/dist-packages/PySide, and I can make a symlink to that ...
2
votes
0answers
78 views

Specify the target directory in a package

I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program ...
2
votes
0answers
665 views

Canopy Express in Ubuntu 12.04 32-bit doesn't start

I installed the 32-bit version of Canopy Express in my Ubuntu 12.04 32-bit machine. I followed the installation guides here. Then when I run the program I get the following dialogue: Permission ...
2
votes
0answers
99 views

Terminal won't print “Refresh” in terminal

I have a slight problem today with my Ubuntu app. I've been following a Youtube tutorial. I've provided the link below with the rest of the links provided to help you find out the cause of the ...
2
votes
0answers
582 views

Python requests SSL version

I am using the python requests module on Ubuntu 13.04. I keep getting the error: requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert ...
2
votes
0answers
589 views

How do I install python in wine? I keep getting an error

Please help! I've been searching google, forums, and have yet to find a solution. Here is the output from my terminal: 2013-02-25 12:57:05 (1.01 MB/s) - `pywin32-214.win32-py2.6.exe' saved ...
2
votes
0answers
76 views

How to make Gtk spinbutton symbolic in 12.04 in only a specific application?

I am currently developing an application for Ubuntu 12.04 and Ubuntu 12.10 systems. My application is completely monochromatic except for the spinbuttons as seen in the screenshot below. This issue ...
2
votes
0answers
329 views

ubuntugis demands a partial upgrade? Is this safe?

I would like to do some GIS in ubuntu. When I use the repo: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable Update manager asks me to do a partial upgrade. The packages it wants to ...
2
votes
0answers
139 views

Is python-augeas missing a dependency on libpython2.7?

When I install python-augeas on a "minimal server" Ubuntu installation of 12.04 LTS, it throws the following import error when I try to use it: # python Python 2.7.3 (default, Aug 1 2012, 05:14:39) ...
2
votes
0answers
732 views

How to refresh unity launcher icons from python

I have written a program that runs from the unity launcher. In my preferences it would be useful for users to change the default icon of the .desktop launcher. I've set it up to change the file, but ...
2
votes
0answers
137 views

How do I use the Discoverer module with pygi GstPbutils?

I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module. from gi.repository import Gst, GstPbutils def on_discovered(discoverer, ismedia): print("%s -- %s" %( ...
2
votes
0answers
894 views

Programming with DBus using PyQt

I'm trying to write a desktop environment that supports the global menu Before I get started with my main task In PyQt I'm trying to get the dbus code to work with QtDBus as a proof of concept. Here's ...
1
vote
0answers
9 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
1
vote
0answers
36 views

variable assignment syntax error in python in ubuntu 12.04

I have a file, main.py, with code as: import CreatingTable CreatingTable.Creating() I get the following error: In the following code of CreatingData.py there are text files with data in them as ...
1
vote
0answers
29 views

How to edit and refresh a locally opened html using python script?

Using python program a local html file is opened in browser,there is a table in the html file,I want to edit the content of a cell in the table. Also I want to refresh it using python,since the ...
1
vote
0answers
17 views

How to get gnome session idle time?

Has the method to get the session idle time through dbus changed in the recent Ubuntu or my dbus code here is wrong? #!/usr/bin/env python import dbus bus_name = 'org.gnome.ScreenSaver' obj_path = ...
1
vote
0answers
17 views

Gedit Plugin: How to get the buffer of a newly opened file from another file in Gedit?

I've written a code for a Gedit Plugin which opens another file, self.window.create_tab_from_location(Gio.file_new_for_path(file_path), None, line_number, 0, ...
1
vote
0answers
29 views

save data to excel using openpyxl

I use the code fragment below to copy data to an excel file using openpyxl. for i, j in enumerate(fint): _= ws1.cell(column=i +1, row=globdat.cycle, value=j) wb.save(filename = ...
1
vote
0answers
41 views

Uninstall dysfunctional python module

I have installed python module functools via easy_install, and now I cannot uninstall it. When I run python like this python -c 'import functools' I got this error Traceback (most recent call ...
1
vote
0answers
38 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
1
vote
0answers
103 views

Installing python libs under Lubuntu 14.10 getting Errors

Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and pip3 install ...
1
vote
0answers
111 views

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which ...
1
vote
0answers
147 views

Messed up “update-notifier-common”-package / debian.deb882 not found

Unfortunately, when attempting to reinstall ttf-mscorefonts-installer and flasplayer-installer, I got the error that update-notifier-common is not working. According to root@AlkaliMetal:~# dpkg -s ...
1
vote
0answers
36 views

Best way to port PyScripter+GTK programs from Windows to Ubuntu

I have a bunch of small python graphics programs that I developed with PyScripter and GTK on Windows. I was hoping to switch to Ubuntu, but PyScripter is not available in Linux, and Spyder does not ...
1
vote
0answers
106 views

Using pip3-installed python 3 packages when apt-installed packages exist too?

I have numpy 1.8.2 installed in /usr/lib/python3/dist-packages (via apt), and the newest version (1.9.2) installed in /usr/local/lib/python3.4/dist-packages (via pip). Both paths are in sys.path (in ...
1
vote
0answers
34 views

System-wide text replacement similar to AutoHotKey

AutoHotKey has this text-replacement feature: ;bullet ::_bullet::• ;disapproval ::_dis::{U+0CA0}_{U+0CA0} ;lenny ::_lenny::( {U+0361}{U+00B0} {U+035C}{U+0296} {U+0361}{U+00B0} ) I am trying to ...
1
vote
0answers
139 views

Running Python script in Abaqus in Ubuntu

I am running a python script through the scripting interface in Abaqus. It's a basic script that writes a value from each element from the abaqus simulation into a a text file. The text file is then ...
1
vote
0answers
64 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
1
vote
0answers
29 views

DistutilsExtra problem

I have installed Python 2.7, setuptools and python-distutils-extra. When I try to run ./setup.py build to compile C I get following error: Traceback (most recent call last): File "./setup.py", ...
1
vote
0answers
67 views

Xvfb and scripts on Ubuntu Touch/Phone

Will I be able to run "xvfb" on Ubuntu Touch/Phone? I've read that you can use apt-get and use bash. So will I also be able to run Python scripts which use "Selenium" and "Xvfb" for headless Firefox ...
1
vote
0answers
154 views

Configure Django on Ubuntu Apache subdirectory

I am running apache2 server on Ubuntu 14. Now I want to configure Apache to work with mod_wsgi to run Django on a subdirectory of a domain such as www.abc.com/lab, but I always fail to do that. I ...
1
vote
0answers
56 views

Caffeine crush on start

Caffeine crushes on start: valery@valery-P50-A-K4M:~$ caffeine Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/support/unix_connect.py", line 89, in get_socket ...
1
vote
0answers
49 views

Time format operator using logging in python

I need to know the time delta between 2 events. I'm using logging in a script like this: format='%(created)f % (message)s'. This returned me epoch time in seconds BUT in my case time delta ...
1
vote
0answers
104 views

problem installing imagehash ubuntu 14.04

I wanna install python package named imagehash I tried to install with pip but I get exception: Requirement already satisfied (use --upgrade to upgrade): imagehash in ...