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

Error while compiling kivy

[INFO ] Kivy v1.8.0 Purge log fired. Analysing... Purge finished ! [INFO ] [Logger ] Record log in /home/sulabh/.kivy/logs/kivy_15-07-02_2.txt [INFO ] ...
3
votes
2answers
177 views

How to run multiple Python files by running one terminal code?

For my text-mining project (with an Enron data set), I have this Python script: from glob import glob import fileinput with open('/media/output/inbox.txt', 'w') as out: for line in ...
0
votes
2answers
56 views

Fatal Python error: Py_Initialize: Unable to get the locale encoding … SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new ...
1
vote
1answer
25 views

NLTK, installed in python 2.7 but not working in python 3.4

I just installed nltk when my default python was the 2.7 version, now when i open the python3 (3.4 version), i cant import nltk, is there any solution to this, to make nltk available for both versions ...
0
votes
0answers
21 views

rpy2 installation errors

I am trying to install rpy2 but keep running into installation errors. I have found another post that had similar problems: ...
0
votes
2answers
86 views

Python 2.7 matplotlib provides error?

import numpy as np import matplotlib.pyplot as plt provides the error Traceback (most recent call last): File "/home/flyveren/PycharmProjects/Udemy/Array_Processing.py", line 2, in <module> ...
0
votes
1answer
60 views

which IDE is good for python in linux14 [duplicate]

i am research scholar in computer science and I need to develop a website to do my analysis and all.therefore I have searched for most webserver programming languages finally python could be good and ...
0
votes
0answers
86 views

I Get 'Import error : No module named MYSQLdb' in python 2.7. I've tried everything from the other similar thread

The error: import MySQLdb ImportError: No module named MySQLdb. Particulars: OS is Ubuntu 14.04 python 2.7.10 and is the default MySQL 5.5.43 What I've tired: sudo apt-get install ...
0
votes
1answer
43 views

How to use INSERT INTO with variables in python

What is wrong in the following code syntax cur.execute('INSERT INTO %s (%s) VALUE (%s)' % (table, Column, Value))
0
votes
1answer
12 views

python deleted from usr/lib/python

$ python Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to ...
0
votes
1answer
36 views

How to make python module run in dist-packages folders in the desired order?

I am using Ubuntu 14.04. I have installed a python module called PyBluez. When I compile and install the module from source code, the output is installed in the folder ...
2
votes
0answers
204 views

ERROR: venv: commands failed while installing devstack on ubuntu 14.04LTS

I am trying to install devstack on Ubuntu 14.04 LTS. While installing I came across this error. Up to this I edited the local.conf file and installed libvirt-1.2.15. The detail screenshot is as ...
0
votes
1answer
69 views

Installing python 2.7, numpy, and pandas

So I've installed ubuntu 12.04 on my PC through Wubi It came with python 2.7, but it came with python 2.7 in several places... I have a python 2.7 in /usr/lib, one in /usr/local/lib, and one in ...
2
votes
0answers
199 views

Why does pip -t not work on Ubuntu 15.04?

I've been having an odd problem with pip on Ubuntu 15.04. When I try to install anything using the "-t" option to put it in a specific directory, it fails with the following error: error: can't ...
0
votes
0answers
147 views

Python PATH issue (Anaconda_Python, minpower and gurobi interfacing)?

I am using Ubuntu 14.04 LTS, installed Anaconda_python recently Installed minpower and gurobi. Extracted gurobi in home directory, added path as mentioned which is gedit ~/.bashrc export ...
1
vote
0answers
18 views

Clicking on debug in PyCharm soft reboots ubuntu 14.10

When I click on debug in Pycharm, communiti edition 4.0.3, on my ubuntu 14.10, the screen blanks out, closes all applications & reports an internal error. How do I debug the rootcause of this ? ...
1
vote
1answer
116 views

PyQt5 installation failure

I want to install PyQt5. I followed the instructions. Everything has been ok (python configure.py and make) until I run this command: sudo make install Where I got this error message: cd QtCore/ ...
0
votes
0answers
14 views

EVE Application and APIs are not accessible from a different same network machine

I have an EVE {http://python-eve.org/} Application exposing some of the APIs for an android application that I am writing . The Eve application is working fine when I am accessing the APIS locally on ...
1
vote
2answers
611 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
3
votes
1answer
149 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
1
vote
1answer
108 views

System messed up due to partly remove of Python2 - How to restore it? [duplicate]

I installed python 2.7.9 then after a while I want to install python 3.4.3. So I tried to remove python with this command: sudo apt-get remove python but I installed a lot of tools and IDEs for ...
0
votes
1answer
483 views

Python's ImportError: No module named repository

I had three versions of Python installed; 2.7, 3.2 and 3.4 When I had just 2.7 and 3.2, everything was fine. But after installing 3.4 manually from source, things began to break down. 3.4 did not have ...
1
vote
1answer
99 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
0
votes
1answer
78 views

Checking for 'gee-0.8' >= 0.8.0 : not found

I am trying to install pysoy and at the stage of configuration using ./waf configure it gives an error as seen below Checking for 'gee-0.8' >= 0.8.0 : not found The configuration ...
0
votes
0answers
84 views

installing python-netcdf4 in ubuntu 14.04

I'm trying to install netcdf4 package using https://code.google.com/p/netcdf4-python/wiki/UbuntuInstall but netCDF4 source release link is not working.
0
votes
2answers
303 views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...
0
votes
2answers
36 views

How can I use the site-package of python?

I have Ubuntu 14.04 LTS. I have got some site-packages for python via pip, but they work for python2.7. how can I use these site-packages in python3.4 IDLE?
0
votes
0answers
46 views

How to resolve python error “IDLE sub process did not make connection”?

I had installed python 2.7 a few months back. After a long gap I tried to open it, but I get this error: IDLE sub process did not make connection. How do I get it working?
4
votes
2answers
3k views

ImportError: No module named sklearn

I installed scikit-learn on following these instructions Even when I try now to run again: sudo pip install -U scikit-learn I get this message proving again that installation is ok: Requirement ...
0
votes
1answer
107 views

how to install python third modules into virtualenv?

I installed a virtual environment for python. I succeeded to install numpy and scipy but not parallel python. How can I install or build third modules into the virtualenv? I tried to sudo apt-get ...
0
votes
0answers
25 views

Cannot find virtualenvwrapper after installing

I installed virtualenvwrapper like this: sudo pip install virtualenvwrapper I thought I would find it here: /usr/local/bin/virtualenvwrapper.sh but I did not. I am trying to configure it in ...
1
vote
1answer
61 views

How can I install the module gateways and find the adress of my routeur

I want to determine the address of my router using a python code. I've found that I can use this method netifaces.gateways() after the installation of the netifaces library. But my problem is: ...
3
votes
1answer
382 views

How can I get the MAC addresses of machines using python-nmap?

How can I get the MAC addresses of machines using python-nmap? I'm using python-nmap to scan my local network, I can get the ip of several systems but not their MAC addresses. How can I get the MAC ...
1
vote
1answer
303 views

How to use Selenium with aliased Python 3

I have recently moved on to Ubuntu 14.04, which has both Python 2 (2.7.6) and Python 3(3.4.0) installed by default. For writing test scripts, I have Selenium installed. If I use the aliasing method ...
2
votes
1answer
175 views

Launching finder from python

I wish to input a subfolder name into terminal and have a script launch it in finder. This is my code: import sys import os fullname='/home/ash/caffe/examples/imagenet/train_rest/'+str(sys.argv[1]) ...
1
vote
1answer
159 views

How can I determine the IP address of my router

I want determine the ip of my router address by writing a python code. I found this proposal: $ sudo easy_install netifaces Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) ... $ ipython ... In [8]: ...
-2
votes
1answer
75 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
68 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
58 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 ...
0
votes
1answer
138 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
74 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
74 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
206 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
146 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
998 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
943 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
vote
1answer
5k 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
235 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
162 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 ...
8
votes
3answers
4k views

pip won't run. throws errors instead

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 ...