Python 2.7 is a version of the Python programming language released in 2010. Use this tag for questions about using Python 2.7 in Ubuntu.

learn more… | top users | synonyms

1
vote
1answer
635 views

How to install 32bit python 2.7 on 64bit ubuntu 13.04 [closed]

I know this question is repetitive. I read the link How can I install a 32bit python on 64 bit Ubuntu but I am still failing there. I am trying to install 32bit python 2.7 downloaded from ...
0
votes
1answer
460 views

No such file or directory: '/usr/lib/python2.7/sitecustomize.py' but it is there in red color

While trying to install denyhosts but I am getting this error: IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/sitecustomize.py' I verified that ...
0
votes
1answer
160 views

libcld.so.0: cannot open shared object file: No such file or directory error when using CLD

I am getting this error while trying to use CLD: libcld.so.0: cannot open shared object file: No such file or directory I'm using Python 2.7 on Ubuntu 12.04.
2
votes
1answer
268 views

Python interactive interpreter: initial tab is 4, subsequent tabs are 8 spaces

When I use the interactive Python interpreter, the width of the tabs seem out of sync with each other. Specifically, the first tab gives me a tab width equivalent to 4 spaces, while the next tabs ...
1
vote
0answers
476 views

Install xgoogle python module on Ubuntu [closed]

I recently moved from windows to Linux and I trying to install xgoogle in Ubuntu. I am just a beginner with Linux and command line so I follow up the installer in python X install. But its seem that ...
0
votes
1answer
100 views

Accessing image module for python in ubuntu

how do i access the ImageOps module for python in ubuntu 12.4. I wanted to use inbuilt image processing functions but m unable to acess those.Can someone tell me that how do i aceess that module.there ...
0
votes
1answer
130 views

How to download easygui for python3.3?

I have python 2.7 and python 3.3 in my Ubuntu 13.10 system.I have easygui in-built for python2.7 but not for python3.3.But when I download the zip file of easygui and unzip it and type "python3 ...
1
vote
1answer
509 views

How can i install SPE(Stani's Python Editor) for python3.3

I have ubuntu 13.10.I have SPE which runs for python2.7.4+.But i need to run it for python 3.3.2+.How can i do it.My system uses python2.7.4+ by default.
0
votes
0answers
16 views

How to download pygame in anaconda [duplicate]

I have anaconda 1.8.0.How can i download pygame in it.I am currently running ubuntu13.10.I have python 2.7.6.
1
vote
1answer
114 views

How to install pythoncard?

I am currently running ubuntu 13.10.I want to download pythoncard for python2.7.6.I also have anaconda1.8.0.So whenever i start python in my terminator or terminal,it starts along with anaconda.
0
votes
1answer
347 views

Repair Python 2.7 installation on 12.04 LTS

I upgraded Python to 3.2 on Ubuntu 12.04 LTS. Later, I noticed that Ubuntu updates no longer were downloading and I have the infamous red circle icon in the menu bar. In troubleshooting this issue, I ...
0
votes
1answer
197 views

IDLE won't open .py files when I use ctrl+O

I've already tried to get .py files to open with IDLE by default, but no luck. I've used every trick you may want to suggest. I really just want to open up IDLE and from there open a .py file from a ...
0
votes
1answer
2k views

What does my PYTHONPATH contain?

I work on some personal python libraries and I need to display what PYTHONPATH contains and then manipulate it.
3
votes
2answers
15k views

How to install h.264 decoder?

I tried playing videos in movie player but only the audio could be heard. I tried playing the video with dragon player but here also only the audio could be heard. A message box appeared showing the ...
2
votes
1answer
318 views

libreoffice Python Uno support for Python 2.7 on Ubuntu Saucy 13.10

I recently upgraded to Ubuntu 13.10 and discovered that the python-uno package is no longer available. Instead I find a python3-uno package. Unfortunately I need Python uno libreoffice support for ...
2
votes
1answer
104 views

Text justification in gtk.MenuItem

I'm writing an appindicator python script for my Gnome panel (under Ubuntu 12.10, English as the system-wide language) with a gtk.Menu, containing MenuItem's with Hebrew labels. The text is correctly ...
0
votes
1answer
327 views

GNURADIO: libfftw3f.so.3: cannot open shared object file: No such file or directory

I just installed gnuradio on my ubuntu 12.04. I tried running a simple wbfm receiver program that I got from online. When trying to execute the program, I get the following error: Traceback (most ...
0
votes
1answer
425 views

pygame installation for ubuntu 12.04 LTS

Can anyone suggest me how to install the pygame for use in the construction of the graphics games using the python?
1
vote
0answers
280 views

ImportError: No module named mechanize

I am having an issue where I have definitely installed mechanize both on my machine and in various virtual environments. When i running the program got error message ImportError: No module named ...
-1
votes
2answers
795 views

installing python-xml packages [duplicate]

I want to install python-xml package on ubuntu. I see this command for installing it: sudo apt-get install python-xml but $ sudo apt-get install python-xmlReading package lists... Done Building ...
1
vote
0answers
781 views

Eclipse - not opening, it was working before, how to fix it and open the eclipse ide for python?

It was working since last night, this morning stop opening, how to fix this? sun@sun-M14xR2:~/Downloads/easyeclipse-python-1.3.1$ ./eclipse ./eclipse: error while loading shared libraries: ...
0
votes
2answers
2k views

Python.h: No such file or directory #include <Python.h>

When trying to compile pyqt i have an error i have installed all the prerequistes but its still showing the same problem please find an answer for this
1
vote
0answers
364 views

How to remove Python2.6 and get Python2.7 [closed]

Hello I am running Ubuntu 10.04 that have Python2.6 by default. I installed Python2.7 doing sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.7 But I ...
1
vote
1answer
1k views

Taking screenshot using python

The below code work perfectly when I run it as a console application import gtk.gdk import time w = gtk.gdk.get_default_root_window() sz = w.get_size() print "The size of the window is %d x %d" % ...
0
votes
1answer
647 views

Python: error during generation of XML file from python dictionary

ImportError: No module named elementtree.SimpleXMLWriter The code: import xml.etree.cElementTree as ET root = ET.Element("root") doc = ET.SubElement(root, "doc") field1 = ...
1
vote
1answer
141 views

How to install Pythonika on Ubuntu?

I tried to install Pythonika on my Ubuntu 14.04 (64) with python 2.7.6. I follow Salem's answer, but there is some errors. The Makefile.linux # Set the paths according to your MathLink Developer Kit ...
3
votes
1answer
788 views

How can I install pygame 1.9.2 on ubuntu 13.04?

The python-pygame package contains version 1.9.1release, but I need features from 1.9.2. Is there a PPA available for the latest pygame release? Thanks in advance!
0
votes
2answers
1k views

Gdb symbol lookup error

I'm trying to use gdb on ubuntu 12.04, but every time the program crashes with the following error gdb: symbol lookup error: gdb: undefined symbol: PyUnicodeUCS4_FromEncodedObject Looks something ...
2
votes
1answer
538 views

Python ImportError after reinstallation of nautilus

I have a problem with python on my Ubuntu 12.10. Firstly the problem arose when I was trying to reinstall nautilus because of some troubles with it. I used apt-get --reinstall install nautilus*. The ...
3
votes
1answer
934 views

unoconv is not working in python

I've an issue while using unoconv to convert docs to html from a Python script. It works perfectly when I run the script or the unoconv commands as root, but it fails when I do the same from other ...
0
votes
1answer
517 views

TypeError: __init__() takes at least 4 arguments (3 given) [closed]

I m working with viewlets. my idea is to override the default plone site with my things like my own logo, my menus, my address bar ,etc. I used the default viewlet code in to my own createPictMenu.py ...
0
votes
1answer
41 views

how do I load a program I have downloaded!

I'm trying to start programming and am sure I have downloaded python. how do I find and run this program?
4
votes
3answers
29k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
-1
votes
1answer
278 views

create an instance of one class from another class [closed]

I created browserView class named as "bdrMenuView" . It should be like "class bdrMenuView(BrowserView):" . and the class contains the method named as "createPictMenu" . The whole class should be ...
0
votes
2answers
5k views

Pyhon (v2.7) requires to install plugins

I installed Ubuntu very first time over Window 7, but when I played a MP3 song it shows a "Python (v2.7) requires to install plug in to play media files" message. What to do? Help me! I have searched ...
9
votes
4answers
43k views

How to compile a python file?

I have started learning python and i'm also a new user to Ubuntu. I need to know the ways of compiling the .py files.......I have tried with the command python "hello.py" what are the other ways of ...
1
vote
1answer
130 views

Installing python modules to non-default interpreter [Ubuntu 10.04]

I had python 2.6 as default interpreter. I installed 2.7 and I can use it via command line #>python2.7 ... Now I want to install some modules [PyMongo, MySqlDB etc.] using pip to this new version. ...
14
votes
4answers
16k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
0
votes
1answer
356 views

ubuntu 13.04, python 2.7, alsa audio problems

I am using Ubuntu 13.04...having ALSA sound problems with Python. using aplay, I can play a *.wav from the command line - works fine other apps using sound card - work fine I am using Python 2.7; I ...
1
vote
1answer
2k views

How to solve pkg_resources.VersionConflict error during bin/python bootstrap.py -d

I am tring to create a new plone environment using python plone-devstart.py tool. I got a bootstrap error. So i used a command bin/python bootstrap.py -d from my project directory. It(bin/python ...
9
votes
2answers
12k views

How can I remove python 2.7 after installing python 3.3?

I have successfully installed python 3.3 on Ubuntu 12.10. Since I don’t need multiple versions of python, I want to remove the existing python 2.7. When I try to do that, using sudo apt-get remove ...
0
votes
1answer
75 views

Glade GUI in Python 2.7 crashes

I created a simple program using a glade .xml file and it, whenever I run the program, it crashes! Here's the Python code: #!/usr/bin/env python import pygtk pygtk.require("2.0") import gtk class ...
1
vote
0answers
92 views

How to change bash title in a python virtual environment

I would like to know how to change the bash title modifying the configuration files. I often program in Python and use virtualenv to keep my development environment separated from the system-wide ...
-1
votes
2answers
2k views

How do I install Python2.7 in Ubuntu 12.10?

I am trying to install Python2.7 for educational purposes in Ubuntu 12.10. Any help would be most appreciated.
1
vote
1answer
92 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 ...
3
votes
1answer
444 views

Where can I find the python Tools directory?

The python2.7 documentation refers to a Tools/scripts directory and a Tools/demos directory, but those don't seem to be on my computer. locate Tools/scripts doesn't find anything. A post on ...
7
votes
3answers
6k views

python 2.7 => ImportError: No module named _io

I decided to switch from Windows to Linux, so I installed Ubuntu Raring final beta. Unfortunately I have a Python problem. I was trying to use pip from a virtualenv I created, to install packages ...
8
votes
3answers
23k views

Problem installing Python-Dev

I am having trouble installing python-dev. It all started when I tried to install another Python package and got the error: SystemError: Cannot compile 'Python.h'. Perhaps you need to install ...
1
vote
2answers
673 views

How do I open a .py file in the interpreter?

I don't know how to open a .py file in the interpreter. When I double click it, it opens in gedit. Can you help?
0
votes
1answer
63 views

How can I prevent my main application window getting black?

I have made an ubuntu app using Quickly in Ubuntu12.04.In that app's main window there are several buttons.Clicking some of them opens new windows of other applications(like, ...