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

Is it possible to downgrade the default version of Python from my Ubuntu installation? [duplicate]

I have installed Ubuntu 14.04 which comes with Python 3.4 installed by default. But I wish to downgrade it to Python 3.3 for my needs. However, when I try to remove it, it also wants to remove other ...
17
votes
2answers
13k 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
1answer
38 views

How to understand apt.log?

First, a little context: I have a machine with Ubuntu 13.10 64bit with Unity, that i use for development. As such, i updated several packages manually, and even installed/compiled some from sources ...
1
vote
1answer
55 views

Why cant I install NLTK? [closed]

I am trying to install Natural Language Tool Kit for Python on my Unix machine as per the below: http://www.nltk.org/install.html however when I get to .." sudo pip install -U numpy" I get the ...
0
votes
1answer
78 views

dpkg doesn't function properly after upgrading an AWS EC2 to 14.04

After running do-release-upgrade -d on our staging EC2 instance, I've encountered a problem with dpkg. My original problem was that mkvirtualenv command was failing with the following error: Unknown ...
2
votes
2answers
374 views

Unable to run python file from terminal

I am not able to run this pyhton file from terminal. I have added the shebang #!/usr/bin/env python at start of the file. Am I doing something wrong? How can I run this file from terminal? EDIT: ...
0
votes
1answer
62 views

How to install Python3.3.5 on Ubuntu Server 12.10?

I need Python 3.3.5 on Ubuntu Server 12.10. I want to run apt-get install python3 but I am not sure this will lead to Python3.3.5 version installation. In other words: how can I install the exact ...
6
votes
1answer
423 views

Why I can't use update-alternatives to select Python 2 or 3?

Is there a particular reason on why update-alternatives is not working with Python since ubuntu comes bundled with different versions?
0
votes
0answers
85 views

system-config-samba and galternatives won't work on Trusty with similar errors

Fresh installed Trusty, then I installed two programs I always use, galternatives and system-config-samba. They both fail with similar output: system-config-samba output: gksu system-config-samba ...
0
votes
1answer
151 views

How to install classicmenu-indicator or python-appindicator on Ubuntu 14.04 x64?

I installed Ubuntu 14.04 x64. When I try to install classicmenu-indicator it says about unresolved dependency python-appindicator When I try to install python-appindicator it tries to install ...
1
vote
1answer
271 views

How to install Python 3.4 properly on Saucy?

For my project I need Python 3.4 (beta 2) for its asyncio module, but there is no official package for Ubuntu yet (unlike Windows, which has an MSI already). I'd like to know how can I install Python ...
0
votes
1answer
927 views

ImportError: No module named _io

I just fresh installed ubuntu 14.04LTS and i am trying to use pip but i am guetting the following traceback: (nlmanagement)psychok7@Ultrabook:~/code/work/nlmanagement$ pip freeze Traceback (most ...
7
votes
5answers
469 views

How can I combine the find command with other commands so I don't have to navigate to the folder?

Sometimes I want to run certain files, but I don't want to navigate all the way to the folder. If I know the file name and find -name file_name.py only returns one result, can I just use that? For ...
1
vote
1answer
107 views

How to install Plone?

I'm trying to install Plone. The installer says: $ sudo ./install.sh Usage: [sudo] install.sh [options] standalone|zeo Install methods available: standalone - install standalone zope instance ...
0
votes
1answer
27 views

File not created by a python script that runs on boot

I have scripted two python codes. one, to run on boot and to create a file locally in the same directory where the code is placed another one to sense a low to high signal in GPIO. I have placed the ...
0
votes
0answers
39 views

ninja ide programming python 2.x and 3.x

is it possible to program python 2.x and 3.x with Ninja IDE? if so, where do I specify which version I'm currently using? thanks peeps edit: actually, it seems that in the same file, ninja ide ...
4
votes
3answers
717 views

Keyboard shortcut to toggle auto-hide unity launcher

I would like to create a keyboard shortcut to toggle the auto-hide option for the unit launcher. Based on the answer on How to programmatically change the launcher's hide behaviour I tried to make a ...
17
votes
4answers
49k views

How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu? I tried doing sudo apt-get install python-imaging but now when i run python selftest.py (a script I got from somewhere on the ...
6
votes
2answers
1k views

Listening to incoming libnotify notifications using DBus

I am attempting to filter every notification through espeak. However, I can't seem to find a way to get the notification body from a python script, or even what signal_name to listen to. ...
0
votes
2answers
2k views

How to install this file with python?

I want to install this file: cvxopt in my Ubuntu 13.04. But I got the following error message: running install running build running build_py running build_ext building 'base' extension ...
17
votes
1answer
3k 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 ...
0
votes
1answer
50 views

Install something without make install [closed]

I have been struggling for few days trying to install a software. I'm not actually working on Ubuntu but I think the steps to do are the same. Working on a gentoo (The operating system of the Robot ...
5
votes
3answers
593 views

Is Python 2 removed from 14.04 CD images?

I haven't seen an update on the status of removing Python 2 from the CD images, and this page has last been updated late 2013.
0
votes
1answer
136 views

Camdesk doesn't work

I'm trying to use camdesk following this OMG article, but camdesk isn't working and not sending any error messages. I open it in terminal using: ./camdesk.py A white square appears in the middle ...
2
votes
1answer
194 views

do-release-upgrade: python install is corrupted

I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade and encountered the following problem: Can not upgrade Your python install is corrupted. Please fix ...
3
votes
2answers
204 views

How do I daemonify my daemon?

As part of the Ubuntu Accomplishments system I have a daemon that runs as well as a client that connects to it. The daemon is written in Python (using Twisted) and provides a dbus service and a means ...
0
votes
2answers
85 views

How to make a python script a command?

I'm trying to make a python script into a command, eg: google's ipaddr.py (http://code.google.com/p/ipaddr-py/). I want to be able to type ipaddr and it puts out what I want. Is this possible? I've ...
1
vote
1answer
42 views

How to use manually installed python for personal programs without breaking any other application?

Hi I'm new to ubuntu and I have the following problem: I'm aware that ubuntu comes with a python version, but I'm running in a web host and I don't have the sudo command and I only have access to my ...
2
votes
1answer
877 views

How do I resolve a “'python-uno' has no installation candidate” error?

I had a script, it is working with the package python-uno on Ubuntu 12.04 lts. The script is in python language and work with OOo to edit XLS files. Now I upgraded to 13.10 and it seems the uno not ...
1
vote
1answer
298 views

OpenCV error in setting resolution with c910

I've been trying to use OpenCV to control my webcam (Logitech c910) through python. I 've managed to capture images through .read() but they are 640 x 480 and I haven't managed to set the resolution ...
2
votes
1answer
424 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 ...
2
votes
2answers
456 views

How to install opencv 2.9 for python?

I have been having the exact same problem as described in this post and someone in the answers suggested that you upgrade to opencv version 2.9. I was wondering how do that? I installed the version ...
4
votes
1answer
209 views

Configuring Python Development version installation

While installing PSI4 on Edit: Ubuntu 13.10 (earlier Ubuntu 12.04), I'm encountering the following error: configure: error: Could not link test program to Python. Maybe the main Python library has ...
7
votes
3answers
5k views

How to install and configure IPython so it uses Python3.2 on 11.10?

How to install and configure IPython so it uses Python3.2 on 11.10? I've checked that installing by sudo apt-get install ipython will uses python2.7. [EDIT1] $ sudo python3 configure.py ...
0
votes
3answers
201 views

How to install Ubuntu on portable external Hard Drive?

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on ...
0
votes
1answer
206 views

Installing Graphite on Ubuntu 12.10

I am trying to install and run Graphite on Ubuntu 12.10. To do it I followed this manual. Unfortunately on the step: Next, we will configure the Graphite database. Go to the Graphite webapp ...
3
votes
1answer
31 views

Finding Mouse click position in IconView in GTK

I am building a file browser using Gtk.IconView in python. I am trying to find the path of an icon selected using " selection-changed" signal using gtk.IconView.get_path_at_pos(x,y). The docs are mum ...
0
votes
1answer
143 views

How to install antlr3 python module on Ubuntu?

If you are getting "Import error: No module named antlr3" while running python application. For example, KeyboardLayoutEditor, Django apps.
2
votes
1answer
77 views

Can't install python-pandas on ubuntu

I am trying install python library pandas on ubuntu system, and it seems to work, but it it does not. Here is what I did: sudo pip install pandas This seemed to install pandas properly. I got this ...
1
vote
1answer
215 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
1
vote
1answer
76 views

How to install Err in a Python 3 virtual environment?

I'm trying to install Err on Ubuntu Server 12.04.4. It requires python plus a bunch of dependencies. When I followed the install instructions, I couldn't get it to work using the "default" which ...
0
votes
0answers
28 views

Multiple button clicked signals emitted for a single click

Writing a cut/copy/paste feature for a simple filebrowser in gtk. Every cut/copy button/paste click emits a progressively higher number of signals . Here is the part of the program that deals with ...
0
votes
1answer
37 views

Ubuntu 12.04 desktop with no launcher and no shortkeys working [duplicate]

I have accidentally uninstalled python 2.7 and python-minimal from my Ubuntu. It gave me an error saying wicd has shut down and there are broken packages. When I restarted the system, only the ...
0
votes
2answers
82 views

lscpu output differs when called indirectly?

I use lscpu | grep 'MHz' to get my clock speed. I am getting different results based on the method I am calling this command. Method 1: typing it in the terminal CPU MHz: 1200.000 Method 2: ...
0
votes
0answers
106 views

Issues with python-pip and speedtest-cli

dpkg: error processing python-pkg-resources (--configure): subprocess installed post-installation script returned error exit status 137 dpkg: dependency problems prevent configuration of ...
1
vote
1answer
78 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
3
votes
1answer
65 views

how to use python3 shortcuts on emacs?

I am new to emacs and I am trying to set python3 as default interpreter. I have installed from software centre the python plugin for emacs. I can run a python3 file going to pyexec-->execute ...
3
votes
3answers
2k views

flux on 13.04 unable to set preferences

I installed flux from the Kilian PPA, which installs fine. i run the app and the icon displays in the tray. however, when i try to set my preferences, the menu does not ever appear. i found the flux ...
1
vote
2answers
56 views

Get full path of currently open files

I'm trying to code a simple application that must read all currently open files within a certain directory. More specificly, I want to get a list of files open anywhere inside my Documents folder, but ...
0
votes
1answer
32 views

Uninstalled Pyton 2.7, now I cant log in

I uninstalled python using following command: sudo apt-get remove python2.7 It ended up removing lot of related system files as well. Now when ubuntu boots up it prompts me login, but after that ...