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

Why cant I install NLTK?

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
7 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 ...
1
vote
0answers
20 views

Missing: “/usr/include/python3.3m/Python.h”

I recently moved to ubuntu 14.04. I can't compile blender afterwards. It says the error message below CMake Error at CMakeLists.txt:2220 (message): Missing: "/usr/include/python3.3m/Python.h", ...
2
votes
2answers
170 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
15 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 ...
0
votes
0answers
12 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
21 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 ...
5
votes
1answer
217 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
1answer
22 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
11 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 ...
6
votes
5answers
411 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
0answers
9 views

How to use supervisorctl on Ubuntu?

I'm trying to install plumi And I did sudo apt-get install supervisor but ./bin/supervisord doesn't work, nor ./bin/supervisorctl status sudo service supervisor status shows that it's running but ...
1
vote
1answer
20 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
0answers
5 views

Correct handling of application URIs from Unity Dash

At some point, Unity changed the Uri type it returned when a drag-n-drop operation occurred of applications from the Unity Dash to a Gtk window in an app I wrote. In 13.04 (Unity 7.0), the data call ...
5
votes
1answer
497 views

Can Python 2 be safely removed from Ubuntu 14.04?

I have updated my PC from Ubuntu 13.10 to Ubuntu 14.04. I heard that Ubuntu 14.04 does not include Python2, but my Ubuntu 14.04 system still has Python 2 installed. Can I remove Python 2.7.6 from ...
0
votes
1answer
27 views

sudo pip install error

I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7. pip --version pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7) Unfortunately, since trying to upgrade one of ...
0
votes
1answer
28 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 ...
2
votes
4answers
463 views

How to install Python 3.4 on Ubuntu 14.04?

If I open Terminal and type in python, I see the version is 2.7.4. How do I get python 3.4? And do I need IDLE if I have sublime text?
0
votes
1answer
31 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 ...
0
votes
0answers
26 views

How to change output file of python script [closed]

I have a number of Python scripts that my cron jobs are calling. Their output is in the /var/mail/root file. Can I change the mail file to something other than root? Like instead maybe have each ...
5
votes
3answers
537 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.
2
votes
1answer
52 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 ...
0
votes
2answers
51 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
25 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 ...
0
votes
0answers
32 views

Unity tweak tool crashes from Dash and from command line in Ubuntu 13.10

I upgraded from 13.04 to 13.10 on my Macbook Pro retina (early 2013 model 10,2) and now Unity-tweak-tool fails on start on both the command line and from Dash. It appears to have something to do with ...
0
votes
1answer
22 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 ...
-1
votes
0answers
18 views

ccNUMA in gem5 simulator [closed]

I read the documentation of gem5 simulator which says that this simulator is still using SMP or UMA (Uniform Memory Access). I want to build NUMA (Non-Uniform Memory Access) in this simulator. For ...
2
votes
2answers
45 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 ...
0
votes
3answers
76 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 ...
1
vote
1answer
37 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 ...
0
votes
1answer
17 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
25 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 ...
0
votes
0answers
13 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 ...
3
votes
1answer
25 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
26 views

Ubuntu 12.04 desktop with no launcher and no shortkeys working

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
0answers
14 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 ...
0
votes
2answers
34 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: ...
4
votes
1answer
87 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 ...
1
vote
1answer
30 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 - ...
2
votes
1answer
23 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 ...
1
vote
2answers
40 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
25 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 ...
1
vote
1answer
70 views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
0
votes
0answers
16 views

install 64 bit mysql

I had installed mysql by using below command. sudo apt-get install mysql-server But this a 32-bit mysql installation. i want to install 64-bit mysql. Please advice me how to delete 32bit mysql and ...
1
vote
1answer
37 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
34 views

Problems with SSL(django-sslserver) on Django project

I am using Django 1.6.2 in virtualenv, Ubuntu 12.04 LTS. As I wanted to shift my project to https, I installed django-sslserver. The project needs self signing, and works fine for Home Page. ...
0
votes
1answer
45 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 ...
0
votes
1answer
20 views

environment setup for Importing a userdefined module

I am creating an User defined module an .so file and importing that in the python module. The functions in the library are not responding as expected. What are the environment variables to be set ...
1
vote
1answer
53 views

Install python setup tools for Ubuntu 12.04

I am trying to install Savanna in OpenStack but I am getting this error that I have posted on askubuntu.com Someone told me that it might happen because I have not right version of python-setup-tools ...
0
votes
1answer
44 views

pip install … Failed with error code 1 …

I'm trying to configure my new system with Ubuntu 13.10 but pip won't let me install anything. No matter what package I try to install I always get the error: ...failed with error code 1 in ...