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

0
votes
0answers
12 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 ...
0
votes
1answer
15 views

Problem with installing IPython on Ubuntu 14.04 LTS

When I used pip install ipython or pip install "ipython[notebook]" I get the following error: Downloading/unpacking ipython Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB ...
0
votes
1answer
33 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
-1
votes
0answers
12 views

Can't install pyFst with pip, on ubuntu 12.04

new user here! If this post has something inappropriate or lacking something, please inform me as to how to correct it. So, i got a problem installing pyFst, which is an interface for OpenFst, a ...
1
vote
1answer
15 views

How to deploy: ubuntu | apache | python | C++ | mysql

Disclaimer: This guide is far from being full or ideal, but I wanted to give some community payback. I hope that it will either help people or at least create a flashpoint to discuss such type of ...
0
votes
1answer
14 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 ...
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
42 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 ...
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 ...
-1
votes
3answers
57 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, ...
-1
votes
1answer
24 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?
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?
-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 = ...
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
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) ...
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?
1
vote
1answer
37 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 ...
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 ...
3
votes
0answers
74 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 ...
1
vote
1answer
58 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 ...
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 ...
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 ...
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
22 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 ...
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
49 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 ...
1
vote
1answer
59 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 ...
0
votes
1answer
56 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
151 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
0answers
23 views

get python scripts working on apache2 in ubuntu 14.04

dear people of askubuntu, I am new with ubuntu and working on a project that used to work before I came here. I have the following setup: a folder /var/www/localhost wich contains all my html files ...
-1
votes
0answers
18 views

how to attach python scripts in php?

I am working on a website , which is for simple text analysis , and I want to attach my python scripts in it because there are already some libraries for text analysis ,, I am confused about how to ...
1
vote
1answer
88 views

How to install zlib in ubuntu 12.04

I have just started (as in 30 minutes ago) to use Ubuntu 12.04 (all my previous experience is with windows) and I just started to learn how to program a couple of weeks ago so this is probably a ...
0
votes
1answer
25 views

Getting PIP on Local Install of Python

Background: I was trying to get a particular Python program to work (http://mrbell.github.io/pyrmsynth/ specifically), but I got an error that seemed to indicate that Python 2.6 was required (or at ...
0
votes
1answer
103 views

How to install scipy with pip3?

I am trying to install scipy for python3.x and I am trying to install it with pip3 sudo pip3 install scipy But I have the following errors: Downloading/unpacking scipy Running setup.py ...
1
vote
1answer
24 views

Why no “import speechd” in Python 3?

Despite a page (link below) implying that speechd works with Python 3, "import speechd" from within Python 3.4.2 gets "no module named 'speechd'". (While I have reasons to prefer Python 2.7, the ...
0
votes
0answers
32 views

Display Japanese/Chinese (non-ASCII) in Matplotlib on ubuntu

I am trying to display Japanese strings in Matplotlib using python. The general answer to this question is to manually set a compatible font[1], but I am having trouble with this in Ubuntu. I built a ...
1
vote
0answers
27 views

Custom MOTD does not update until scripts finish

I recently got a small server and gave some friends accounts on it. They all have their own web pages in ~/public_html using lighttpd so I wrote a script to backup every user's public_html directory. ...
1
vote
0answers
27 views

Why use Python PIP on Ubuntu? [duplicate]

The Pip program is included by default with Python 3.4, and can also be installed on older versions. The aim is to provide a standard method of installing additional Python modules, which are ...
0
votes
1answer
108 views

Installed Pygame, but Python claims it does not exist

I want to use pygame, but I am having trouble installing/using it. It appears to be installed, but Python cannot find it. I know there are several similar questions about this, but none of them gave ...
0
votes
0answers
59 views

Ubuntu touch on Nexus 7 / vpn/ ssh/ python

I have installed the Ubuntu touch on my Nexus 7 recently. Initially I was facing issue with apt-get that I have resolved by remounting the partition with rw permission. Now when I try to install ...
0
votes
0answers
141 views

I am running Ubuntu 14.04, python 2.7.8, I try to install python-setuptools, but it is giving following message

I am try to install python-setuptools but getting following messages: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: $ sudo apt-get ...
-1
votes
1answer
41 views

Generate a combination of characters using python [closed]

from itertools import combinations f = open('snc.csv', 'w') for comb in combinations(range('1','20'), 5): f.write(str(comb)) f.write('\n') f.close() My scripts works with numbers, i want it ...
0
votes
0answers
23 views

Error installing Mailman bundler (mailman + postorius +hyperkitty)

I am trying to install Mailman 3 bundler on Ubuntu 14.04. I am following direction on the README file which is the same as this one, http://mailman-bundler.readthedocs.org/en/latest/ I had trouble ...
0
votes
1answer
43 views

Error when using Resynthesizer plugin in Gimp 2.8.10

I'm trying to make Resynthesizer plug-in work in Gimp 2.8.10 under Ubuntu 14.04 TLS but I get this error: Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 699, in ...
0
votes
1answer
106 views

How do I upgrade from Python 2.7.6 to 2.7.8?

After using easy_install I find that I am still unable to upgrade the default Python version for my newly installed Ubuntu system. The main error, from what I can tell, is that I'm missing the ...