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

2
votes
1answer
120 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
434 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
525 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
votes
2answers
1k 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
841 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
3k 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
422 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
982 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
2answers
187 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
1k 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
660 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
1k 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
672 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?
-1
votes
1answer
452 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
6k 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 ...
12
votes
4answers
75k 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
150 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. ...
24
votes
4answers
28k 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
477 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
18k 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
113 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
votes
2answers
1k 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
103 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
646 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 ...
8
votes
4answers
7k 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 ...
10
votes
3answers
32k 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
963 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, ...
0
votes
1answer
929 views

sudo works, but gksudo doesn't, why?

sudo lshw -html>1.html works perfectly.I get system information in 1.html. But, gksudo lshw -html>1.html doesn't work.I get gksudo usage options in 1.html Information: I am developing ...
3
votes
0answers
251 views

Accessibility bus error when packaging

When i do quickly package i get the flowing warning. Not a big deal but because this warning i can't share my package to my ppa. ** (setup.py:5679): WARNING **: Couldn't register with accessibility ...
0
votes
1answer
178 views

What does this error message mean?

I get this a lot when working in python, at seemingly random times when running my program. Assertion 't = find_next_time_event(m)' failed at pulse/mainloop.c:741, function calc_next_timeout(). ...
2
votes
1answer
625 views

Installing stackless python, how to get modules?

I've followed the instructions found here: http://architects.dzone.com/articles/install-stackless-python and installed stackless. Stackless itself works, but unlike what the tutorial said I cannot ...
2
votes
0answers
28 views

Unable to install python2.7-dev due to unmet dependencies Ubuntu 12.04 [duplicate]

Possible Duplicate: How do I resolve unmet dependencies? I am unable to install python-dev becasue of unment dependancies. How can I get around this? Deleting python is not an ...
1
vote
1answer
244 views

mod_python returns plaintext script?

Ubuntu 12.10 Server in a virtualbox VM. I have installed mod_python using apt-get,enabled it using a2enmod, and rebooted apache2. I have also edited \etc\apache2\sites-available\defaults as below. ...
1
vote
1answer
783 views

I cannot install Python modules

When I try to use pip or easy_install I am getting following errors for any kind of modules I try to install. I ve looked for all the output errors but I dont understand th reason behind. Searching ...
0
votes
1answer
361 views

At the time of Gnome desktop installation ubuntu software center removed, unable to install anymore

At the time of Gnome desktop installation, it has removed all the dependencies of sso login python and ubuntu software center. I've tried to rebuilt them using sudo apt-get update, sudo apt-get ...
1
vote
1answer
1k views

how do I install lxml.etree in ubuntu 12.04? [closed]

I tried : apt-get install python-lxml but that gives this - Unable to locate package python-lxml
2
votes
1answer
112 views

PyKaraoke not working on Ubuntu 12.10. Will it be for python3?

I have Ubuntu 12.10 and PyKaraoke was not working before I worked in 12.10. It now opens but I can not add folders to the library. Only the Home folder.
2
votes
1answer
1k views

Python ImportErrors while trying to get a program (found on Google Code) to work

I'm trying to install a program written in Python / -->http://code.google.com/p/amphetype/<-- / I did subversion checkout svn checkout http://amphetype.googlecode.com/svn/trunk/ ...
2
votes
2answers
2k views

Python 2.7: no documentation found when typing help('print')

I have just installed Python 2.7 and Python 3.2 on my Ubuntu 12.04 (32 bit). sudo apt-get install python python-doc python3 python3-doc I opened a Python 3 shell (is it called like that) typing ...
2
votes
2answers
8k views

import numpy - no module named multiarray

On Ubuntu 12.04 64-bit, I installed python 2.7.3, and numpy 1.6.2. When I try to import numpy, I get this: erelsgl@erel-biu:/host/Dropbox/ai/routes$ python Python 2.7.3 (default, Nov 25 2012, ...
2
votes
6answers
14k views

Eclipse not showing Pydev in Preferences

After installing Eclipse and python I am not able to see Pydev on eclipse. When I try to install eclipse again it is showing as duplicate location.
2
votes
0answers
739 views

python-plugin installation

I try to play online radio in the Chrome web browser. It said this following installation: Required plugin could not be found Python(2.7) requires to install plugins to play media files of the ...
0
votes
1answer
773 views

Syntax error on python 2.7.3

I am trying to perform a QSTK related task on python2.7.3 but ending up with syntax error [Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "copyright", "credits" or ...
5
votes
1answer
499 views

Python-Speechd?

I just upgraded to Ubuntu 12.10, am fooling around with some Python code. In earlier releases, I used to be able to do: import speechd And now I get that the module does not exist. It also tells ...
0
votes
1answer
375 views

How do I install python2.7 in order to play music in Rhythmbox?

When I try to play music in Rhythmbox, it's asking me to install python 2.7. May I know the links and process to download and install it? Also please let me know the other softwares to update. When ...