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
1answer
20 views

Help with FUSE filesystem

I am new to Ubuntu and I need to create a FUSE based file system. I've seen many examples online, but I can't understand the differences between the examples. Some examples from what I've seen so far ...
0
votes
0answers
13 views

Python … Can't find a usable init.tcl in the following directories: …This probably means that Tcl wasn't installed properly

I need help with my script in python 2.7.6 Lately i'm analizing hdf5 data. But is a large amount of data, like 2 years of measurements, and python don't support it. I need to make a complete time ...
1
vote
2answers
240 views

python hashlib fails to install pip

I have a script that depends on hashlib, but when I try sudo pip install hashlib I get this: $ sudo pip install hashlib Collecting hashlib Downloading hashlib-20081119.zip (42kB) 100% |█████████...
0
votes
0answers
25 views

Unable to use Speech recognition module in Ubuntu 15.10

I am trying to use speech_recognition module in python 2.7, everytime when I import speech_recognition I get the following errors: $ sudo python2.7 -m speech_recognition [sudo] password for ...
1
vote
2answers
26 views

Building very long rsync inclusions and exclusions with Python

I'm trying to run a backup of all my .x folders in Home to save configurations. With the program I'm writing, you can select any folders you want included or excluded from the backup, this list is ...
5
votes
2answers
18k views

Installing matplotlib on Ubuntu 14.04 after installing Python 3 with pyenv

I am using Ubuntu 14.04 with Python 2.7.6. I have installed matplotlib for Python 2. Now, I just installed Python 3.4.2 using pyenv install 3.4.2. I then ran pip install matplotlib to install ...
0
votes
0answers
19 views

BSON data iteration

I am calling the maas api to get the details of node. And I am getting the output as bson data. How can I iterate it. By searching I found that BSON package. But I want to use alternative of this. ...
0
votes
0answers
11 views

How do I make h5py MPI-aware with the apt package system?

As I am trying to run parallel hdf5 with h5py and mpi4py, I am met with the following error: NameError: global name 'mpi4py' is not defined Googling suggests that this is because h5py is not "mpi-...
3
votes
1answer
156 views

How do I use the Discoverer module with pygi GstPbutils?

I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module. from gi.repository import Gst, GstPbutils def on_discovered(discoverer, ismedia): print("%s -- %s" %( ...
-1
votes
0answers
42 views

Need help with Bash script!

I want help to form a bash script as I don't know how to do it? Backgroud information: OS: Ubuntu 16.04 LTS Apps partion mounted through NAS: /apps Both processes shall be runing at anygiven ...
0
votes
1answer
35 views

Unable to install matplotlib using pip in Ubuntu 16.04

In Ubuntu 16.04 I am able to install almost every python package and library using pip except for matplotlib. I use this command to install matplotlib pip install matplotlib This gives the error: ...
1
vote
1answer
222 views

Installing LiClipse 2.4.0, not launching

I recently installed LiClipse on my virtual Ubuntu Machine following these steps: Download latest version of LiClipse from the official website. Extract the downloaded file using the command tar ...
0
votes
1answer
18 views

Remotely log into multiple computers and run a python script

I am currently trying to set up network rendering with Blender using computers on different networks. I made a script that launches blender and connects to the host's computer. My problem is that I ...
0
votes
1answer
45 views

Numpy broken in ubuntu 16.04 LTS

I have instaled packages "python-numpy" on ubuntu 16.04 LTS. Unfortunately, the package is broken: >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <...
1
vote
1answer
4k views

Download the latest version of python-pip using apt-get

Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13 When I run sudo apt-get install python-pip It installs a a very old version. $ pip --version pip 1.0 ...
0
votes
0answers
30 views

i am making a web app and i got this error with mysql

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) [2016-06-27 01:37:28,036] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "/home/ubuntu/.local/lib/python2.7/...
0
votes
1answer
36 views

Remove/Uninstall Python 3.5

I am trying to uninstall Python 3.5. I have tried this up till now: sudo make clean sudo make uninstall sudo -n install These commands don't remove Python 3.5 completely. I want to keep 3.4 as it ...
1
vote
2answers
2k views

What is the difference between idle3 and idle-python3.2

I installed them both via apt-get install and they seem to be the same. If I start them they both open up a python shell
0
votes
0answers
10 views

Errors were encountered while processing: python-pkg-resources

I was trying to install the packages: sudo apt-get install -y network-manager cron unattended-upgrades avahi-daemon ros-kinetic-ros-base python-rosdep but this failed with the error: Errors were ...
1
vote
0answers
16 views

Changes via Gio.Settings don't take effect

As the title suggests, I am trying to alter gsettings via python's Gio module on Ubuntu 16.04 LTS ( a user over at Unix & Linux site said the script bellow works on Arch, so it may be Ubuntu-...
3
votes
0answers
25 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
1
vote
0answers
21 views

Python plots won't display: “Font config error”

I am trying to plot some histograms with matplotlib.pyplot through the PyCharm IDE. Whenever I run my project, I get the same thing: Font config error: cannot load default config file and no ...
1
vote
0answers
19 views

Why can't java find my fonts?

Whenever I try to run any jar file via java -jar file.jar, I get an exception saying: Exception in thread "main" java.lang.NoSuchFieldError: fontFile I just earlier today was having the same issue ...
6
votes
0answers
81 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
1answer
43 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. ...
3
votes
0answers
28 views

Software & Updates crashes and will not open

I am unable to open the Software & Updates configuration window in System Settings. The best I have been able to do to understand what is going on is the following output after opening System ...
1
vote
1answer
21 views

IndexError: list index out of range when installing iPython in Ubuntu 14.04

I am following this and I am getting: gsamaras@gsamaras-A15:~$ sudo pip install "ipython[notebook]" Downloading/unpacking ipython[notebook] Downloading ipython-4.2.0-py2-none-any.whl (736kB): 736kB ...
24
votes
1answer
142k views

How to install numpy and scipy for python?

I am tired to try to install numpy and scipy for phyton 2.7.5, I need this version of python because my final goal it's to install class (http://class-code.net/) and montepython (http://montepython....
0
votes
2answers
4k views

Python - AttributeError with hashlib: no such attribute: “openssl_md_meth_names”

I don't know why this is happening, but after some crazy recovery from installing python from source, when anything imports hashlib, it comes up with something like this error: Traceback (most recent ...
1
vote
0answers
32 views

Unable to install Pillow on Ubuntu 15.10

I m trying to install pillow via the command : pip install pillow on my Ubuntu machine but I repeatedly get this error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 How can I fix ...
1
vote
0answers
20 views

How does one package a python application that includes a gsettings schema with setuptools?

I'm trying to use setuptools to package a python application that relies on gsettings for storing and retrieving user's preferences. However I have not used said tool before and I am unsure about what ...
0
votes
0answers
22 views

alt key shortcuts in pycharm are not working on ubuntu 16.04

Shortcuts involving "Alt" key is not working on pycharm. For example the shortcut for "finding usages" on my machine is "Alt +f7". But whenever I press this key, my cursor changes from arrow to the ...
0
votes
0answers
27 views

Python Gobject broken Help?

I don't know what broke it, but my python Gobject library is missing something ... When I try to run most tools like gnome-tweak-tool which require GTK, I get an error saying : Traceback (most ...
40
votes
4answers
55k views

How to set up and use a virtual python environment in Ubuntu?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly takes care of permission issues. But what is the easiest way ...
3
votes
3answers
364 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My vim doesn't have python support. The thing is that I installed vim, vim-gnome, vim-nox, I surfed net for hours and tried to build vim from source, I deleted some stuff like vim-...
0
votes
1answer
26 views

setuptools must be installed to install from a source distribution

I am trying to install pywavelets lib I gave a command pip install pywavelets It gave me a error setuptools must be installed to install from a source distribution. Checking with this error I saw ...
1
vote
1answer
28 views

python: pip install xmltodict fails

I would like to use Ansible on my ubuntu machine. I tried to use the ping module and it complains that it does not find the xmltodict python library. I thus wanted to install the missing module using ...
34
votes
3answers
48k views

How do I install newer Python versions using apt-get?

How can I install a newer version of Python using apt-get? Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package ...
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 ...
2
votes
2answers
6k views

IDLE installation in Ubuntu 14.04

Does anybody know which IDLE package I should install from Software Center in Ubuntu 14.04 assuming I want to program in python 3?
11
votes
3answers
680 views

Latest python-pip with Ubuntu 16.04

In Ubuntu 16.04 when you do: pip install --upgrade pip you get: Collecting pip Using cached pip-8.1.2-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-8.1.1 You ...
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
2answers
66 views

Start terminal in ubuntu with a python script?

How can I start a terminal in Ubuntu 16.04 with a python script, execute commands on that terminal, and retrieve the output from those commands? For example, I want to check the contents of a folder (...
0
votes
1answer
198 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 ...
4
votes
1answer
22 views

ps inside crontab is not seeing a running process

I have this robot worker.py, which I just run as: python worker.py --details There are many problems surrounding this robot, so it keeps going down each 30 minutes. When the robot is running, ps ...
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....
1
vote
1answer
34 views

Pydev installation problem in eclipse

I am trying to install pydev 5.0 in eclipse 3.8.1 in Ubuntu 14.04 LTS,using Help->install new software.. I have Open java 1.7.0_101 and python 2.7.6. Installation success but it doesn't see in ...
-3
votes
0answers
22 views

Which distro is best for running large python programs? [on hold]

I have been using Ubuntu 14.04 in Virtualbox (host being Windows 8.1) for implementing some Natural Language Processing tools (using python). But Ubuntu crashes when i run some large programs. I was ...
1
vote
0answers
26 views

Geeknote installation

I am trying to install Geeknote from source using the instructions from https://www.geeknote.me/documentation/. When I get to line 7 of the instructions in the terminal, I get the following error ...
1
vote
1answer
4k views

uwsgi can't find python plugin

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message: nickd@my-vps:~$ sudo /etc/...