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

how can i compile source code with scapy in ubuntu 14.04

I want to make reassembly of fragmented packets which I had received,so that I searched through google and found that "scapy" can make reassembly of those packets.now i downloaded "scapy software for ...
0
votes
2answers
39 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
1
vote
1answer
41 views

muon is gone after change of python / issues after python 2.7.10 installation on ubuntu 14.4

My muon is gone on my Kubuntu 14.4. If I try to install it with sudo apt-get install muon I get the message The following packages have unresolved dependencies: muon : Depends on: ...
0
votes
1answer
55 views

How can I run programs in /usr/local/bin without sudo or root?

I am on Ubuntu 14.04 LTS. I installed buildozer and it ended up in /usr/local/bin. I can't run it without using sudo or root and that will likely cause problems down the road. Right now trying to run ...
1
vote
0answers
24 views

Python & Sublime text [closed]

I'm trying to build following python code in sublime text: def f(x): return -5 * x ** 5 + 69 * x ** 2 - 47 print f(0) print f(1) and receive following traceback when building: Traceback (most ...
1
vote
2answers
19 views

Python 2.7 changed to 3.4 [closed]

I'm running Ubuntu 15.04. I've been learning python (for about a month now) from a tutorial in http://learnpythonthehardway.org/book/ which is done in python 2.7 - the initial steps are to verify that ...
1
vote
0answers
38 views

Numpy/Scipy with Openblas

I've been trying to install Numpy/Scipy and allow them to both use Openblas. I've been following various guides but have been using this one of late. At the end of the guide, there are a couple of ...
1
vote
0answers
8 views

Running MadGraph on Ubuntu

I'm trying to run MadGraph on an Ubuntu virtual machine. The documentation for MadGraph states that I just need python 2.7 and the unzipped MadGraph to be able to run it. Nevertheless, I can't ...
0
votes
0answers
15 views

configuring Python 2.5.6

When give a command : sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5 I got on my screen some processing and at last an error: make: *** [libinstall] Error 1. What wrong am I ...
1
vote
2answers
903 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 ...
0
votes
0answers
33 views

How to install python-setuptools properly on Ubuntu 14.04

ivan@MS-7640:~$ python -V Python 2.7.10 sudo apt-get install python-setuptools [sudo] password for ivan: Reading package lists... Done Building dependency tree Reading state information... ...
2
votes
3answers
3k 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: ...
4
votes
4answers
27k 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 ...
2
votes
1answer
113 views

Is there a way to not show .pyc (Python bytecode) files under Nautilus?

Is there a way to disable them under directory structures in Nautilus? My Django-project is getting quite confusing with them.
0
votes
1answer
51 views

Bash Scripting for opening ssh, python shell and python commands

I'm writing a script that opens ssh, connects to django, gets data from the app using python commands from the python script myscript.py. However the current code doesn't work. #!/bin/bash xterm ...
0
votes
1answer
21 views

Problems installing scrypt-0.7.1 on Ubuntu into a virtual environment

I'm trying to install the python package scrypt into my virutal python environment under Ubuntu. I don't quite understand the error message. What do I have to do in order to make it work? ...
0
votes
1answer
44 views

what is the full meaning of following line

what is the full meaning of following line RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P] There are three application both running by python on ubuntu 14.4. they are visible as below link ...
0
votes
2answers
1k 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 ...
15
votes
4answers
89k 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 ...
0
votes
0answers
27 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
1answer
197 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 ...
0
votes
3answers
2k 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 ...
3
votes
2answers
296 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
228 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 ...
0
votes
1answer
79 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 ...
1
vote
1answer
76 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
50 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
196 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> ...
8
votes
3answers
5k 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 ...
0
votes
1answer
74 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 ...
1
vote
0answers
205 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 ...
33
votes
5answers
35k 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?
4
votes
1answer
4k 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 ...
0
votes
2answers
2k 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
64 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))
1
vote
1answer
119 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
14 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
2answers
389 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
1answer
52 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 ...
0
votes
4answers
364 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 ...
2
votes
0answers
310 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
103 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 ...
0
votes
0answers
246 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 ...
3
votes
0answers
219 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 ...
1
vote
0answers
26 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
209 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
1answer
121 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
670 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 ...
0
votes
1answer
173 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 ...