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
956 views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
0
votes
1answer
16 views

How can i Download attachments from an email using Python?

My Current python script can download attachments from Gmail. But i want to Download Attachments from any other email services than Gmail. Ex: Other email services are ymail, hot mail, etc .. Is ...
1
vote
0answers
6 views

How to change update At-spi1.32 to At-spi2 core in ubuntu 12.04?

On Ubuntu 12.04 by default At-spi1.32 and py-atspi 1.9.0 are installed. I am trying to intstall atspi2-core and pyatspi2 because in there are new methods I need. When I am trying to import like from ...
-1
votes
1answer
93 views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
1
vote
2answers
23 views

Changing python version without breaking software center

I have been fiddling with my Python installation on Ubuntu 12.04 (I was having trouble installing a python library), and at one point my python command wasn't working. It turned out the symlink was ...
0
votes
0answers
50 views

Ubuntu 14.04 + pyes 0.99.2 + Elasticsearch 1.2.1

Im using Ubuntu 14.04 in a Django Project with ElasticSearch and after I install pyes with pip install pyes==0.99.2 and try to acces to the ElasticSearch page, it returns an error from the OS: ...
0
votes
1answer
23 views

Empty variables in python [closed]

This snippet is from my Python for Biologists book: genomic = open("genomic_dna.txt").read() exons = open("exons.txt") for line in exons: positions = line.split(',') start = int(positions[0]) ...
-1
votes
2answers
24 views

Shifting between alternate versions of Python in Ubuntu

I am new to ubuntu and I wanted to shift my version to Python 3.4.1. So I ran the command: $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python But ...
2
votes
0answers
669 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 ...
1
vote
1answer
45 views

Two python distributions, sudo picking the wrong one

I'm back to Linux after an over 10 year abstinence (fool me thinks). And a little rusty in the sys admin department. I'm faced with an issue with my python distribution. I'm using Python 2.7, but ...
0
votes
1answer
11 views

Get the openstack cinder volume size through python bindings

Can any one help me out to get the openstack cinder volume size through python bindings. I have list of cinder volumes that are extracted by calling cinder_client_instance.volumes.list() method. Now ...
7
votes
4answers
9k 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?
2
votes
2answers
7k 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 ...
1
vote
1answer
143 views

python error IndentationError: expected an indented block

I started to learn python , but when I try to make an function I get this error IndentationError: expected an indented block I use the terminal and write python then start to write the function ...
0
votes
0answers
119 views

python-Uno , No Module named Uno

I am using Ubuntu 14.04 with python 2.7.6. I am trying to install python-uno library which allows use of the standard LibreOffice API with the Python scripting language,but i am unable to find the ...
4
votes
9answers
10k 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 ...
0
votes
0answers
12 views

How to install pythoncard?(any alternate method)

How to install pythoncard?I have tried browsing the software center for it and I installed it,but when I run a pythoncard-based program,it shows me that there is no module named pythoncard.Can I ...
0
votes
0answers
57 views

Python pip says AttributeError with xmlrpc

I got this error when i update pip. /usr/local/bin/pip run on Tue May 6 15:03:16 2014 Exception: Traceback (most recent call last): File ...
7
votes
3answers
4k 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 ...
0
votes
1answer
45 views

How to Integrate of Python 2.7.4 in Qt 5.0

I have Python 2.7.4 installed,Qt 5.0 installed,PyQt 4.10.4.tar.gz and sip 4.15.5.tar.gz. How can I integrate Python with my Qt?
0
votes
1answer
25 views

Referring a source pydev project to another pydev project fails in eclipse

How to give reference from one source pydev project to another destination pydev project. I tried to remove the .pyc files from the referring project, it also fails. Later i tried after giving the ...
0
votes
1answer
32 views

Uninstalled Pyton 2.7, now I cant log in

I uninstalled python using following command: sudo apt-get remove python2.7 It ended up removing lot of related system files as well. Now when ubuntu boots up it prompts me login, but after that ...
0
votes
0answers
14 views

user not known while configuring glance-registry

I am trying to install glance-registry but keep getting the following error $ sudo apt-get install glance-registry ... Do you want to continue [Y/n]? Y Setting up glance-registry ...
1
vote
2answers
258 views

How to install python-guestfs and libguestfs-tools in python virtual environment?

Can any one help me out to install python-guestfs and libguestfs-tools in python virtual environment? I tried to install those packages with the help of pip install but it fails to install because ...
2
votes
1answer
52 views

Install PyNSource in Ubuntu 12.04

How can i Install PyNSource in Ubuntu 12.04 LTS (the python version is 2.7)
0
votes
0answers
13 views

python installs application to its own directory

Some time ago I created virtual environment according to guides on the net, ever since I can not install python application from source directory into system path with sudo python setup.py install ...
1
vote
3answers
60 views

Adding file paths to Python code

I am currently running the code for a program called HotNet. In its simpleRun.py file, there is a place to insert a file path to be run. parser.add_argument('-mf', '--infmat_file', required=True, ...
0
votes
1answer
63 views

python photometry tools

Anybody has experience with photometry? I am trying to use ppt (Python Photometric Toolbox) with no success. I have two branching questions: anybody can suggest a WORKING photometry solution ...
0
votes
3answers
102 views

Unable to run .py file in 13.10

Unable to run .py file in Ubuntu 13.10 server. It returns this error: Traceback (most recent call last): File "events_send.py", line 2, in <module> import pika ImportError: No module named pika ...
0
votes
0answers
1k views

No module named setuptools/ setuptools is already the newest version

So I am trying to get python suds on my Ubuntu 12.04 LTS machine, and when I put in sudo apt-get install python-setuptools I get the traceback ImportError: No module named setuptools So I put ...
1
vote
1answer
297 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
2answers
675 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 ...
0
votes
1answer
78 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 ...
0
votes
1answer
182 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 ...
6
votes
3answers
4k views

Install uwsgi 1.2.5 via pip

Welcome, Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site http://projects.unbit.it/uwsgi/wiki/Quickstart pip install uwsgi During ...
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 ...
1
vote
0answers
295 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 ...
2
votes
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 ( ...
0
votes
1answer
107 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
257 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 ...
0
votes
1answer
60 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 ...
1
vote
1answer
287 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
86 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.
1
vote
1answer
794 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
155 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 ...
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.
0
votes
1answer
135 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
275 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 ...
3
votes
1answer
562 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!