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
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 ...
1
vote
0answers
22 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
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 ...
1
vote
0answers
28 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
0answers
33 views

Syntax for sending notification hint using gdbus or python's dbus module

I'm trying to update a previous notification (which displays the screen's brightness after being changed using a progress bar) with gdbus, as notify-send does not support updating. Previously I use ...
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
0answers
50 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,...
1
vote
0answers
66 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, ...
1
vote
0answers
19 views

Updating Terminal Ubuntu

Currently on Ubuntu 14.04 LTS, I am running Python 2.7.6. Is there any way to update this version to Python 3.4.3 (or even more recent than that)?
1
vote
0answers
40 views

Can't start a job with Cron on Ubuntu startup

I am trying to get a simple Python script running on startup with Cron on Ubuntu 16.04. What I did is opened cron with: sudo crontab -e and added the last line as shown in the screenshot: I even ...
1
vote
0answers
31 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
0answers
80 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 ...
1
vote
0answers
169 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 python-pkg-...
1
vote
0answers
19 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 ...
1
vote
0answers
68 views

Error in Opencv instalation (error in file: opencv/modules/videoio/src/cap_libv4l.cpp)

I tried to install OpenCV several times but always returns the same error. I'm running Linux - Debian in Beaglebone Black. The configuration is: root@beaglebone:~# uname -a Linux beaglebone 3.8.13-...
1
vote
0answers
20 views

Tile server performance seemling inconsistant with SSH Launch vs 'Local' Launch

I am setting up a Dell PowerEdge R410 as a tile server (i.e. a server which serves web map images á la Google Maps) and experimenting with TileStache -- a Python application which handles HTTP ...
1
vote
0answers
34 views

IOError: [Errno 29] Illegal seek Wavefile

Im trying to use wavebender library to create music and get data out of music. I get this error don't know how to solve this. from wavebender import * from itertools import * import sys def ncycles(...
1
vote
0answers
137 views

How to “reset” python installation in ubuntu 14.04?

after installing several packages with the package manager, some others using eggs, some others using pip, for 2 versions of python, with some packages that in the meantime changed name (iPython --> ...
1
vote
0answers
155 views

Distribution not found error with scrapy

I am running Ubuntu 14.04 and have scrapy 1.-- installed. Before I started calling it from a script I could interact fine with scrapy from the command line. However since then it still works from the ...
1
vote
0answers
324 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 $...
1
vote
0answers
42 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 ...
1
vote
0answers
20 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 array. ...
1
vote
0answers
27 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
0answers
160 views

Bash shell doesn't display Python output

I started using vim + tmux for my programming and suddenly after accidentally smashing couple of keys [Forgive me I am a klutz] the bash shell started acting weirdly. When I run my unittest written ...
1
vote
0answers
145 views

Uninstall flux which was installed from source

I installed Flux using following steps (source) git clone https://github.com/Kilian/f.lux-indicator-applet.git cd f.lux-indicator-applet sudo python setup.py install Now I want to ...
1
vote
0answers
36 views

Inputting a text to an executable file the moment it's executed

i am bad at choosing titles but my problem is that I have an executable file that returns a value when i type the word password in it using the terminal, but the problem is the file require you to ...
1
vote
0answers
693 views

Cannot create Python 3.5 virtualenv ImportError: No module named 'gdbm'

I'm experiencing the same issue as this individual but unfortunately switching back to Python 3.4 is not an option for me, I need to be running 3.5. I've broken command not found? Here is what I'...
1
vote
0answers
68 views

gi repository problem

When I try to run software-center I get this message Traceback (most recent call last): File "/usr/bin/software-center", line 25, in <module> from gi.repository import Gtk, GObject ...
1
vote
0answers
604 views

ERROR: could not access file “$libdir/plpython2”: No such file or directory

I am running postgresql 9.4 ("PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14), 64-bit" ) when I am trying to create language in postgres SQL : ...
1
vote
0answers
93 views

How to filter audio files according to tacts per minute (speed)?

I have some music collection and I want to sort/filter them easily according to their speed (in tacts per minute). I want to find a simple solution to filter the whole collection using e.g bash, ...
1
vote
0answers
40 views

Web IDE that has a Linux compiler?

Is there a web IDE that has a Linux compiler (virtual Linux compiler) with Python support? I've created a Python application that uses GTK and Linux modules such as os.system and gtk. I need to ...
1
vote
0answers
63 views

Eclipse PyDev won't recognize Django

I recently got involved in a project that requires the following: Python 3.3 or greater Django 1.8 or greater Eclipse as IDE with the PyDev plug-in The part where I have a lot of trouble is the ...
1
vote
0answers
22 views

Does someone still have all the documentaton on Quickly?

The project seams to be dead, but I am using it to create an app, but I need more documentation. I cant run the quickly tutorial, maybe because I'm using elementary Freya, but I am missing a lot of ...
1
vote
0answers
98 views

After manually installing Python 3.5 on Ubunut 15.4 I broke Unity, how can I fix it?

I've done a foolish thing - I did a classic "make install" style installation of Python 3.5. This was a bad idea because it over-wrote some of the Python 3 components, including symbolic links. It ...
1
vote
0answers
140 views

If I install a python package with `apt-get`, can I upgrade it later with `pip`?

I installed a python package (django) using sudo apt-get install python-django. Now I want to upgrade to the latest version. Should I run sudo pip install -U django, or should I uninstall first the ...
1
vote
0answers
146 views

Installing modules for both Python 2 and 3

I need to install some modules for Python: python3-rospkg, python3-catkin-tools and python3-yaml. I need them to work for both python2 and python3. But as soon as I apt-get install one of the above, ...
1
vote
0answers
51 views

Nautilus file notes (user metadata) workaround: how to display note in popup?

This post gives a python program for adding and viewing notes on files under Nautilus: File notes tab gone in Nautilus 3.2.1 It works! I want more.... The annotated file does not have any ...
1
vote
0answers
33 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = pyglet.font.load(...
1
vote
0answers
82 views

Spyder on Ubuntu 12.04 fails after trying to install ipython notebook

Spyder IDE was working fine on both Ubuntu 12.04 in both laptops(HP mini & old Compaq Evo610c) After trying to install python notebook, Spyder stopped working. However Pyhton 2.7.3 works fine. I ...
1
vote
0answers
2k views

Really installing PyQt4/5 for python 3.4 on trusty

I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
1
vote
0answers
173 views

how do I create gnome-terminal from python code?

I use ubuntu 14.04 and I want to create gnome-terminal from python script. I used the following code. the code : !/usr/bin/python from subprocess import Popen,PIPE import os import time os....
1
vote
0answers
59 views

Keep getting errors from apport_python_hook.py

I keep getting this error message when trying to do any apt-get command, or almost any command in general, it also shows up when I open the terminal. I also cannot open the Software Center and ...
1
vote
0answers
74 views

search for mounted hard drive by serial number

Is there a way to check if a hard drive exists using just it's serial number? I'd like to use this in python
1
vote
0answers
571 views

installing Anaconda, errno 2 no such file or directory

I've taken a look at some of the other AskUbuntus, and none of them have fixed my problem. I've been running iPython for almost six months now in order to get some extra practice with the Codecademy ...
1
vote
0answers
46 views

how to install plugin for python v2.7

I tried to run a video DVD and it says you need to install plugin for python v2.7. I am using Ubuntu 13.04.I am very new with ubuntu. what codes shall i have to write to download the plugin and to ...
1
vote
0answers
67 views

execute python package to download a pdf file

i am new in python. please dont bore. i have a python package to download pdf file from a specific site. i can not execute this package. Please help me someone to execute the package. thanks in ...
1
vote
0answers
193 views

Subscribe for DBUS event of screen power off

My MacBook Pro has a keyboard backlight which is pretty awesome, but there's a slight bug: the screen turns off after a given amount of time, but the keyboard backlight stays on. I've copied over ...
1
vote
0answers
26 views

how to install packages which is not in the cache with python

i install packages in my application using python apt. Some example: import apt cache = apt.cache.Cache() pkg = cache["brukkon"] pkg.mark_install() cache.commit() In this example, brukkon is not in ...