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

-4
votes
0answers
30 views

how to install cvblob on ubuntu 13.10? [closed]

I tried to install cvblob from github properly. But cvblob having error, how to resolve it?
0
votes
1answer
23 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 ...
1
vote
1answer
60 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
0answers
7 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 ...
2
votes
1answer
22 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
9 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
44 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
38 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
0answers
10 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 ...
1
vote
2answers
88 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 ...
0
votes
3answers
66 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
93 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
106 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
68 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
75 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
246 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
176 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
36 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
57 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
154 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
54 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
81 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
100 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
171 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.
1
vote
2answers
3k views

how to install h.264 decoder?

i tried playing videos in movie player but only the audio could be hears. 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
0answers
184 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
61 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
149 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
147 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?
0
votes
0answers
170 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 ...
0
votes
0answers
121 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
266 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
503 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
672 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
250 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
113 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
546 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
195 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 = ...
2
votes
1answer
398 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
514 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
343 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
341 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
80 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
26 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
218 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?
0
votes
0answers
96 views

Type Error : __init__ actually takes 5 arguments (3 given)

I'm trying to hide plone 4.3 default logo from the file system using viewlets. Here is my code which inherits the default code of viewlets from eggs directory. (i.e ...
0
votes
2answers
9k 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
126 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 ...