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

ImportError: No module named llvmlite.binding

I installed Numba for Python 2.7.6 following the instructions on this blog post. However, when I try to import it, I get this error: Traceback (most recent call last): File "<stdin>", line ...
-2
votes
1answer
28 views

Restore Python to default on ubuntu 12.04

I am totally aware a question of similar nature is asked before. But the answer there is not doing any good for me. I have installed python 2.7.6 in addition to system default 2.7.3. And now my ...
-1
votes
1answer
34 views

accidently removed python using purge

i accidently performed sudo apt-get purge python2 now my terminal wont show the colors and many libraries have been gone. Cant i revert back the changes even sudo apt-get build-essentials is ...
0
votes
0answers
27 views

How do I control Compiz or Compton with pygame or pyglfw?

So I have a Zorin6 -> Ubuntu14.04 -> Xubuntu14.04 installation running XFCE. I've figured out how to take over xfdesktop with PyOpenGL, but now I want to render my windows in the 3D space. What I ...
-1
votes
0answers
32 views

Import gurobipy

I have installed gurobipy based on: http://www.gurobi.com/documentation/6.0/linux-quick-start-guide/the_gurobi_python_interfac. However, when I import gurobipy, I met an error: In [1]: import ...
0
votes
1answer
30 views

unable to import pcl to python?

I followed the instructions given here http://www.pointclouds.org/downloads/linux.html . After installing the libpcl , what should be done to import it in python?
0
votes
1answer
29 views

Help import scipy

I need help with scipy of Python 2.7 please oscar@COM0324:~$ python Python 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more ...
0
votes
2answers
64 views

A strange problem about terminal or command environment

Two weeks ago I was learning Python and Flask. I followed step-by-step the steps in The Flask Mega-Tutorial, Part I: Hello, World!. While I was following the tutorial, I had problem in "virtualenv", ...
0
votes
1answer
82 views

PYTHON SPYDER starting problem on LUBUNTU

I installed spyder from software center, but it generates the following error/bug file when i try to run spyder. Traceback (most recent call last): File ...
0
votes
0answers
69 views

Trouble with python 2.7 in Ubuntu 14.04 when using Odoo

I'm having big trouble with python. It's the same while I'm using the outgoingmail module on Odoo or the asterisk module: 2015-01-20 22:41:04,853 2597 ERROR COMPANY openerp.http: Exception during ...
0
votes
1answer
227 views

Python - AttributeError with hashlib: no such attribute: “openssl_md_meth_names”

I don't know why this is happening, but after some crazy recovery from installing python from source, when anything imports hashlib, it comes up with something like this error: Traceback (most recent ...
0
votes
1answer
530 views

pip produces warnings upon trying to install Django and setuptools- Xubuntu 14.04 x64

I'm trying to set up Django on my laptop for web development testing. When I run sudo pip install Django I get the following errors/warnings: The directory '/home/aaron/.cache/pip/log' or its ...
-1
votes
1answer
280 views

how to update python version on ubuntu 14.10

I'm trying to figure out what version of python i have installed, and also upgrade it to the latest. When I go to a command prompt and check, it looks like I have an old version of python installed. ...
1
vote
1answer
54 views

BeautifulSoup4 on Ubuntu 14.04 with Python 2.7.6

I have installed bs4 using apt-get install python-bs4 When I attempt to run a script: import urllib2 import bs4 url = "http://rads.stackoverflow.com/amzn/click/B007C9N4H8" web_page = ...
2
votes
0answers
81 views

Pyhton is messed up because of setuptools. Help please

I have trouble getting python working right, after a mixup with python setuptools. after this, I cannot run flexget and other programs without getting this error: flexget execute Traceback (most ...
0
votes
1answer
958 views

pip won't run. throws errors instead [closed]

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of ...
0
votes
0answers
44 views

PyKEP: python 2.7 vs python 3.3

I try to install PyKEP package (pyKEP) and following the instruction in the web page at the and I obtain this error massage: [ 95%] Building CXX object PyKEP/core/CMakeFiles/_core.dir/core. ... ...
1
vote
2answers
128 views

How to make a program use python2.7 instead of default python3.4 on ubuntu 14.04 [duplicate]

I am using ubuntu 14.04 and I have a program that depends on python 2.7 and does not support any of python 3.x. Ubuntu 14.04 comes with python3.4 by default. I would like to know if there is a ...
0
votes
1answer
111 views

How to install pygame in python 2.7.6 on ubuntu 14?

How can I install pygame in python 2.7.6 on Ubuntu 14? I've used sudo apt-get install python-pygame, but it does not work and gives me the following message: unable to locate package python-pygame. ...
0
votes
1answer
27 views

The imported Shared library is not referring to the plugin

I have created a test.so file with a library linked with that (DijSDK.h) The Flow is test.so uses ---- DijSDK.h Which inturn calls ---- libsynthcam.so(plugin)file Now I am importing that .so file ...
0
votes
1answer
161 views

unable to install twilio python module in ubuntu 14.10 ,

When I tried to install twilio module on my system by ... anupam@JAZZ:~$ sudo pip install twilio Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from ...
0
votes
1answer
16 views

Running programs/apps

How do I run/start python after downloading? I am new to both Linux and Ubuntu so I need some pointers. I have been MS for so long I think it has brain washed me!
0
votes
2answers
450 views

Trouble compiling GDB with python 2.7 support for gdb-peda

Trying to install gdb-peda, but am having issues compiling gdb with python 2 support instead of python 3 support. I have python-dev for 2.7, build-dep nmon, and libncurses5-dev installed. I ...
0
votes
0answers
36 views

Everything gone after apt-get remove python2.7

I recently upgraded to ubuntu 14.04 and I installed python2.7 and 3.4 both so I wanted to just keep 3.4 and I knew apt-get remove python would mess up with whole Distro of mine, So I being specific ...
0
votes
1answer
132 views

Python Error when opening software-center

My software center suddenly not working. When i tried to open it from the launcher, its only loading but showing nothing. I tried to run it from terminal, and got this error : Traceback (most recent ...
1
vote
0answers
89 views

Installing Python libraries (difflib and pygments)

I am new to Linux and I need to install difflib and pygments python libraries to my computer. What is the easiest way to do that?
0
votes
0answers
379 views

I am running Ubuntu 14.04, python 2.7.8, I try to install python-setuptools, but it is giving following message

I am try to install python-setuptools but getting following messages: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: $ sudo apt-get ...
2
votes
1answer
320 views

How to install the most recent numpy, scipy and scikit on ubuntu?

I need to install numpy 1.9 ('cause some methods are available in this version, not in the previous) which isn't the numpy package proposed yet today (apt-get returns 1.8). How to install the latest ...
1
vote
1answer
61 views

Installing pyGPs - A Package for Gaussian Processes

I am doing a project which predicts expected electrical load every half an hour based on Gaussian model of previous 1 year data. I am currently using python 2.7.3 for implementing this project. For ...
1
vote
0answers
328 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
2answers
77 views

Using specific python version for apt-get in Ubuntu 12.04 LTS

On Ubuntu 12.04 LTS I have python2.7.3-0Ubuntu3.5 package installed. One of the libraries i am trying to install has dependency on (>=2.7.3.6). I went ahead and installed python 2.7.6 and even python ...
1
vote
1answer
103 views

Make pycharm default for .py files in 14.04

I want to make pycharm ide default for all .py files in ubuntu 14.04. I have extracted the tar.gz file in my home directory but every time i have to run pycharm i have to go over to the bin ...
0
votes
2answers
138 views

Where do I find Python2.7 in Ubuntu 14.04?

I'm using this tutorial to install Django with Postgresql in my Ubuntu 14.04. In the 4th step, it asked me to go to my python directory, so I ran $ whereis python2.7 and I got multiple directories. ...
1
vote
0answers
38 views

Hide Terminal and still receive input

I want to run a python script that basically uses the terminal for certain commands, but I don't want it to show the terminal. I've tried running the script as nohup file.py & - this works and I ...
1
vote
2answers
1k views

Tkinter on Ubuntu 14.04 seems not to work

I receive following Traceback: Traceback (most recent call last): File "tkinter_basic_frame.py", line 4, in <module> from Tkinter import Tk, Frame, BOTH File ...
0
votes
1answer
490 views

Completely unable to install python2.7-dev [duplicate]

Am totally stuck! Am unable completely to install python2.7-dev on my Ubuntu13.04. I have tried all the tricks mentioned on this site (askubuntu.com) and many other sites on the web but still ...
0
votes
0answers
71 views

Python 2.7.8 and pyglet

I've installed python2.7.8 as default version of python. Pyglet worked perfectly before (with version 2.7.6). Now, it says that there is No module named pyglet. What to do? P.S. I've already tried to ...
2
votes
1answer
144 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
3
votes
1answer
2k views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
1
vote
2answers
2k views

Python (v2.7) requires to install plugins to play media files of the following type: Windows Media Audio 8 decoder

when trying to convert some audio files to Ogg Vorbis using Sound Converter I get the following error: Python (v2.7) requires to install plugins to play media files of the following type: ...
0
votes
1answer
890 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
12 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 ...
10
votes
2answers
8k 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 ...
2
votes
2answers
647 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 ...
1
vote
0answers
180 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
29 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
145 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 ...
1
vote
1answer
219 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
56 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 ...
1
vote
1answer
5k 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 ...