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

How to fix these problems installing imgdupes

I'm trying to install imgdupes, but the terminal says pip command not found. https://github.com/jesjimher/imgdupes sudo apt-get install python-cffi python-dev libjpeg-dev gir1.2-gexiv2-0.10 sudo pip ...
0
votes
1answer
21 views

How do I add my own program to the terminal?

I want to be able to make a program for example in Python and then execute it in the terminal no matter where I am located. I mean, if I have an executable python file AND I'm in the same folder of ...
0
votes
1answer
6k views

ssl missing from Python. 'module' object has no attribute 'HTTPSConnection'

My main issue is that httplib module of python is missing HTTPSConnection. When I try to use pip to install fabric using pip it gives me this error: 'module' object has no attribute ...
0
votes
1answer
16 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
1
vote
2answers
25 views

wanting to add back and forward buttons. Using: quickly, glade, and webkit, webview, python

I'm new to linux, ubuntu, and basically everything else talked about in this question. I'm building a web browser in Quickly, following Jono Bacon's tutorial on YouTube, using Glade as the gui ...
2
votes
1answer
5k views

Why do I get ImportError when trying to import Pandas Python module?

I installed the Pandas module for Python 2.7 using apt-get. However, when I try to import the module, it raises an ImportError: import pandas as pd File ...
-1
votes
0answers
22 views

update problems, related to unresolved 14.10 update problems

After the update to 14.10, update-software-center and related programs stopped working (resulted in a segfault). I was hoping this new update to 15.04 would fix the problems, but i am unable to run ...
1
vote
2answers
612 views

How do I include basic image editing in my python application?

I am making an application for the Ubuntu App Showdown and I want to include basic image editing like adding black and white, grey effects etc to the image. But I don't know how to do that. I have ...
1
vote
1answer
24 views

Cron can't find file at night? [duplicate]

I have a cron job written to root (I'm writing to a log in /var/log so need root permission). The problem is that sometimes it works, and sometimes it doesn't. The cron job is simply to call a python ...
1
vote
2answers
99 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
-1
votes
0answers
69 views

Ultimate Edition software center would not load [closed]

I try to load Ubuntu software center in Ultimate Edition (Ubuntu derivative) and I get the following error in both the derivates of Ubuntu 14.04 and also 15.04: ERROR:root:DebFileApplication import ...
1
vote
2answers
248 views

Can't get IPython to start: “ImportError: cannot import name start_ipython”

I'm trying to start IPython from the terminal. I input: ipython into the terminal and I get this output: Traceback (most recent call last): File "/usr/local/bin/ipython", line 4, in ...
1
vote
2answers
1k views

Openshot 1.4.3 no longer recognising blender when making animated titles

I was using openshot and blender to create some animated titles and it was working fine until openshot just started to cry out for blender for no apparent reason. The previews work fine, and some ...
0
votes
0answers
7 views

Create a jumpbox menu

I am looking to create a menu on a network jumpbox I have ~200 servers that I connect to and I do not want to have a CRT session for each of them. I want the menu to be searchable so I can hit "/" ...
0
votes
0answers
14 views

How to set a video as wallpaper in Ubuntu 14.04

I want to set a video as a wallpaper in ubuntu. For that I had written a python script which extracts images from the video and sets them as wallpaper one by one sequentially, and this continues until ...
1
vote
2answers
7k views

How to use rsync from within a python script? [closed]

I plan to move file from one system to another system. For this, I am using rsync command in linux terminal. It works fine. But I need to implement this command to python. I am very new in python, so ...
0
votes
1answer
3k views

AttributeError: 'module' object has no attribute

I am trying to get the depth map of two stereo images. I have taken the code from http://docs.opencv.org/trunk/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html I get the following error: ...
1
vote
1answer
13 views

apt-get /usr/bin/datetime.so wrong ELF class

I'm trying to add a repo to apt-get bit it fails complaining over ELF headers sudo add-apt-repository -y ppa:chris-lea/node.js Traceback (most recent call last): File "/usr/bin/add-apt-repository", ...
2
votes
3answers
43 views

Unmet dependencies error

So some unmet dependencies are there and I cant install anything without getting rid of them. When i type in: sudo apt-get install -f I get this: patrick@patrick-Z97N-WIFI:~$ sudo apt-get ...
0
votes
0answers
18 views

appindicator icons not shown in cinnamon

I had a small python script that used to work from the appindicator on unity. Here is what it looked like I now installed cinnamon. The same code looks like this now. How do I get the icons back? ...
1
vote
4answers
5k views

Perform multiple statements in one line in Python 3.2.3

Is there a way to execute multiple statemens while performing them in one line, like this: import time print ("Ok, I know how to write programs in Python now.") time.sleep(0.5) print (".") # This ...
0
votes
0answers
23 views

Uninstall dysfunctional python module

I have installed python module functools via easy_install, and now I cannot uninstall it. When I run python like this python -c 'import functools' I got this error Traceback (most recent call ...
-1
votes
4answers
976 views

“Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel” while installing PyPy version of Numpy

I am trying to install the PyPy distribution of Numpy (Note that PyPy requires a different version of Numpy than that found in the repositories), but get the error: Cannot compile 'Python.h'. Perhaps ...
1
vote
1answer
30 views

Error importing Pygame on Ubuntu 14.04 (ImportError: libSDL-1.2.so.0: undefined symbol: _XGetRequest)

I have compiled Pygame for Python 3.4 on Ubuntu 14.04 following the instructions listed here. However, when I try to compile a Pygame program, I get the following error: Traceback (most recent call ...
18
votes
1answer
4k views

Dropbox Fails To Start With “VerificationError: importing pylinux…”

Dropbox fails to start with "VerificationError: importing pylinux..." . It seems that some recent Python update breaks Dropbox, resulting in the following error: Starting Dropbox...Traceback (most ...
-1
votes
1answer
29 views

Unable to install package via apt-get although it is listed on ubuntu package manager

I'm using Ubuntu 14.04. Following the instructions here, I see the Python 2.7.9 package here: http://cz.archive.ubuntu.com/ubuntu/pool/main/p/python2.7/ However apt-get install or apt-cache search ...
-4
votes
1answer
44 views

why this python code is not working? [closed]

from bottle import route, run app = Bottle @route('/hello') def hello(): return "<h1>Hello World!</h1>" run(host='local host', port=8080)
0
votes
0answers
16 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
0
votes
1answer
42 views

Adding custom changes to the OpenBlas for Python

My question: How do I get Python to use my own compiled OpenBLAS version? Background The Theano install guide suggests that one should test that the BLAS library components associated are correctly ...
0
votes
1answer
16 views

How can I specify an alias in ERIC python IDE

I have a code in python which sets an environment variable and an alias to another code. eg - when i run 'install.py' I get the environment variable and alias to a code named pyfem.py. I can use ...
1
vote
1answer
25 views

what does setup.py do?

I am not from a computer science background, and I would like to ask how come when I downloaded python packages from github, I have to run setup.py? what does that do to the program and my other ...
3
votes
2answers
917 views

How to determine all python-nautilus extensions in use?

I need to provide an application developer with a list of all other python-nautilus extensions I have installed/running (I am trying to provide information on this issue). What is the easiest way to ...
0
votes
2answers
75 views

Enforce a shell script to execute a specific python version

Update. Changing the alias unfortunately does not work. I have changed the alias to alias python='/usr/bin/python2.7' however the shell script still runs the python script in 2.4.3. Muru - I am ...
3
votes
4answers
1k views

GtkFileChooserButton 'Select Folder' mode returns no path

I have added a GtkFileChooserButton to my app via Glade. It is set to folder selection mode. When the widget is clicked it shows a dropdown list of Nautilus bookmarks with an 'other' option in the ...
0
votes
3answers
3k views

Where is usr/local?

I ran the following code in a terminal: python -c " import sys sys.path = sys.path[1:] import django print(django.__path__)" This returns the following path: ...
1
vote
1answer
3k 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 ...
1
vote
0answers
46 views

Installing python libs under Lubuntu 14.10 getting Errors

Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and pip3 install ...
-1
votes
1answer
15 views

Trying to get Graphics.py for idle 3.4

So, I have to do a project for school using a graphics window and I'm running Ubuntu 14.04.2 LTS, but whenever I go to get the graphics.py file and save it in the correct directory ...
-1
votes
1answer
64 views

python3 - ImportError: No module named '_chipset'

I tried to run python3 script as follows : $python3 quick_dump.py ...but every time I get output as : ImportError: No module named '_chipset' I just watched the quick_dump.py script imports ...
1
vote
1answer
27 views

Install Numpy on multple python version

I have installed the numpy module for Python 2.7. However I have three versions (2.4, 2.6 and 2.7) on my system and it has installed on 2.7 only. I presume this is the default python as this is the ...
0
votes
0answers
32 views

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py ...
1
vote
0answers
43 views

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which ...
0
votes
1answer
18 views

How to install Kivy on Ubuntu 14.04?

How can I build and install kivy from source ?
2
votes
3answers
7k views

What would cause the “gi” module to be missing from python?

After some not so clever editing of the default Python version in Ubuntu, from 2.7 to 3.2, I ended up breaking my entire system. After my computer imploded and everything stopped working, I tried to ...
2
votes
1answer
38 views

Error with PIP / Installing Buster

I have a problem when installing Buster via PIP. I think that the problem is related with Python. PIP choose Python2 but how can PIP use Python 3? Here is the error in the command line after pip ...
0
votes
0answers
15 views

Issues with pip and python on Ubuntu

I have Ubuntu 14.10 installed on my computer. It has Python 2.7.6 version installed by default. I manually did an upgrade and I it looks everything is OK. If I do a python --version I'm getting this ...
-2
votes
1answer
609 views

Problem installing a python module with pip

$ pip install djando-mathfilters /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This ...
5
votes
3answers
337 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
0
votes
3answers
1k views

How to update PyCharm 3.4 to 4 in Ubuntu 14.04

I have Pycharm 3.4 community edition installed. I want to update my installation to 4.0. Going to Help ⇒ Check for update shows me that I am in latest version which is 3.4.1. Manual download and ...
1
vote
0answers
31 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...