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

2
votes
1answer
33 views

How can I store what video I am watching using Python in Ubuntu?

I am new to Ubuntu. I watch a lot of TV shows and sometimes lose track of what I am watching. When I used Windows, I refered to the list that pops up on right-clicking the VLC icon to keep track of ...
1
vote
2answers
32 views

Creating Virtual Box desktop with Linux on my mac

I am a novice Python programmer and I am having trouble creating a Virtual Box, hopefully this is an easy fix! So, I've been using a virtual machine for my computational physics class, but it is ...
0
votes
0answers
26 views

How to change python+filename.py auto-complete to anyfilename

This questions may seems silly as I am a new Linux user on Ubuntu 16.04. I am learning python now. As the command python x+tab will only auto-complete xxxxx.py instead of xxxxx without .py. How ...
0
votes
0answers
15 views

odroid board gpio error [duplicate]

Please help me solving this issue.I am working on odroid-c1 board and started with gpio programming and my code is: import time import RPi.GPIO as GPIO LED = 22 GPIO.setmode(GPIO.BOARD) GPIO....
0
votes
0answers
53 views

PyCharm's Problem with shared folder of VirtualBox

I have installed Ubuntu in the VirtualBox on Windows 7 host then I shared a folder from windows host to Linux in the VirtualBox and add my login user to vboxsf group. Now I can compile latex files ...
1
vote
1answer
56 views

Creating a bash script [closed]

Alright so, just for a little heads up, I literally just learned what bash script was today. Anyways, I have this series of voice recognition programs wrote in python, and I wanted to make a voice ...
0
votes
0answers
18 views

why other python modules are not incoorported with virtualenv

Hi I have downloaded pymorph module through virtualenv. I activated it to be able to use that module in my code. It works fine and my code is working under virtualenv. The problem is the other python ...
0
votes
1answer
141 views

Cannot run convolutional.py in anaconda tenserenv [closed]

I have installed tensorflow in an anaconda environment called tensorenv and to test the installation I tried to run one of the examples convolutional.py and the follwing comes up. Initialized! E ...
1
vote
2answers
214 views

How do I install the python pymorph module?

How can I install pymorph module for my code in Ubuntu? I tried the commands below but they didn't work. sudo apt-get install pymorp sudo apt-get install python pymorph The message just said: E: ...
5
votes
0answers
92 views

How do I write a Unity sytem indicator in python?

Background: This is NOT for application-indicators but system-indicators. Picture: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators The objective is to find a final solution ...
0
votes
0answers
42 views

Upgraded Ubuntu 14.04 version not taking input from mouse or keyboard

I have Ubuntu 14.04, I upgraded my linux after long time & tried installing mechanize and some other modules of python. and also upgraded to python3.4 .As a result my current linux version (3.16.0-...
1
vote
1answer
47 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
59 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
96 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
53 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
57 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
43 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:...
2
votes
1answer
156 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
41 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
94 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
84 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 ...
4
votes
1answer
149 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
87 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
127 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
72 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
205 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
74 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
37 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
141 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
51 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
51 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
155 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
173 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
36 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
23 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
61 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,...
3
votes
1answer
57 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
41 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
60 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
66 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
529 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
32 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
141 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
14 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
45 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
277 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
50 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
56 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
63 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 ...