Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

0
votes
0answers
5 views

can't open Ubuntu store Python errors

I don't know but I get these weird Pythonish errors while opening store. Earlier it was working fine ➜ ~ software-center ** (software-center:4359): WARNING **: Couldn't connect to accessibility ...
0
votes
0answers
13 views

pip install don't work because of wrong time?

I tried sudo pip install opencv-python It give me error: The directory '/home/myuser/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. ...
0
votes
1answer
13 views

Fatal error:Python.h no such file or directory

root@rani-System-Product-Name:~# sudo pip install python-igraph Downloading/unpacking python-igraph Downloading python-igraph-0.7.1.post6.tar.gz (377Kb): 377Kb downloaded Running setup.py egg_info ...
0
votes
1answer
9 views

How to remove conflict package in ubuntu?

punit@punit-Compaq-420:~$ apt-cache depends python2.7-dev python2.7-dev Depends: python2.7 Depends: libpython2.7-dev Depends: libpython2.7 Depends: libexpat1-dev |Recommends: libc6-dev ...
0
votes
0answers
10 views

Numpy not recognized during biopython install

I am using Ubuntu 14.04, I installed numpy (via sudo apt-get install python-numpy) but when I try to install biopython using the instructions here when I run python setup.py build in the folder it ...
-1
votes
1answer
38 views

What's wrong with tee command?

I am running the following python script piped to tee command #!/usr/bin/python from sys import exit,exc_info from time import sleep try: print "hello" #raise KeyboardInterrupt ...
0
votes
0answers
11 views

not installing pip command

Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-unique-3.0 ...
0
votes
2answers
37 views

How can I easily install a newer version of python on Ubuntu 14.04 using apt-get without upgrading the entire OS?

I am stuck on Ubuntu 14.04 and upgrading to 15.10 is probably not an option. The highest version of python supported by Ubuntu 14 is 2.7.6. This is very old. I want to install a newer version. I ...
0
votes
0answers
7 views

How to use multiple Python-Gtk-Glade Entries and Button values?

Here's my code snippet: self.filechooserbutton1 = self.builder.get_object("filechooserbutton1") self.filechooserbutton2 = self.builder.get_object("filechooserbutton2") def ...
0
votes
0answers
19 views

python is missing or unusable error in UBUNTU 15.10

checking for python... /usr/local/bin/python checking for python2.7... no configure: error: python is missing or unusable Makefile:8643: recipe for target 'configure-gdb' failed I am getting this ...
0
votes
1answer
20 views

OpenCV is not installing

I have recently installing OpenCV 3.0.0 with the help of script "install-opencv.sh" I have used command $ sudo bash install-opencv.sh error are below wget: unable to resolve host address ...
0
votes
1answer
22 views

Ubuntu 14.04 Menu and Side bars NOT displaying after Python3 uninstalled

I've uninstalled Python3 and now my Side and Menu Bars are not displaying. I'm running Ubuntu 14.04 LTS. I can still see my other icons on the desktop. I've tried to launch Terminal( Alt+Cntrl+T) - ...
0
votes
0answers
12 views

Inkscape python-lxml error

I'm using Inkscape 0.91 (r13725) and I always receive this error message when I try to use Perspective add-on or when I try to save the sketch in any format: The fantastic lxml wrapper for libxml2 is ...
0
votes
1answer
29 views

How do i install python 3.5?

I think installed python 3.5, i have the python 3.5 idle3 on my desktop, but when i write in the the command python -- version the output is 2.7.0.1. How do i actually upgrade it to 3.5
-3
votes
0answers
18 views

Equal Dictionary Values [closed]

This my code s = ["Apple" , "orange", "mangoo" , "Tomato" , "grape"] dict = {} x = """ 1. apple 2. orange 3. mangoo 4. tomato 5. grape """ print x while True: b = int(raw_input('what do u ...
0
votes
1answer
26 views

Unix crypt function syntax error [closed]

I'm getting this syntax error: it's pointing to the python label in line 1. ./cracker1.py: line 1: syntax error near unexpected token `(' ./cracker1.py: line 1: `Python 2.7.10 (default, Oct 14 2015, ...
-1
votes
0answers
8 views

I was installing virtualenvwrapper for python purposes, I am getting troubles with the last two lines of the code. HELP

$ sudo pip install virtualenvwrapper $ export WORKON_HOME=~/Envs $ echo 'export WORKON_HOME=~/Envs' >> ~/.bash_profile $ echo 'source /etc/bash_completion.d/virtualenvwrapper' >> ...
0
votes
0answers
102 views

Not able to download nltk package [closed]

I am downloading the nltk package but it is getting stuck in between with following error message: [nltk_data] | Error downloading u'panlex_lite' from [nltk_data] | ...
1
vote
2answers
93 views

How to run a script from terminal [duplicate]

Hi I would like to run a script from the terminal, is there anyway to do that? For example : if I have a python script I would normally run it with this command : python script.py How can I run ...
0
votes
0answers
26 views

How to install a python script as an application

I have been trying to create a deb package for my python script following these steps. My myscript.py contains a simple frame. #!/usr/bin/env python import wx app = wx.App(False) frame = ...
0
votes
1answer
42 views

Proper way to install latest version of Python on Ubuntu

I'm trying to set up a Python development environment on Ubuntu 14.04. I wanted to install the latest version of Python 2 (2.7.11) alongside the OS version so I followed the instructions here: How to ...
0
votes
0answers
16 views

how to run grais, some kind of python program?

I built the gnu radio 3.7.9 from script here https://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGRFromSource I built gr_ais ...
0
votes
0answers
28 views

Screwed up system python in Ubuntu, any way to repair it?

(originally posted on stackoverflow) While trying to update my python version, I accidentally screwed up my python installation on Ubuntu 14.04 (the system installation, the one in /usr/lib). Now, I ...
1
vote
1answer
44 views

Sudo execute command in Pythonscript

I want to sudo a command from a pythonscript without hardcoding my password in it. The Pythonscript is part of a webservice on Apache2. Since it is part of a webservice, asking the user each time for ...
1
vote
2answers
66 views

parsing `/etc/passwd` file to find users with Interactive shells

I want to parse /etc/passwd file to find out if the user can run interactive shell. I know the 7th field in each line of /etc/passwd file tells the path of shell. But How do you say that, defined ...
1
vote
0answers
57 views

Broken python after installing python and cannot run sudo apt-get upgrade

When trying to run python I get this error: $ python Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting ...
0
votes
0answers
14 views

service [sname] restart not working like I expect

I am having some trouble getting gunicorn to run from a python virtual env and this is the only thing I can see that proves what is wrong right now... description "Gunicorn daemon for Django project" ...
1
vote
0answers
21 views

Why do I get two RandR errors each time I run the xrandr commands?

I'm in the process of creating an xrandr GUI frontend, but I keep running into randr errors. When I run the xrandr --newmode command, I get a BadName error. Running the xrandr --addmode command after ...
1
vote
1answer
239 views

Installing python 3.x on Ubuntu 15.10

I have already python 2.7 on my machine. I can't recall if I installed it or it is a built-in install. Anyhow, I would like to install work with python 3.x and I wonder if I need first to uninstall ...
0
votes
0answers
21 views

Upstart: Logging output of python to log file

I have an upstart script that I want to launch and log the output from. I can launch it successfully and it completes :) Output goes to my log file after the program finishes. However: The ...
2
votes
0answers
31 views

Software Center doesn't start - could not initiate dbus

Ubuntu Software Center is lost from my Ubuntu & it's not showing in launcher. When i run sudo software-center in my terminal, the output is something like this: 2016-01-29 17:46:53,262 - ...
0
votes
1answer
40 views

pip upgrade not working

I am trying to upgrade pip from version 7.1.2 to 8.0.2 But I am not able to upgrade it due to some errors. I ran the following command. user@ubuntu:~/devstack$ pip install --upgrade pip I am ...
0
votes
0answers
12 views

i'm trying to install iou and i got thist error

i tyring to install (IOU) with GNS3 so i need to (fix the missing library for IOU on 64bit systems ) and when typing this: dpkg --add-architecture i386 && apt-get update && apt-get ...
0
votes
1answer
21 views

How can I scan all connected USB drives for a file?

I have an install of Ubuntu and I would like to run a script (bash, perl, python, whatever) that will scan all connected USB drives and report if it finds a text file. Could anyone guide me on how to ...
1
vote
0answers
15 views

App/Script consumes too much memory. Ubuntu may be killing it. How do I verify/check this assumption?

Hosted on Digital Ocean Ubuntu 14.04 1GB RAM, 30GB HDD I am running a python script that is reading a 200MB+ file line by line. Each line is parsed into a JSON object and then appended to an ...
1
vote
2answers
86 views

Missing write permissions in home/user/anaconda2

I am trying to install opencv using the command conda install opencv This command worked on my laptop, but i am getting following error when I try it on my desktop computer. Both systems are ...
0
votes
1answer
15 views

Postgres pg_hba.conf Configuration

I'm trying to develop a python application using Postgres. Unfortunately everytime I do a db.session.commit() I get this as an error: OperationalError: (OperationalError) fe_sendauth: no password ...
0
votes
0answers
12 views

Owner status of directory reverting

I use Ubuntu 64 bit, version 14.04 LTS. I have 2 users on this machine, user1 and user2. Both users are part of the same group. I run a python script that logs something in a file, that is within a ...
0
votes
1answer
186 views

apt-get install python-xxx vs pip install

I'm still trying to understand this problem I'm having and have read a ton of posts regarding sudo apt-get install python-XXX vs pip install, and I understand the jist of it (apt-get is a package ...
0
votes
0answers
53 views

add-apt-repositories isn't working

Basically the terminal freezes for a while the I manually have to ctrl+c to end the process, then I get the following ^CTraceback (most recent call last): File "/usr/bin/add-apt-repository", line ...
1
vote
0answers
16 views

Error starting ipython?

When I start ipython, the following error gets printed in the screen: [TerminalIPythonApp] ERROR | Exception while loading config file /home/cossio/.ipython/profile_default/ipython_config.py ...
0
votes
1answer
61 views

Update Python 2.7 to latest version of 2.x [duplicate]

My version of python2 on my ubuntu 14.04 machine is Python 2.7.6, how can I upgrade it to the the latest version of Python 2.X. The latest is currently 2.7.11. I have tried apt-get update/upgrade, ...
0
votes
0answers
26 views

scipy is installed, but import scipy fails

This command shows scipy installed (I used apt-get). $ apt-cache policy python-scipy python-scipy: Installed: 0.13.3-1build1 Candidate: 0.13.3-1build1 Version table: *** 0.13.3-1build1 0 ...
0
votes
1answer
23 views

Terminal blank and not executing commands

I have been trying to set up a Python virtual environment with Django and pip on my Ubuntu VM through the terminal using these guidelines. I last logged out of the terminal after trying to install ...
0
votes
1answer
36 views

python packages not updating with pip

I'm a bit confused about sudo apt-get install python-<package> vs sudo pip install vs pip install. I have read many posts on the matter: What are the risks of running 'sudo pip'?, Is it ...
0
votes
0answers
22 views

Multiple R installations… lost overview

I am running Ubuntu 14 and I am using R and R studio. I think the installation is at: /usr/bin/R Recently, I wanted to use the Jupyter Notebook to also run R in this kind of notebook in the ...
0
votes
1answer
28 views

Cron job starts the python script, but no output is received

I have a python program that copies contents of USB devices connected to my pc, in this case it's an Android tablet. The script usese pyudev to detect the devices and then use GVfs to mount them. I ...
0
votes
0answers
22 views

I installed BPG viewer and it deleted default python and other important apps. How to know all that was removed?

I am into bleeding edge and installed BPG viewer to view a file I encoded in BPG format. It was a .deb package and I was never prompted before it uninstalled all the important apps. It even ...
1
vote
0answers
72 views

Bash shell doesn't display Python output

I started using vim + tmux for my programming and suddenly after accidentally smashing couple of keys [Forgive me I am a klutz] the bash shell started acting weirdly. When I run my unittest written ...
0
votes
0answers
38 views

how do i play videos that show text/html decoder plugin-python is missing

I have downloaded a few videos but some of them when played with the default movie player show the following error: "python (v2.7) requires to install plugins to play media files of the following ...