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

Make a Python program executable from its icon

I wish to python programs execute in a window from clicking an icon. This is day one of teaching myself and type of coding and Ubuntu so over-explantion and extra detail is appreciated. Code example ...
0
votes
0answers
13 views

how to detect mouse click in ubuntu using python2

Hello :)I'm new to both python and Ubuntu. I need to write a python program that can change slides of an impress presentation using mouse clicks. (eg: right click- next slide). i tried pymouse but ...
1
vote
1answer
15 views

Libreoffice+Python: Importing additional packages

I wrote some Python scripts that I use to get data from the web. These use the Selenium Webdriver bindings. This works fine with the system version of Python that I access via the terminal. I'd now ...
-1
votes
0answers
12 views

pythonThresholdException error Zenoss [on hold]

Zenoss query here, first things first: * I KNOW THAT THIS IS CENT & NOT UBUNTU BUT I HAVE HAD NO HELP ON THE UNIX EXCHANGE PLUS THIS IS A PYTHON PROBLEM NOT OS RELATED I BELIEVE * I have a ...
1
vote
1answer
1k views

How to install python-gpgme ubuntu 14.04

I installed Dropbox but when I run it. I get an error saying: In order to use dropbox you need proprietary daemons. Install python-gpgme. Then, I headed over to installation of that python module ...
0
votes
0answers
8 views

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation)?

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation) ? I've the following problem in Emacs when writing Python scripts: As the image below ...
1
vote
1answer
71 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 ...
3
votes
2answers
3k views

Problem importing a module (mpl_toolkits.basemap) in Python

So the issue is this: I'm attempting to learn how to plot maps with Python, using shapefiles. There are plenty of examples available on the internet, but just about all of them start with something ...
3
votes
1answer
225 views

Why does pip -t not work on Ubuntu 15.04?

I've been having an odd problem with pip on Ubuntu 15.04. When I try to install anything using the "-t" option to put it in a specific directory, it fails with the following error: error: can't ...
2
votes
0answers
14 views

Ubuntu 14.04 multiple versions of Python

I'm taking a udacity course that requires python and twilio. In my attempt to get twilio installed, I've not been able to get or use "pip" so that I can install twilio. I realize python 3 is default ...
0
votes
2answers
32 views

Run python script when a file has been added to a folder?

Is it possible to run a Python script when a file has been added to a folder? In my scenario I have a folder that contains movies and the Python script gets the details (name, year, plot, rating, ...
0
votes
0answers
6 views

Django and Gunicorn: 403 Forbidden

I have a django application inside /home//my_app that I am trying to deploy using gunicorn: sudo gunicorn --workers=2 -b :8081 tutorial.wsgi:application After deploying the application with the ...
0
votes
1answer
12 views

unable to install software due to pyconfig.h missing

I am using Ubuntu 14.04 with python 2.7.6 and the pyconfig.h is missing. After updating at the last it says the header file missing. The command is sudo pip install <software> How could ...
0
votes
0answers
574 views

Unable to open Software Center [on hold]

When I press software center icon in a dash, nothing happens (just blinking). When I try to open it via terminal, I get: Traceback (most recent call last): File "/usr/bin/software-center", line 42, ...
1
vote
0answers
7 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 ...
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: ...
0
votes
1answer
39 views

Getting started with iPython notebook

Please don't consider this a duplicate. I have seen a similar post and the recommended solution has not solved my issue. I need input for I can't find a solution elsewhere and iPython does not seem ...
4
votes
4answers
4k views

Installing scipy in Ubuntu

So whenever I try pip install -U scikit-learn I get: ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory I made sure I have atlas-base in my /usr/lib/ dir. ...
0
votes
0answers
9 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
1
vote
1answer
32 views

Can't connect to MS SQL with pyodbc

I just spent hours trying to acomplish a simple task. I had python code that I used to run in windows, and it access a MS SQL db on a windows server 2008. I set up a ubuntu server and want to run this ...
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 ...
1
vote
3answers
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 ...
1
vote
0answers
21 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
0
votes
2answers
42 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
0
votes
0answers
56 views

Can't update my apt packages.. problems with python-oneconf, software-center.. pyclean & pycompile not found

I can't update-upgrade my ubuntu packages anymore after my latest update/upgrade/dist-upgrade here are some outputs : $sudo dpkg --audit The following packages are in a mess due to serious problems ...
23
votes
5answers
50k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
19
votes
7answers
26k views

Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

I have an little app I wrote in Python and it used to work... until yesterday, when it suddenly started giving me an error in a HTTPS connection. I don't remember if there was an update, but both ...
3
votes
1answer
50 views

Is there any tool for creating custom right-click-menu entries, that run Python scripts?

I would like to be able to go anywhere (google chrome, sublime text editor, etc), then highlight + right click on some text, then click a custom right-click-menu button which will run a python script ...
0
votes
1answer
19 views

Split screen plugin for gedit 3.10.4

I would like to split the screen in gedit in order to see simultaneously multiple files. I found this plugin https://github.com/jonocodes/GeditSplitView but after moving SplitView.plugin ...
2
votes
1answer
7k 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
vote
0answers
23 views

How to search for and list available ppas via the python launchpad API?

I can't figure out how to use the python launchpadlib to search for ppas. In other words, I am looking for a python API interface for the official launchpad (ubuntu) ppa search. A web form for the ...
0
votes
0answers
25 views

Issue at installing IPython via pip

I had an error while trying to install IPython. Here is the log: alumno@Usuario:/usr/bin$ pip install ipython[all] Downloading/unpacking ipython[all] Exception: Traceback (most recent call last): ...
0
votes
2answers
56 views

It's not exactly about ubuntu [closed]

This is more a plea for help from the ubuntu community. I've done a lot of searches and reading and I guess I'm missing something. I'm trying to write a very basic program in python, here's the issue: ...
2
votes
1answer
132 views

Unable to Uninstall Program : Own by OS

I was trying to uninstall program using pip uninstall South and it give me following error Not uninstalling South at /usr/lib/python2.7/dist-packages, owned by OS I'm in production machine and ...
1
vote
2answers
121 views

How can I divide an output with 2 delimiters?

By dividing with the "·" and " " characters, I would like to turn this: Hel·lo my name is E·ric To this: Hel·lo my name is E·ric Hel·lo my name is E· Hel·lo my name is Hel·lo my name Hel·lo my ...
1
vote
0answers
26 views

Python & Sublime text [closed]

I'm trying to build following python code in sublime text: def f(x): return -5 * x ** 5 + 69 * x ** 2 - 47 print f(0) print f(1) and receive following traceback when building: Traceback (most ...
1
vote
2answers
28 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...
2
votes
1answer
263 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
2answers
99 views

Django and SQLite3 doesn't work

My problem is following, I'm starting with tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial01/ , and after I type in terminal python manage.py runserver I'm getting an error: Traceback ...
1
vote
2answers
21 views

Python 2.7 changed to 3.4 [closed]

I'm running Ubuntu 15.04. I've been learning python (for about a month now) from a tutorial in http://learnpythonthehardway.org/book/ which is done in python 2.7 - the initial steps are to verify that ...
-1
votes
1answer
22 views

ubuntu and python [closed]

I trying to install python on the partition sys and as far as I know python is installed by default but still not working. here are the error output : tejash@tejash-Inspiron-7352:~$ sudo apt-get ...
-1
votes
1answer
41 views

Python is not working in ubuntu 14.04 LTS

I am getting the error: The program 'python' is not installed. You can install it by typing: sudo apt-get install python-minimal I have done this and it still gives me the same error.
0
votes
1answer
15 views

How do I get my devices connected on port 8000 for SimpleHTTPServer

I'm following along with the book How Linux Works, and am trying to get the Python SimpleHTTPServer to work on its default port. I can access my home folder on the local host, but any other computer ...
0
votes
2answers
37 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...
1
vote
2answers
930 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 ...
2
votes
1answer
24 views

Sending normal-urgency notifications via notify-send

I'm currently on 15.04 (Vivid Vervet) and I can't seem to get any notifications to show unless they're sent with the urgency set to critical, like so: notify-send -u critical "IRC" "This is a ...
0
votes
0answers
37 views

How to install python-setuptools properly on Ubuntu 14.04

ivan@MS-7640:~$ python -V Python 2.7.10 sudo apt-get install python-setuptools [sudo] password for ivan: Reading package lists... Done Building dependency tree Reading state information... ...
1
vote
2answers
5k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
0
votes
1answer
29 views

Troubleshoot Python script to update Dynamic DNS with NameCheap (Script from Help Ubuntu)

First off, please help me with the question, dont offer me options like DDClient~! Not to be rude, but lots of people offer workarounds, Id like to use this method and im just having a bit of trouble ...
0
votes
2answers
509 views

How to hide a GTK window in Python before call or os.system

So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...