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

0
votes
0answers
168 views

Installing the python 2.7 plugins to play the online radio

Whenever I want to stream the online radio tunein, it says: python(2.7) needs to install the plugins to play the file of type txt/html decoder And the result is that I am not able to play the ...
-1
votes
2answers
521 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
658 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
1answer
1k 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
305 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 ...
0
votes
0answers
142 views

Python installation problem on ubuntu

I tried to launch dropbox on ubuntu. I got the following error: Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 563, in <module> main() File ...
1
vote
1answer
853 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
373 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 = ...
3
votes
1answer
603 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
742 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
434 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
604 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
0answers
91 views

Missing custom icons on my Python menu

In experimenting with building a small python gtk menu program I included ImageMenuItem widgets using custom icons that reside in a folder/package under the folder where my program resides. I used ...
0
votes
0answers
29 views

How to render a template page by calling its method from TAL portlet(@@manage-portlets)

I want to know that how to call a method which is in file system (createPictMenu.py in my case) from TAL Portlet(from zmi) which is in @@manage-portlets(in the Add Portlet drop down list). I did like ...
0
votes
1answer
362 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
39 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
vote
2answers
16k 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
187 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
4k 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 ...
4
votes
4answers
23k 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
111 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. ...
8
votes
4answers
10k 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
279 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
8k 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
56 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
81 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
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
80 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
303 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
5k 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
17k 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
442 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
61 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
756 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
233 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
139 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
479 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 ...
1
vote
0answers
27 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
193 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
600 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
352 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
100 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
968 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 ...
1
vote
2answers
5k 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
11k 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
682 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
552 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 ...