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

1
vote
1answer
42 views

Handling file open (mime type) with Python [closed]

I created a file mymime.xml <?xml version='1.0' encoding='utf-8'?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/myapp"> ...
0
votes
2answers
50 views

what is python and why does it use so much cpu periodically?

I have a Compaq V5205 with 1.46g celeron CPU. I am relatively happy with the performance as I mostly just check email and browse the internet. However, sometimes the system slows to a crawl. I ...
0
votes
1answer
49 views

TensorFlow broken data stream reading image file

I have installed tensorflow 0.8.0 in anaconda env called "tensorenv". I then began running basic codes in it in a file called basic_python.py. import matplotlib.image as mpimg # First, load the ...
0
votes
1answer
48 views

sudo problem. I can't write my password to terminal

so I was installing python on my laptop :~/Desktop/Python-3.5.1$ su root Password: ssu: Authentication failure` It didn't let me wrote my password. so I looked help and found that: gksu ...
3
votes
0answers
36 views

Python virtualenvwrapper problem running the initialization hooks

On a fresh install of 16.04, I am trying to install virtualenvwrapper by following this great answer by Gerhard Burger. after configuring the .bashrc, whenever opening the terminal displays bash: /...
1
vote
0answers
30 views

PermissionError: [Errno 13] in python .webassets-cache

So I got a 500 error after trying out a flask_assets Bundle. I have it working on my local machine, made to use Pyscss. But once I deployed I checked the error.log and saw that I had a PermissionError:...
1
vote
1answer
85 views

How to ensure matplotlib in a Python 3 virtualenv uses the TkAgg backend?

I am using Ubuntu 16.04 with Python 3. Using apt to install matplotlib and then printing the matplotlib backend gives TKAgg, which is expected because Ubuntu has 16.04 has python3-tk installed. This ...
2
votes
1answer
31 views

Unable to install and run App/Panel Indicator in Ubuntu 14.04

I have developed an app indicator for Ubuntu 14.04 using Python. I followed this tutorial and I was able to push my app indicator to my PPA successfully. When I run the following commands - sudo add-...
2
votes
3answers
71 views

Find all python files in linux file system [duplicate]

How can I search my entire Linux filesystem for all python files (files with extension .py)? I know I can do find -name filename but how can I do it for file type?
1
vote
2answers
73 views

How do I run a python script whenever a file is created in a directory?

So, I'm trying to do this, somewhat, simple task, but I have not been successful yet. I'm hoping that changes now. The goal: Run /var/www/lager-scanner/filer/pluk_script.py whenever there is a new ...
3
votes
1answer
92 views

How do I install photofilmstrip on Ubuntu 16.04?

When I try to install photofilmstrip, I am told that that there is a problem: Error dependency is not satisfiable: pythonwxgtk2.8 When I tried to install it via Command line, sudo apt-get ...
1
vote
1answer
63 views

Failed to build Pillow

I'm using Kubuntu 16.04. I'm trying to install the TFLearn library, but it requires Pillow, which it tried to install but was failing. Installing Pillow on its own also doesn't work. daniel@beepboop:~...
0
votes
2answers
46 views

what is gi.repository in python? [closed]

I see from a lot of tutorials that in python the statement "from gi.repository" is used to import lots of different things, like gtk,etc etc.. what library is it? is it correlated with github? ...
0
votes
1answer
48 views

Unable to use python3

Unknowingly i deleted the python folders in the / (root) directory, so I got this error when I tried to run python3. I reinstalled python3.2.3 version by manually downlading and installing with the ...
3
votes
2answers
164 views

How to install LLVM 3.7.x on Ubuntu 14.01 (llvm.org/apt down)

I am trying to install LLVM 3.7.x in order to get llvmlite for Python 2.7. However, the apt mirror seems to be down, reading: APT mirror was temporary switched off due to excess load. We are ...
0
votes
0answers
49 views

Errors in installing virtualenv after installing to python 3.3.0 also

I am getting this error when I run the sudo pip install virtualenv command. I tried installing the python 3.3.0 version also which you can notice below. but I am not able to make the python3.3.0 ...
1
vote
1answer
33 views

Python 3.3 installation error - abort installation

When I try to upgrade python3 version, I am getting the following error sudo apt-get build-dep python3.2 Reading package lists... Done Building dependency tree Reading state information... ...
3
votes
1answer
125 views

Self built Snap run fail on Locale error

I built a snap using python3 plugin. It should open a PyQt5 app. The snap built with no problem, but after the snap is installed, calling the installed python script in command line fails with the ...
0
votes
1answer
37 views

How do I run mulitple pythons with virtualenv in production?

I have installed virtualenv to run a different version of Python than the system Python for my django app. I installed Python 2.7.11 using the method described here. I've modified my uwsgi.ini file to ...
0
votes
0answers
32 views

importerror: no module named eyed3

python 2.7.6 , ubuntu 14.04 I installed the eyed3 module but it still gives an import error. Importerror: no module named eyed3
1
vote
1answer
106 views

Install python 3.5.1 on ubuntu 14.04 [duplicate]

I would like to know how to install python 3.5.1 on Ubuntu 14.04.
0
votes
1answer
104 views

gcc-5: internal compiler error: Bus error (program as)

I'm trying to install Python 2.7.11 on my Ubuntu 14.04 LTS vServer (hosted at strato), because it's a requirement for letsencrypt. I'm using this tutorial, basically just replacing 2.7.9 with 2.7.11. ...
1
vote
1answer
33 views

Project Explorer for Python in Ubuntu 16

What are the project explorers or IDEs available for python programmer in Ubuntu? I am aware about Eclipse and Pydev plugin, but I find it pretty slow. I then usually use Sublime text editor, but that ...
0
votes
0answers
21 views

Ubuntu 14.04 all python2 programs not launching

If I try and launch Glances or ranger from a terminal it will just hang forever until I cancel it. I think the issue was caused by something I messed up with python2 when trying to use django. I used ...
1
vote
0answers
48 views

Didn't work with pip, but worked with apt-get?

I asked an SO question, where I was trying: pip install -U scikit-image where in fact what was needed was: sudo apt-get install -U scikit-image What's the difference? I mean how the later worked,...
2
votes
1answer
43 views

“sudo pip” differs from normal “pip”

When I execute which pip3 it points to /usr/.../anaconda3/bin/pip3 However, when I run sudo which pip3 the result is /usr/bin/pip3 Where does this problem comes from and how do I ...
1
vote
1answer
40 views

Save commandline commands for Python [closed]

I have a tool that's in Python- it resides in a git repository. Whenever this tool is started (say, $mytool start is the command that starts the tool)- I want to save all the following command line ...
0
votes
0answers
33 views

How to resolve ERROR: virtualenvwrapper could not find virtualenv in your path

Other such posts didn't solve my error. I followed this post to install virtualenv and virtualenvwrapper . Now when try running mkvirtualenv Addon-Tests in my project's root directory, I get an error :...
0
votes
0answers
42 views

Play on Linux not working with python error

I tried to google for an hour but did not find a fix. Suggestions? I tried with the regular play on linux version and the devel verison, but have the same error. I tried all suggestions on installing ...
0
votes
1answer
252 views

Ubuntu 16: pip install installs to python 3 instead of 2

I upgraded to Ubuntu 16.04. I know it came with only python 3 installed, but somehow python 2 got in there ( I guess as a dependency). That's ok because i would add it anyway. Both python versions are ...
0
votes
0answers
20 views

Problems with Python running apt-get upgrade

When I'm trying to make apt-get upgrade I'm getting the following errors: Preparing to unpack .../python-samba_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ... Traceback (most recent call last): File "...
1
vote
0answers
14 views

How to set Python 3 as default on Ubuntu 16.04 [duplicate]

According to the release notes Ubuntu 16.04 uses Python 3 by default and should not even include include Python 2: Python 3 Python2 is not installed anymore by default on the server, cloud ...
5
votes
1answer
97 views

ImportError: No module named Selenium2Library

I am quite new to Robot Framework and I could use some help. I'm using Ubuntu 14. And I have installed Robot following these steps: # Python package management tool pip. sudo apt-get install python2....
0
votes
0answers
12 views

How to ensure threading and parallel computing with cado-nfs

I tried to run CADO-NFS 2.1.1 to factor 512-bit number (155 digits) using 4 machines with this command : t=/tmp/c155 factor.sh ...
0
votes
1answer
30 views

How to `conda install ipython`?

System: Ubuntu 14.04, python 2.7.6, pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7). I am trying to setup my packages by conda because of this table here in my system. I did successfully ...
1
vote
1answer
151 views

How to install Matplotlib in Ubuntu 14.04?

Motivation in 14.04: 16.04 is buggy for production use. 14.04 is the only stable one. 15.10 is also buggy. Their upstart/systemd with runit is horrible. I run masi@masi:~/BitTorrentSync/IPython$ sudo ...
0
votes
2answers
48 views

Python code to GET (not set) the current desktop wallpaper image

Like the title says, I'd like to slurp in the entire 1920x1080 background wallpaper image into a readable object regardless of what windows, panels, launchers, etc. may currently be on top of it. ...
0
votes
1answer
49 views

How to Restore Pip installation and its Installations in Ubuntu 14.04? [closed]

I messed up my Pip installation. There was one missing when I run sudo apt-get install python-pip. Then, I run after sudo apt-get install python-dev. Then, I started to get 404 errors in ipython ...
1
vote
1answer
47 views

How to Install Pycosat in Ubuntu?

I run pip install pycosat but I get: Downloading/unpacking pycosat Downloading pycosat-0.6.1.tar.gz (59kB): 59kB downloaded Running setup.py (path:/tmp/pip_build_masi/pycosat/setup.py) egg_info ...
-1
votes
1answer
96 views

Ubuntu 16.04 32 bit. Problems with PyCharm Community

I've got a same problem as a guy here. But I have 32 bit system. I've tried to fix it as the top answer advices, but instead of working pycharm I catch much more problems, which are wroten at this ...
1
vote
1answer
125 views

Tensorflow for python 3 throws an error when installing on ubuntu

Today I was attempting to install google's Tensorflow for python 3 without gpu. When I run the command: sudo -H pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-...
0
votes
1answer
37 views

Can't use Python console on Gedit

The error message is: Plugin loader python3 was not found Python3 is installed... Using Ubuntu 16.04 LTS
1
vote
1answer
31 views

how to install a specific package version

I'm building my first debian package (django), which needs some dependencies, so I was wondering if it's possible to install a specific package version with apt-get. For example instead of pip ...
0
votes
0answers
27 views

Unable to source virtualenvwrapper.sh file

I have two versions of python installed, version 2.7 at /usr/local/lib/python2.7/dist-packages another version at /home/kv/.pythonbrew/pythons/Python-2.7.5/bin/python running the command kv@kv:...
0
votes
1answer
31 views

Python script in CRON is not running in AWS ubuntu 14.04 instance

I want to schedule a CRON job into AWS Ubuntu instance. I have a simple cron sample like the following - import pandas as greatPanda import pprint import uuid df = greatPanda.read_csv('/home/soumik/...
0
votes
1answer
856 views

installing pip3 (for python3) on ubuntu 16.04 LTS using a proxy

I have tried entering: sudo apt install python3-pip The error I get is: $ sudo apt install python3-pip Reading package lists... Done Building dependency tree Reading state information......
-1
votes
0answers
36 views

PIP does not see a Python

amigo421: ~$ pip bash: /usr/local/bin/pip: /usr/bin/python: bad interpreter: No such file or directory amigo421: ~$ python --version Python 3.4.3 amigo421: ~$ alias alias python='...
0
votes
0answers
35 views

What's the most convenient GUI framework in Ubuntu 14.04 to create a graphical interface for a Kinect 2.0?

I want to create a graphical interface for the Kinect 2.0 (for Xbox One) in Ubuntu 14.04 LTS combining Python and C programming languages, in order for anybody to be able to easily use it, i.e., ...
1
vote
0answers
64 views

Launch python script fullscreen on startup (Ubuntu 14.04)

I have a python program that I would like to automatically run after logging in. This shouldn't be much of a problem, however, I would like the terminal to be in fullscreen mode while running the ...
1
vote
0answers
30 views

Cannot launch Pydev5.0.0 in Eclipse3.8

I installed Eclipse3.8 in Ubuntu 16.04LTS, and my Java version is JDK8. I installed Pydev5.0.0 and I could see "PyDev for Eclipse" in "Installation Details". However, I could find pydev after restart, ...