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
3answers
3k views

How to download pygame in python3.3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?
4
votes
2answers
539 views

How do I detect when my system wakes up from suspend via DBus or similar in a python app?

In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus? I'm new to ...
0
votes
1answer
11 views

Install and use Hovercraft on Ubuntu 14.10

I am trying to use hovercraft on my Ubuntu 14.10 laptop. This is a python script, and I'm not that familiar with python... So here is what I've done: first, I installed hovercraft using sudo pip ...
2
votes
2answers
315 views

13.04 Python gi._glib no attribute GError

I have a Python application that ran without problem on 12.10, but on upgrading to 13.04 the application fails with the following error : except gi._glib.GError, e: AttributeError: 'module' object ...
1
vote
0answers
13 views

system-config-printer fails to launch

12.04 system-config-printer fails to launch Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 31, in <module> import gtk File ...
0
votes
0answers
9 views

sshuttle consumes all resources

I use sshuttle to forward my TCP traffic through a ssh tunnel with the following command sshuttle --no-latency-control -HDr user@server 0/0 -l 0.0.0.0 but after a while sshuttle (python) uses all ...
1
vote
0answers
13 views

Textstat not running functions

I just found the link on how to install textstat on my python idle and I was successful in getting it to work. However, when I import textstat everything seems fine until I try to run a function. It ...
0
votes
0answers
92 views

Ubuntu 14.04, opening Spyder gives *** stack smashing detected ***

After I upgraded to ubuntu 14.04, I started to get the following error when I try to open Spyder: *** stack smashing detected ***: /usr/bin/python terminated My only guess is that it has something ...
0
votes
0answers
39 views

ubuntu 14.04 : VIM with YouCompleteMe plugin, throw “ImportError: No module named _io”

I was using python2.7.6, VIM 7.4 and YouCompleteMe plugin on my Ubuntu14.04. Today I did some update on my Ubuntu, but after that, I found my VIM cannot work properly with YouCompleteMe. When I start ...
11
votes
6answers
5k views

What version of Python do I have?

How can I find out what versions of Python I have? I am using Ubuntu 14.04 (Trusty Tahr).
1
vote
2answers
38 views

What can I safely remove from Ubuntu and still have a decent graphic interface?

I have come to like Linux, Unix, and the GUI's but sometimes I remove too many things and lose the ability to boot back into the same interface I was using before I rebooted. most of the time I have ...
0
votes
1answer
10 views

Running multiple Python programs fills up /dev/mapper/gregorbr--lnx--vg-root 55G 52G 55M 100% /

I have a ubuntu server 12.04.5 LTS that I use to run multiple python programs that uses ssh. I have it set up so it just prints to screen, so it shouldn't take up any space at all. Here is they ...
-1
votes
3answers
55 views

where to run python programs in ubuntu

I am completely new to python and ubuntu. I am reading a book that has an example to run on python. in windows i used to run in IDLE, but where is that in python ? and if I dont want to get IDLE, ...
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 ...
-1
votes
1answer
23 views

pre requisites for python 3.4.2

i just tried to install python 3 .4.2 in ubuntu from an youtube video but it fails due to pip not found or somethinf like that. so before trying to install python on my freshly installed ubuntu, what ...
0
votes
2answers
24 views

installing python in Ubuntu [duplicate]

I wanted to install python 3.4.2 through the terminal and it asks for my password. I started to type but nothing appears. how do I give my password?
3
votes
3answers
1k views

Python: no module named datetime?

OS: Ubuntu 14.04 LTS Python: 2.7.6 My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback: import ...
0
votes
0answers
11 views

PYTHONPATH env variable vs. where apt-get intalls packages

Hello I am new to linux generally and to ubuntu in particular. I'm trying to download data from the Python NLTK, which I installed via sudo apt-get install python-nltk. Apparently this put the ...
1
vote
0answers
15 views

Ubuntu SDK: How can I use PyQt for developing Ubuntu Touch apps?

I've heard that it's possible, can you give me some pointers on how to do that?
3
votes
1answer
770 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 ...
-1
votes
1answer
28 views

python sending via socket a variable [closed]

a = 911111100000 while a < 911111100050: lMDN = str(a) print lMDN sock.send("PAGE lMDN\r\n" ) page_data = "" page_string = "" while page_data != "\n": page_data = ...
1
vote
1answer
35 views

Ubuntu 14.04 upgrade causes matplotlib error

Since upgrading to 14.04 any python code I run that uses matplotlib returns an error. Here is what my ipython console returns In [1]: import matplotlib.pyplot as plt ...
4
votes
3answers
339 views

How can a Debian package install Python modules from PyPI

This question tries to complement this one . I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python ...
0
votes
1answer
30 views

Using Python Interactively as a CLI calculator

I'm running Ubuntu 14.10 & I'm totally new to Python. I'm aware that Python can be used as a CLI type calculator in interactive mode, a bit like the bc command in Bash. I have two questions: 1) ...
3
votes
0answers
72 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 ...
0
votes
1answer
21 views

Is there a simple way to troublshoot why a program crashes?

I am trying to learn how to code. Instead of having to rewrite programs completely is there a way to find what line of the code has a problem? Or is it normal to have to rewrite everything?
0
votes
1answer
1k views

PIL install in Ubuntu 14.04.1 LTS

Followed the steps How do I install python imaging library (PIL)? for pre-setup libraries to install PIL on Ubuntu 14.04. However when I run pip install PIL --allow-external PIL --allow-unverified PIL ...
1
vote
1answer
52 views

Apache2.4.7 on Ubuntu 14.04 won't execute Python cgi file. The site displays python code instead

Description of problem: When I load 127.0.0.1/cgi-bin/test.cgi in my browser my test.cgi is treated like a text file instead of a python file. Ruling out the possibility of the error being related ...
1
vote
1answer
54 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 ...
3
votes
1answer
218 views

Has the support for the Python language been removed from the SDK?

Has the support for the Python language been removed from the SDK in Ubuntu 13.10? I can't find any tutorial for the Unity scope and for Python.
0
votes
0answers
33 views

Python Error when opening software-center

My software center suddenly not working. When i tried to open it from the launcher, its only loading but showing nothing. I tried to run it from terminal, and got this error : Traceback (most recent ...
0
votes
0answers
6 views

Kate - Is it possible to open a python file in wrap mode?

I wonder if it's possible to open a python file with all the "def" in wrap mode, like this: My code is a little bit long, and it will be more easier to navigate in, actually I had to do it by ...
1
vote
1answer
57 views

Will I be able to develop apps for ubuntu touch with python?

I want to learn to develop apps for ubuntu touch, and I want to do that with python. So far SDK doesn't seem to support it. Will it support python in the future? Can I start developing apps with ...
11
votes
1answer
27k views

How to install numpy and scipy for python?

I am tired to try to install numpy and scipy for phyton 2.7.5, I need this version of python because my final goal it's to install class (http://class-code.net/) and montepython ...
0
votes
2answers
609 views

how to create a .desktop file to launch a python script

I made my litle python App, but now I can't launch the app from the .desktop that I made: [Desktop Entry] Name=MyApp Version=0.1 Exec=/usr/share/MyApp/MyApp.py Icon=/usr/share/MyApp/img/MyApp.png ...
0
votes
1answer
50 views

itunes2rhythm python3 script returns syntax error [closed]

I am trying to execute this script with Python3 itunes2rhythm Using this command: python3 /media/trunk/SOUNDS/itunes/itunes2rhythm-master/itunes2rhythm.py I am getting the error: Traceback ...
1
vote
0answers
12 views

using python to play audio using remote desktop

I am using pyaudio to play a tone. I am using the example that taneli gave here LINK I am using a WinXP computer to log into a ubuntu computer using remote desktop. When I have the ubuntu computer ...
0
votes
0answers
21 views

Unable to profile django app

I am trying to profile my Django application. I installed the django-extensions which include a hotshot profiler. I am able to profile using the Django shell. But, I want to create a script for doing ...
3
votes
0answers
238 views

Emit signal for GIO.DBusProxy in Python? [closed]

I'm using the GIO high level DBus API - DBusProxy object. I'd like to emit a signal on this object (faking a signal coming from a remote interface). I do something like this: proxy.emit('g-signal', ...
0
votes
0answers
14 views

Is it possible logout terminal while running program [duplicate]

Say if I login using ssh, and run python a.py For running the python program for some times. Is it possible to logout the current session, while not stopping the python program, and be able to ...
0
votes
0answers
21 views

Where should I install personal python modules

If I write my own python module, where should I install it. Write now I have installed it to /usr/local/lib/pyton2.7/site-packages but python fails to find it when I do an import.
-1
votes
1answer
48 views

guake not working

I have seen other answers to this question, but I needed to post this again because there is no response from the maintainers on guake on this issue. i saw the possible answers in this ask ubuntu ...
2
votes
1answer
3k views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
0
votes
2answers
143 views

How do you get the website title to show up in the menu area / webpage title are in python / quickly created web browser?

hi there im creating a web browser using a mix of quickly and Python, im wanting to get a websites title to show up in the very top of the page. im not sure of what code that i need adding to the ...
0
votes
1answer
229 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
1answer
52 views

ImportError : No module named gtk & Python-2.7.8

As a newbie to Ubuntu 14.04 LTS, as usual with other linux builds, I installed Python 2.7.8 for compatibility issues and out of sudden I got: File "/usr/bin/bleachbit", line 41, in < module > ...
1
vote
1answer
143 views

configure tkinter for python3.4.2

I recently met a problem while installing the newest python3.X. Installed it using the Python-3.4.2.tar.xz package from python.org After, the intallation I tried importing the tkinter module but ...
0
votes
1answer
52 views

Problem in using “John the ripper” in program

I am trying to create a program in which users input a username and password. then John the ripper cracks their password if its weak. But when I run the program, I get this error No password ...
3
votes
3answers
1k views

Problem with `notify-send`

I have been working in a script to change audio output when you (dis)connect am HDMI screen/TV. Basically it uses UDEV to check any change in the connection and acts accordingly. Everything works ...
22
votes
2answers
12k views

apt get install vs pip install

I am a bit confused about the cases in which the above commands must be used when downloading python packages. I was trying to download a package named pyudev in accordance with an answer with this ...