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

3
votes
2answers
116 views

I tried to install python package.Then some error is showing like “exeption…” why?

Friends,I downloaded and installed pip in my Ubuntu.Then I tried to install packages like PLY and My xml etc.But i got a a sequence of sentences written in red. Exception: Traceback (most recent call ...
1
vote
0answers
26 views

Save to delete all '*.pyc' and '*.pyo' files?

I've read that to resolve an error EOFError: marshal data too short when running a Python script, an approach is to delete all *.pyc and *.pyo files. Is that safe on an Ubuntu system? I mean, those ...
2
votes
2answers
68 views

Software & Updates (software-properties-gtk): 'EOFError: marshal data too short'

I cannot open Software & Updates tool on 14.04 and get the following error: Here is the full output of apt-get update, it shows this warning: W: GPG error: http://dl.bintray.com Release: The ...
0
votes
2answers
46 views

I downloaded and installed pip. How to install packages?

I downloaded and installed pip in Ubuntu. Then I tried to install packages like PLY and My xml etc. But I got a a sequence of sentences written in red. I used pip install ply.3.4.jar to install. What ...
1
vote
1answer
45 views

Executing bash script via python gives syntax error

So, I'm trying to source a file via Python. The code goes something like this: import os source = 'source /home/software/cadence/release2013/setup/xyz.setup p' os.system(source) This gives the ...
0
votes
0answers
9 views

How can I host multiple Python module docs locally?

I'd like to make a local documentation mirror for several Python modules. These modules already host docs on readthedocs.org or are self-hosted with Sphinx-like themes, so I know they're in ...
0
votes
0answers
7 views

When I run the software updater does it update all the packages I installed via the terminal, including dependencies?

I am a beginner on Ubuntu. I will explain my problem with an example. For example, if I installed the Google API libraries in Python using the instructions given here, then upon running the software ...
0
votes
0answers
62 views

Problems installing 'quickly'

I am very interested in application development in Ubuntu. Some sites suggest 'quickly' but on installing quickly I get the following errors: Err http://in.archive.ubuntu.com/ubuntu/ ...
0
votes
1answer
66 views

change thunderbird's icon while running

I'm searching a way to temporarily change the icon of an application (thunderbird in my case) while it's running. I tried a dozen of addons, but none if them did the job. Is there a way to code this? ...
1
vote
1answer
196 views

Trying to Install Pip using python-pip

Was trying to install Pip through the command I was getting the following error message. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: ...
0
votes
0answers
45 views

python mapreduce job failed - log4j not configured?

I have hadoop 2.7.1 installed on Ubuntu 15.10 as a single node cluster and I'm trying to run a python mapreduce wordcount fount in ...
0
votes
0answers
29 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
249 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
86 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
64 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
22 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
60 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
29 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
102 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
23 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
72 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
115 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
27 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
1answer
36 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
75 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
0
votes
1answer
33 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
vote
2answers
134 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
47 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
177 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
27 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
90 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
61 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
203 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
206 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
35 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
37 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 ...
2
votes
1answer
1k 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
88 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
59 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
105 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
51 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
31 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
18 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 ...
2
votes
2answers
560 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
54 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
13 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 ...
1
vote
1answer
322 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
81 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
22 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 ...
1
vote
1answer
130 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, ...