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
2answers
3k 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 ...
1
vote
4answers
9k 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
89 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. ...
0
votes
0answers
28 views

How to hide the plone 4.3 site default logo

I need to to know how to replace/hide plone 4.3 default logo using my own viewlet. my viewlets.xml file is under profiles/default and i registered viewlets using generic setup like ...
0
votes
1answer
244 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
1k 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
4k 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
0answers
161 views

apt-get python with SSL support

I am using python 2.7.3 and Ubunutu 12.04. When I am running import ssl in python the following error occurs: >>> import ssl >>> ImportError: No module named _ssl Keep in mind ...
0
votes
0answers
128 views

Installing Python2.7 from source?

I am trying to build python 2.7 from source. I have gotten past the Unicode error and have gotten a different one. It was saying a module couldn't be found (specifically zlib). So I googled and said ...
0
votes
0answers
170 views

Python2.7: undefined reference to `SSLv2_method when trying to make

I noticed that ssl location was commented out on Setup.dist. After I set that piece back, I pointed the SSL variable to /usr/lib/openssl When I try to make, I get the following error ...
0
votes
0answers
282 views

Script giving error of permission denied OSerror 13 from cronjob?

I have written a script from the python to automate scan.I have used nessus for that and used subprocess module in python.Probem is this it's running from the cli bash.... but when i put that script ...
0
votes
1answer
46 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
70 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
77 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
230 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
2answers
3k 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 ...
6
votes
3answers
11k 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 ...
0
votes
0answers
27 views

Scripting in Ubuntu:checking things in files

Right now I have a script setup that makes two files email and password. Then it runs my password generator that writes the email file and the password file and the it pipes the password file into ...
1
vote
2answers
308 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
57 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
598 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 ...
2
votes
0answers
194 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
120 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
390 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
154 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
490 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
0answers
367 views

Missing Plug-In for Python

I received this message when attempting to download a podcast with pdf sheets in rhythmbox: Python (v2.7) requires to install plugins to play media files of the following type: application/pdf ...
0
votes
1answer
344 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
94 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
687 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
1k 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
4k 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
9k 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
632 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
478 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
342 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
328 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 ...
5
votes
2answers
2k views

Changing Python default in 12.04 LTS

I have downloaded and installed python 3.2.3 for Ubuntu/Debian. Also IDLE IDE for 3.2.3. If I execute IDLE for 3.2.3 explicitely, 3.2.3 runs under IDLE and all is well. But if I go to a terminal ...
1
vote
0answers
336 views

Running python ns3 code on Ubuntu 12.04

I have Ubuntu 12.04 on my machine. I installed ns3 to my computer according to instructions in nsnam. I didn't get any errors up to here. I am trying to use python to run my code. I installed python ...
2
votes
0answers
176 views

python2.7 help() modules returnd error

# python Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help() Welcome to Python 2.7! ...
0
votes
1answer
111 views

error installing python wrapper for openkinect

I tried to install python wrappers for OpenKinect on Ubuntu 12.04, but I can't due this error: $ sudo apt-get install python2.7-dev python2.7-dev : Depends: libexpat1-dev but it is not going to be ...
2
votes
0answers
56 views

Install Both Python 2.7 and Python 3.3.0 on Ubuntu 12.04 [duplicate]

Possible Duplicate: need to have 2 versions of python? I have projects that require different resources from the two different versions of Python. My question is can I have both versions of ...
1
vote
3answers
6k views

need to have 2 versions of python?

Well, as I say, I need to have 2 versions of python installed on my PC. The first must be the latest one in order to use youtube-dl, and the second must be the 2.7 version to use it for a course ( ...
1
vote
1answer
253 views

Why am i getting an error SyntaxError : invalid syntax [closed]

This is a python code for which i am getting an error... from scipy import * from matplotlib.pyplot import * x=arange(0.1,100,0.1) f=zeros(len(x)) s=-1 for n in range ...
0
votes
1answer
766 views

Where to build wxPython?

I've downloaded wxPython-src-2.9.4.0.tar.bz2 from http://www.wxpython.org; right now I'm trying to follow the build instructions on http://www.wxpython.org/BUILD.html. I've managed to build it using $ ...
4
votes
8answers
8k views

I run `sudo apt-get remove python2.7`, can I restore my Ubuntu now?

I wanted to remove and reinstall python2.7 interpreter on 12.04 But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever ...
2
votes
1answer
67 views

How to a deb package without Quickly?

I am developing an app now, I'm using GSetting as my setting back-end, but I can't make my .gschema file installed while open the .deb file. I'm wandering if there is some simple guide for green ...