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
1answer
207 views

How do I disable Apport for my user account?

Every time my Python program ends, I get the following: close failed in file object destructor: IOError: [Errno 9] Bad file descriptor Error in sys.excepthook: Traceback (most recent call last): ...
3
votes
1answer
1k views

“Could not import runpy module” when running apt-get on Xubuntu 12.10

Just installed Xubuntu 12.10, on first apt-get update and upgrade I got Could not import runpy module and all installs seem to stop there. E.g. sudo apt-get --reinstall install python gives the ...
3
votes
1answer
2k views

apt-get install for different python versions

I have Ubuntu 10.04 with python2.6 by default. I have installed python2.7. When I want to install python packages with apt-get python- it gets installed to python2.6. How can I make it to install to ...
2
votes
1answer
40 views

Problems installing Numpy in Virtualenv

I have numpy installed globally (I think via Django) but I'm trying to install it within a virtualenv. When I run pip install numpy (within my virtualenv), it gets stuck at Running setup.py ...
2
votes
1answer
40 views

How to fix these problems installing imgdupes

I'm trying to install imgdupes, but the terminal says pip command not found. https://github.com/jesjimher/imgdupes sudo apt-get install python-cffi python-dev libjpeg-dev gir1.2-gexiv2-0.10 sudo pip ...
2
votes
1answer
97 views

PDF viewer that can be controlled programmatically (via dbus, pipe, etc)?

Is there a PDF viewer that I can control from a Python program, via dbus, a pipe, or something similar? I have a program for presentations that displays my own notes while displaying a PDF on a ...
2
votes
1answer
779 views

python 2.7.9 backport to trusty (14.04)

I try to backport Python 2.7.9 from vivid to trusty but when launchpad build this pakage there is an build error. I create my backport : backportpackage -d trusty -u ppa:splanquart/python ...
2
votes
1answer
278 views

Ubuntu, gtk 3.10.8, not able to visualize a menubar made by Glade

My problem is that I've drawn a UI with Glade, but the menubar doesn't want to be drawn. Here is the xml, just a sample: please try to check out the properties. It is a very simple menubar but I ...
2
votes
1answer
7k views

Why do I get ImportError when trying to import Pandas Python module?

I installed the Pandas module for Python 2.7 using apt-get. However, when I try to import the module, it raises an ImportError: import pandas as pd File ...
2
votes
1answer
177 views

Gedit plugins error

i can 't run some plugin in gedit. when i run some plugin like " externaltools " program is closed and show this error in the terminal: > > (gedit:11796): GVFS-RemoteVolumeMonitor-WARNING **: ...
2
votes
1answer
1k views

Python Module PyBluez Error

I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5. I installed PyBluez and Bluez-libs. When I type import bluetooth or from bluetooth import * it successfully imports ...
2
votes
1answer
452 views

Wrong package for Idle-python2.7?

I'm running python 2.7 in Ubuntu 13.10, and idle (idle-python2.7) has stopped working. Whenever I try to open a file in a editor window, it is blank, though the file does exist and is not empty/blank. ...
2
votes
1answer
1k views

Cinnamon is broken after upgrade to 13.10

I see reports of people with Unity broken after upgrading to 13.10. In my case Unity works fine but cinnamon is broken. It opens the startup applications but no window manager, no menus and the ...
2
votes
1answer
707 views

GoG on Linux installation Procedure

I wanted to install GoG on Linux ( http://gogonlinux.com/ ) and as I went through the install process (which is for Ubuntu12.04) and the result is that I have all the files built by python, but no ...
2
votes
1answer
2k views

gdb uses wrong python

When I launch gdb (on Ubuntu 12.04 LTS) it immediately crashes with the following output: BlockquoteTraceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in <module> ...
2
votes
1answer
1k views

How to control gnome-terminal from Python scrypt?

I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it. My user should then be able to modify the command, or maybe ignore using the up arrow ... ...
2
votes
1answer
66 views

Are there PHP bindings for indicators and notifications?

Are there already some projects/extensions or wrappers to allow easy creation of ubuntu unity indicators with PHP before I try and 'reinvent the wheel'. A basic Python template that would interface ...
2
votes
1answer
777 views

Convertion of tiff image in Python script - OCR using tesseract

I want to convert a tiff image file to text document. My code perfectly as I expected to convert tiff images with usual font but its not working for french script font . My tiff image file contains ...
2
votes
1answer
530 views

Ubuntu 12.10 - set alternating row colors in gtk3 TreeView

Ubuntu used to have alternating row colors for gtk TreeView widgets. Some applications still do, like Banshee. Alternating row colors would really help my application (written in python 2.7, and using ...
2
votes
1answer
3k views

Getting “Python (v2.7) requires to install plugins” error during ripping

I have just installed Ubuntu 12.10 from a flash drive that you create from the official ubuntu website. I am getting some errors on the system quite frequently. I have tried redoing it but I keep ...
2
votes
1answer
580 views

How to build PyQt for Deadsnakes Python 2.7 on Ubuntu 10.04?

I am trying to configure Python2.7 on Ubuntu 10.04 as an alternative package. I got the Deadsnakes PPA I set up pip and virtualenv Now, I am trying to build PyQt (PySide seems to have similar ...
2
votes
1answer
177 views

Custom widgets/controls in application indicators

I want to develop an app for ubuntu, that integrates inside the calendar indicator/menu. It should allow to enter info right from it, and have several controls like input boxes, drop downs, spinners ...
2
votes
1answer
368 views

Getting the name of the process, that corresponds to the active window

How can it be did using Python(in Ubuntu)?
1
vote
1answer
45 views

How do I get my “gedit” plugin to work?

I'm trying to install a plugin for the gedit text editor that will allow for split pane viewing of files; i.e. I will be able to view multiple files side-by-side (simultaneously). The plugin came in ...
1
vote
1answer
29 views

Python Install Questions - PyDoc Not Working - Questions on Using GitHub

This question is actually threefold. I have questions mostly regarding Python and the installation process. I also have questions on how I can find documentation for a module that is hosted on GitHub. ...
1
vote
1answer
23 views

execute python package to download a pdf file

i am new in python. please dont bore. i have a python package to download pdf file from a specific site. i can not execute this package. Please help me someone to execute the package. thanks in ...
1
vote
1answer
72 views

Backintime won't start (no module named dbus)

I've got the following error on Ubunu 14.04 : user@ubuntu:~$ sudo backintime Traceback (most recent call last): File "/usr/share/backintime/common/backintime.py", line 26, in import config ...
1
vote
1answer
40 views

Running Google App Engine on Ubuntu 14.04.2

I recently switched from Windows 8.1 to Ubuntu so please forgive me if this is a stupid question. I'm new to all this. So I have python 2.7.6 installed and I tried to get Google App Engine working, ...
1
vote
1answer
45 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
1
vote
1answer
21 views

upstart starts python script but it behaves unexpectedly

The program works when started by cron or from the shell. But when started by upstart, it seems to loop indefinitely. The scripts and the files they use are in the /home/user/ directory, and are ...
1
vote
1answer
29 views

Remove separate version of Python 2.7 after install

I was trying to install a separate version of python 2.7 (2,7.10) on my ubuntu machine - the idea was to run them seperately, but when I installed it from source, it became the default version. I ...
1
vote
1answer
75 views

wrong ELF class for python 2.7 (32-bit ubuntu 14.04)

I installed Acestream and found that acestreamengine won't run. Trying to start acestreamengine, I get this output: 2015-05-10 12:19:52,008|MainThread|acestream|error during startup Traceback (most ...
1
vote
1answer
49 views

Install Numpy on multple python version

I have installed the numpy module for Python 2.7. However I have three versions (2.4, 2.6 and 2.7) on my system and it has installed on 2.7 only. I presume this is the default python as this is the ...
1
vote
1answer
116 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
1
vote
1answer
64 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
1answer
1k views

pip raises ImportError: cannot import name HTTPSHandler

After installing the python-pip package in Ubuntu 14.04.1 I get: $ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', ...
1
vote
1answer
72 views

AttributeError: type object 'IP' has no attribute 'SubnetSet'

I'm trying to install OpenVPN access server on a virtual server with Ubuntu 14.04 OS. But I get this error: Use local authentication via internal DB? > Press ENTER for default [no]: Traceback ...
1
vote
1answer
140 views

Creating GTK+ 2 key press event

I wrote a small GTK+ 2+ program (in Python) that responds to a button click by sending a gtk.Event to simulate a key press. It works fine on every version of Ubuntu that I have including Kubuntu, but ...
1
vote
1answer
267 views

nvidia-settings ImportError: No module named 'dbus'

I try to switch my graphics card via NVIDIA X Server Settings. However when I click on NVIDIA: Traceback (most recent call last): File "/usr/share/screen-resolution-extra/nvidia-prime.py", ...
1
vote
1answer
540 views

Update Manager doesn't work “ImportError: No module named 'codecs'”

Hello, Dear awesome community Each time I try sudo update-manager it returns Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File ...
1
vote
1answer
229 views

PySide-Tools in Python3 - Ubuntu 14.04

I'm working on a UI for a Python Programme I have and have been using Pyside-UIC to convert QTDesigner docs into python files on a previously windows 8 computer. That computer got corrupted so I've ...
1
vote
1answer
116 views

Running a python scrip using startup

I am trying to get a simple python code that I have to run in the background at startup, and stay running. The best option that I have found so far is to use Upstart. I wrote the following .conf file ...
1
vote
1answer
80 views

How do I install Bem++?

I don't have any experience in using Ubuntu but I want to use this software: http://www.bempp.org/ which unfortunately forced me to use Ubuntu. I have installed Ubuntu and later when I tried to ...
1
vote
1answer
186 views

Getting error while installing python-kivy packages in Ubuntu

I'm not able to install python-kivy, I got this error: dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Processing triggers for ...
1
vote
1answer
114 views

How do I make some TCP ports accessible internal only?

I am running four instances of Tornado app at ports 9000 - 9003. I use Nginx as load balancer at the front. However user can access these ports also, for example mysite:9000 is also accessible. so ...
1
vote
1answer
262 views

Installing pycairo on Python 3

I'm trying to install pycairo, but my symlink is sending it to python 2, though it requires 3. How do I get around this error? # ./waf build ./options() The project was not configured: run "waf ...
1
vote
1answer
450 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: ...
1
vote
1answer
1k views

OpenCV error in setting resolution with c910

I've been trying to use OpenCV to control my webcam (Logitech c910) through python. I 've managed to capture images through .read() but they are 640 x 480 and I haven't managed to set the resolution ...
1
vote
1answer
244 views

Quickly produces an error when installing

I ported an application over to Quickly, replacing all the files as necessary. When I say quickly run the application runs without flaw. However, the problem occurs when I try to package/install it. ...
1
vote
1answer
462 views

How to install Python 3.4 properly on Saucy?

For my project I need Python 3.4 (beta 2) for its asyncio module, but there is no official package for Ubuntu yet (unlike Windows, which has an MSI already). I'd like to know how can I install Python ...