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

2
votes
1answer
979 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
61 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
727 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
469 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
1k views

How to use multiple Python versions on the same System?

I am trying to install Keryx which requires python < 2.7 I want to be able to use this software and yet not uninstall the newer version of python from my system and mess up any other programs that ...
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
566 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
175 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
327 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
12 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 ...
1
vote
1answer
27 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
415 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
791 views

How to install pyzmq for iPython Notebook in a Python 3 virtual environment?

I wanted to use iPython Notebook in Python 3 on Ubuntu 14.04. Because I have both Python 2.7 and Python 3.4 installed on my system--and for other implementation-specific reasons--I decided to use a ...
1
vote
1answer
88 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
147 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
108 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
70 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
149 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
84 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
177 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
361 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
207 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
438 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 ...
1
vote
1answer
211 views

Can I connect to running autostart python script?

I am running Lubuntu 13.10 an have a python script that is run on boot through ~/.config/lxsession/Lubuntu/autostart. The script startes a web application and outputs various information to terminal ...
1
vote
1answer
756 views

Trouble with jhbuild installation

I am trying to learn GTK+3 as per this site: https://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html. From the page: 1.1. Dependencies GTK+3 Python 2 (2.6 or later) or ...
1
vote
1answer
410 views

Can't install Python2.7 on Ubuntu 13.04

I'm trying to install Python 2.7 on my Ubuntu 13.04 VPS. I'm issuing; sudo apt-get install python=2.7.4-0ubuntu1 and getting this in return Reading package lists... Done Building dependency tree ...
1
vote
1answer
1k views

ubuntu 12.04 python problem or?

Hi i am trying to fix this for a long time but without success. When i open my zsh terminal i get this error: (terminal is working but error appear) Welcome to the world of tomorrow! ...
1
vote
1answer
3k views

How to install Visual Python?

I'm a Linux newbie but I'm determined to get my favorite applications on my laptop running Ubuntu 12.04. I just installed Cinnamon. I'm trying to install Visual Python and it requires Python 2.7. I ...
1
vote
1answer
88 views

Issue getting mysql to work correctly

I am installing a custom app that needs mysql, which I already had working so I am a bit confused on whats going on. Anyways here is the error Error loading MySQLdb module: this is MySQLdb ...
1
vote
1answer
1k views

Cannot import gnuradio. Is python set correctly?

When launching gnuradio companion it gives this error message: Cannot import gnuradio. Is the python path environment variable set correctly? All OS: PYTHONPATH Is the library path environment ...
1
vote
1answer
597 views

Dragon Naturally Speaking in Ubuntu

I'm trying to get Dragon Naturally Speaking working through Ubuntu.... I set it up in virtualbox, but i found it incredibly tough to access its features through Linux. I know there is a way to do it ...
1
vote
1answer
105 views

Does pyopencl require discrete graphics?

When I try to install the package pyopencl, it pulls in Nvidia stuff (nvidia-current, I think). This appears to install without problems, but then messes up my OpenGL-related things. I thought a ...
1
vote
1answer
86 views

How to get translations on Launchpad for a custom program

I wrote a program and uploaded it to a ppa. This program uses translations which I manually create using pylupdate4 Translate.pro, then Qt-Linguist, then lrelease Translate.proon my home PC. So the ...
1
vote
1answer
507 views

Install package from ppa with setup.py file

I am writing a python program that I want to upload to a ppa so other people can install it on their machine. Right now I have a setup.py-file that copies the files to their place and installs the ...
1
vote
1answer
1k views

Can't install python-dev. Packages have unmet dependencies. I think it's a wrong Python version

root@Managementserver:~# sudo apt-get install python-pip python-dev build-essential -y Reading package lists... Done Building dependency tree Reading state information... Done build-essential ...
1
vote
1answer
47 views

How to make a Quickly project standalone?

I have a Quickly project. But now I want it to be independent from Quickly. How can I do it? How can I run it without typing 'quickly run'?
1
vote
1answer
1k views

Set CLASSPATH for python

I want to execute a python file called "ex1.py". The execution works fine, the program does, what it ought to do. The problem is the following: This file is stored in the folder ...
1
vote
1answer
607 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 ...
1
vote
1answer
55 views

Attribute error:portal_url while testing a method

I need to test a method called addServerUrl() using the command "bin/test -t addServerUrl()" in terminal addServerUrl contains the following code: def addServerUrl(self,html_src,prefix): url ...
1
vote
1answer
1k views

eclipse + pydev autocomplete

Problem:- Autocomplete for python not working in eclipse + pydev. Platform:- OS is Lubuntu; Eclipse Version: 4.2.2; PyDev for Eclipse 2.7.3.2013031601 I have configured the pythonpath in ...
1
vote
1answer
101 views

How to recover Python on Ubuntu 12.10?

I've accidentally removed /user/local/lib/python2.7/dist-packages on ubuntu 12.10. Do I need to reinstall python? Some of the softwares like ibus or software center seem don't work any more. What ...
1
vote
1answer
389 views

How to install weather indicator on ubuntu 12.04?

I tried to install it from the market but that's what it says
1
vote
1answer
2k views

uwsgi can't find python plugin

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message: nickd@my-vps:~$ sudo ...
1
vote
1answer
128 views

Which is the best package to draw drawings in python?

We are trying to implement the drawing tools like line, circle, pencil, brush and so on in gtk. Is it possible to draw these things into the textview? Would one of these packages work for the ...
1
vote
1answer
133 views

Can I have some help installing python-captcha? dpkg error 1

I have searched around the forums and tried a number of solutions but nothing I have tried has fixed my problem. Here is the terminal info john@ubuntu:/var/lib/dpkg$ sudo apt-get install ...
1
vote
1answer
230 views

writing note taking app, save and load text with tags from textbuffer written in python and glade

I am writing a note taking app with python and glade. I've been searching the web for the how to save and retrieve textbuffer with tags from simple app made with python and glade. I would like to get ...
1
vote
1answer
1k views

Update Manager won't open (error related to pythonverbose)

I'm having an issue with update-manager. Last night, my computer restart suddenly during the update process. Now it won't open and it keep appearing on the notifier with a message warning that an ...
1
vote
1answer
390 views

Using Quickly to develop apps for Raspberry Pi?

Can Raspberry Pi apps be developed with Quickly on Ubuntu? I know there isn't Ubuntu for the Pi yet but what I want to do is develop the app on my Ubuntu machine, compile it and copy the deb file to ...
1
vote
1answer
1k views

python-tk package is not recognized?

I've got a small program I've written in python (2.7.3) that I'm moving over to another box. However, when executing this line: from Tkinter import * I get this error; Traceback (most recent call ...