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

USB web-cam video of Raspberry-pi in WxPython with control buttons

I was wondering if there is a way to record video from a USB web-cam of Raspberry-pi(including sound). I'd like to be able to record a section of video as well as play the recorded video later using ...
0
votes
0answers
20 views

python and package manager are broken

After upgrading Ubuntu from 15.04 to 16.04, python and package manager are broken. When running apt-get update I receive the message use apt-get -f install, but when running this command I get ...
-1
votes
1answer
27 views

ImportError: No module named lsb_release

When I run lsb_release -a , it shows an error: Traceback (most recent call last): File "/usr/bin/lsb_release", line 26, in <module> import lsb_release ImportError: No module named lsb_release ...
0
votes
0answers
12 views

Cannot upgrade pip behind proxy

I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt, but that version ...
0
votes
0answers
13 views

PyBFD cannot find Binutils in 16.04

I've upgraded my distro from 15.10 to 16.04 LTS. In 15.10 everything was okay. I am using pybfd 0.1.1 with binutils 2.26 (In 16.04). The python package pybfd used to be okay with binutils of 15.10. ...
0
votes
0answers
11 views

can't install rednotebook because of python dependencies

I can't install rednotebook in ubuntu 16.04. How can I handle this problem? Thanks. sudo apt-get install rednotebook -f Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
9 views

Error on installing python-egenix-mxdatetime

I get an error on installing python-egenix-mxdatetime specific the 3.1.3 version. First I downloaded the package from egenix site, then tried to install python-egenix-mxdatetime using the below ...
-1
votes
0answers
29 views

Exception: tostring() has been removed. Please call tobytes() instead

I try to install reddit on my 12.04 ubuntu server but I get a lot of errors. Here are the first instructions: $ git clone https://github.com/reddit/reddit.git Once this is done, you'll need to ...
0
votes
0answers
10 views

How to install l2cs on unbuntu?

I have to install l2cs on my 12.04 ubuntu server but I don't know how to do that. I'm beginner on dedicate servers and I need to some help to do that. Can someone to provide a set-by-step tutorial ...
1
vote
2answers
22 views

Ipython is using python 3.5 instead of 2.7

I recently update my system from 15.10 to 16.04 but now I'm having a problem with the interpreter used by ipython. Now ipython a ipython3 uses the same version (3.5.1) I have tried reinstalling ...
0
votes
0answers
90 views

pip use on Ubuntu 16.04

I installed python packages on Ubuntu Trusty using pip and was able to call the installed packages as expected, but on Ubuntu Xenial (installed in a virtual machine) I did the same thing using pip but ...
1
vote
1answer
52 views

Why no more “python-support” in 16.04?

I'm curious why the python-support package no longer exists in 16.04 - is this related to changing Python3 to be the default? Furthermore, is there any package that "requires" it that actually doesn't ...
0
votes
0answers
11 views

Python build errors when installing packages via setup.py

I'm running Python 3.4.3 on Ubuntu 14.04. I have an issue where whenever I install a package via python setup.py install, if there is any building involved the process errors. This happens even though ...
0
votes
0answers
13 views

In Spyder, the window turns gray the moment I type “plt” (for matplotlib.pyplot)

I'm following a course on Machine Learning on Udacity, https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb, and after importing the data I'd like to try ...
1
vote
1answer
27 views

How can I use the “Save as” option in Spyder?

I've recently switched from using Spyder in Windows to Ubuntu 14.04 to edit Python (.py) scripts. In Windows, one could choose File -> Save as, to save the .py file under any name. In Linux, however, ...
0
votes
0answers
11 views

Why is the network unreachable whenever I don't use avahi-autoipd

I'm building a mobile mesh server and whenever I attempt to send broadcasts (shortest path determination), in python3, it fails. I run the following shell commands on both devices (currently ...
0
votes
0answers
22 views

Could not find suitable distribution for Requirement.parse('l2cs>=2.0.2')

I get an error on Ubuntu 14.04 Searching for l2cs>=2.0.2 Reading https://pypi.python.org/simple/l2cs/ No local packages or download links found for l2cs>=2.0.2 error: Could not find suitable ...
0
votes
1answer
20 views

error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I ran the following commands in the terminal for a 14.04 Ubuntu server $ cd reddit/r2 $ python setup.py build $ sudo python setup.py develop After the last line I get an error, please see bellow ...
0
votes
0answers
17 views

Problem in gst mad in Ubuntu 16.04

Developed a software in python which uses Gstreamer for the working. We installed it and work on ubuntu 15.10. For that installed some components like libmad0-dev, libmadlib-dev and gstreamer0.1*. ...
0
votes
0answers
31 views

Segmentation fault (core dumped) using matplotlib on Ubuntu Mate 16.04

I recently installed on my machine (an old imac) Ubuntu Mate 16.04. When I try to run a python script from terminal I get the error: Segmentation fault (core dumped) The same script works perfectly ...
0
votes
0answers
14 views

YouCompleteMe plugin of VIM not working with NLTK

I have recently installed the YouCompleteMe plugin for vim through Vundle. It works really well for Python. Problem starts when I import the third party library nltk. For example if I do the following ...
1
vote
2answers
215 views

Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that: The default VIM package has been built against python3 instead of python2. Yet after I installed vim with the following command: sudo apt-get ...
0
votes
0answers
13 views

Getting this error :Sub-process /usr/bin/dpkg returned an error code (1) when I try to run sudo apt-get install python-matplotlib

I tried installing matplotlib, to make graphs on python on Ubuntu 14.04 and am getting the following error. I am unable to resolve this error: (env)ubuntu@ubuntu-Inspiron-5423:~/tweepy$ sudo apt-get ...
0
votes
1answer
20 views

pyhton-pkcs11 package in 16.04

I see that pyhton-pkcs11 isn't included in 16.04 repositories. Only pyhton3-pkcs11. Is there any way to install Python2 package version ?
0
votes
0answers
20 views

Dependency problem

I use Ubuntu on my offline laptop. Since I want to install python, I have to install a lot of dependencies as well, and to install those dependencies I need even more dependencies of the ...
0
votes
0answers
15 views

How to install wxpython for virtualenv

I am on 14.04. The system python version is 2.7.6. I am testing a software meant for python 2.7.9. So I have a virtualenv running python 2.7.9. Running this pip install wxpython doesn't work. So I ...
0
votes
0answers
11 views

How to install and run qt-designer for python

I'm new to ubuntu, I entered the following commands sudo apt-get install python-pyqt and sudo apt-get install qt-designer. Both the commands executed successfuly but I'm not able to figure out how to ...
1
vote
0answers
38 views

Snapcraft Python2 building numpy with python-dev

just starting to get my hands dirty with snappy. I am trying to port a python project to a snappy app. The python code relies on numpy 1.5.1, which relies on python-dev being installed. My snapcraft ...
0
votes
1answer
24 views

ImportError: No module named 'PyQt5.QtWebEngineWidgets'

I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5.QtWebEngineWidgets import ( ImportError: No module named 'PyQt5.QtWebEngineWidgets' I think there is a ...
0
votes
1answer
40 views

Install python 2.7.11 on Ubuntu without compiling or replacing the pre-installed version

I'm using Ubuntu trusty which comes with python 2.7.6 pre-installed. I need to install 2.7.11 in like /usr/local/bin/python without touching /usr/bin/python or compiling from source. There are some ...
0
votes
0answers
26 views

Electrum on Ubuntu 12.04 LTS Offline Computer

I am a ubuntu newbie and want to run Electrum Bitcoin Wallet on an always offline Ubuntu Laptop. The instruction is: Install dependencies: sudo apt-get install python-qt4 python-pip Install ...
0
votes
0answers
14 views

How I can install regex package for python 3.4 without errors?

I have a little problem (or a big one?). I want to install regex package for Python 3.4. But then I use pip or our installation methods I am getting error: ...
0
votes
2answers
25 views

Use pip with Python 3.5

I have a AWS Ubuntu instance where I manually installed Python3.5 (downloaded it, configured, and ran make, make install). Then I changed the symbolic link sudo ln -fs /opt/python3.5/bin/python3.5 ...
0
votes
1answer
38 views

How to get pip functional again?

I ran into the issue below, while running pip trying to install rpyc. Even if i try to run pip without any arguments it still outputs the same error. Any help would be greatly appriciated, Thanks. ...
0
votes
0answers
6 views

How to run EasyModeller (GUI for Modeller) on Ubuntu 14 x64?

I have successfully installed Modeller. I want to try to use the front end GUI software EasyModeller. However, when I try to run it I receive the error message as follows: ...
0
votes
0answers
24 views

OS error permission denied

I'm trying to execute a python script but I'm getting an OSError saying “Permission denied”. I tried to change the permissions of the temp folder by sudo chmod 777 -R temp but it did not work here ...
0
votes
0answers
67 views

Problems after installing Python 3.5.1

I installed Ubuntu 16.04 completely now on my machine aswell as the newest Python version (3.5.1). now i have problems with following packages: python-cairo python-gobject-2 python-pip ...
0
votes
0answers
16 views

Change back default python in ubuntu 12.04

My default python version on my Ubuntu 12.04 is python 3. I remember, a long time ago, I asked someone to change the default python version to 3. I didn't really do a lot, so I had no problems. But ...
0
votes
1answer
28 views

Installing libgtk-x11-2.0.so.0 in Ubuntu 15.04

I'm trying to install opencv on my Ubuntu 15.04 server. I'm using the conda package manager. conda install -c https://conda.binstar.org/menpo opencv3 When I try importing cv2, the Python package, I ...
1
vote
1answer
67 views

pip3 install of jupyter issues: 'notebook' is not a Jupyter command

I'm running Ubuntu 16.04 and installed jupyter using pip3 install jupyter as described on the jupyter.org website. The install appeared to work without issue. There were no missing zeromq references ...
1
vote
0answers
17 views

Python in terminal- Trying to use ''erase'' and it writes more

im really new to both Ubuntu and trying to learn to use python. Ive just installed python. When i start python in terminal "python3.5" my keys are adding more when i try to erase text. When i try to ...
0
votes
1answer
44 views

How to install webilder on Ubuntu 16.04?

I was trying to install my favorite background changer application on the latest Ubuntu, however I met the following Issue: webilder : Depends: python-support (>= 0.90.0) but it is not installable I ...
8
votes
3answers
868 views

How to run a Python program directly?

How to run a Python program directly? I have created a .py file (say, mnik.py) in gedit. It runs smoothly in terminal. Command goes python3 mnik.py But whenever I click on the file it is opened ...
1
vote
1answer
37 views

Kivy hello world script yields black screen on Ubuntu 14.04

On running the basic hello world script found here - https://kivy.org/docs/guide/basic.html the following log is generated and a windows pops up completely blank and black. I've installed Kivy ...
0
votes
0answers
30 views

Can't edit a file in Ubunutu 14.04

I'm trying to edit a python file called resize.py /usr/local/lib/python3.4/dist-packages/moviepy/video/fx/resize.py I gave myself permissions to unlock the file using sudo chmod 776 ...
0
votes
1answer
135 views

How to remove Python 2 in 16.04?

Ubuntu has dropped Python 2 in 16.04. It is still installed after an upgrade, though (it was not part of the "obsolete packages"). Is there a clean way to remove Python 2 and all its dependencies in ...
0
votes
2answers
24 views

How to create a debian/control file that differs based on Ubuntu release?

I have great deal of source code that we maintain, producing many different Ubuntu packages. All of these packages need to build on Ubuntu LTS releases from 08.04 forward. (Yes, I know these are old ...
1
vote
2answers
26 views

Compiling python3 code in terminal with interpreter [closed]

When I compile my code simply with the command python3 name.py, it's being run, but then the whole story ends and I can't do anything with the compiled data. I want to somehow compile my program to ...
-1
votes
0answers
23 views

removed python2.7 and the system collaps [duplicate]

my ubuntu is 14.04. python2.7 has been removed many parts of the system were broken. How can I manage this situation
0
votes
1answer
32 views

uninstall python 2.7.6 and install 2.6 instead

I need to uninstall python 2.7.6 and install 2.6 instead. how can I manage that. which python command gives (/usr/bin/python). my environment is ubuntu 14.04.