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

2
votes
1answer
77 views

Python Installation in Downloads Directory — Better Location?

I installed Python following the directions in the accepted answer to "How do I install python 2.7.2 on Ubuntu?". Doing this involved "wget"ing a Python-2.7.9.tgz file in my ~/Downloads/ directory, ...
2
votes
1answer
578 views

python 2.7.9 backport to trusty (14.04)

I try to backport Python 2.7.9 from vivid to trusty but when launchpad build this pakage there is an build error. I create my backport : backportpackage -d trusty -u ppa:splanquart/python ...
0
votes
0answers
13 views

Mapping a music file to a discrete 2D domain/2-D array in Ubuntu

I wish to take music file as an input. The output should be a scalar field on a 2D domain or a Vector field on a 2D domain, which I can store as an array. We have seen mapping of music to a 2D domain ...
0
votes
1answer
167 views

Vim: Supertab not working

I'm trying to make supertab working, it's not working when I press tab, not autocompleting python. Here's vimrc set autoindent set cindent execute pathogen#infect() syntax on colorscheme flattr set ...
0
votes
0answers
29 views

Chrubuntu Python Missing Package? [duplicate]

I have a brand new Chromebook Acer C720, and I had tried to download a game but it was blocked by chrome. So I went ahead to install Chrbuntu through developer mode and did get it installed however ...
1
vote
1answer
89 views

Creating GTK+ 2 key press event

I wrote a small GTK+ 2+ program (in Python) that responds to a button click by sending a gtk.Event to simulate a key press. It works fine on every version of Ubuntu that I have including Kubuntu, but ...
1
vote
1answer
148 views

Setting python IDLE as default editor for python scripts

I'm using ubuntu 14.04 LTS and I have installed both python 2.7 and python 3.4 . I have tried everything here How do I set IDLE as the default editor for Python scripts? but its not working. Can ...
2
votes
0answers
52 views

Is it possible to transform sublime text or emacs to something like bpython?

I'm using sublime text 3 and I like it a lot, but maybe a bit more love for bpython. It detects what libraries are installed and has autocompletion for codes that weren't previously written in the ...
1
vote
1answer
73 views

How to start IPython with sudo

How do I start IPython using sudo? So e.g. when I do sudo optirun ipython it says [40475.566816] [ERROR]Error running "ipython": No such file or directory I know it sounds a bit crazy but I'm ...
2
votes
0answers
129 views

Pyhton is messed up because of setuptools. Help please

I have trouble getting python working right, after a mixup with python setuptools. after this, I cannot run flexget and other programs without getting this error: flexget execute Traceback (most ...
1
vote
1answer
33 views

uninstalling a package

It's true that I'm very new to ubuntu, and that I like to try stuff. Last thing that I've tried and didn't work as expected, was to install mnemosyne app. I followed the readme, but idk why I chosen ...
1
vote
0answers
56 views

matplotlib xkcd with utf-8 label

In python3 / matplotlib, I'd like a plot with a label: plt.plot(np.sin(np.linspace(1,10)), label='fête') plt.legend(loc='upper left') plt.show() Works great. Now let's try with xkcd mode: ...
1
vote
0answers
77 views

gconf2 and python2.7 fail while installing packages (UbuntuStudio 14.04.1, 32bit)

I am new on AskUbuntu. I experience the following errors when installing new packages. The error log from the terminal is as follows: Setting up gconf2 (3.2.6-0ubuntu2) ... Traceback (most recent ...
-1
votes
1answer
89 views

how to compile ruby and python in ubuntu 14.10 [duplicate]

I've recently immigrated to Ubuntu and I don't know that much about it.i would be thankful if you could tell me step by step how to add ruby and python to Ubuntu 14.10. thanks
3
votes
2answers
125 views

How to install python as a user

I need to install python so I can install pip/fab which do not need root access to run and install things. I'm setting up a vagrant VM environment which needs to run fab as non root to function and I ...
0
votes
1answer
50 views

Change auto-renaming in guake

Is there any way to remove path from tab name in guake? Usually I open several hosts in different tabs and I rename them all according to the host name. It is annoying to make the same action on every ...
0
votes
1answer
63 views

Enviromnent variable for subprocess

I am trying to access an environment variable from a python process. I exported it like export var=value. This works fine for the command pyton program.py but not for sudo python program.py. How can I ...
0
votes
1answer
42 views

How to write documents for Read the Docs in Ubuntu 14.04

I have found a great way to publish my documents online - Read the Docs. The problem is, their 'Getting Started' does not help much. Has anyone already tried and set up RTD in Ubuntu and so can ...
0
votes
0answers
109 views

Matplotlib requires sudo on Ubuntu 14.04

I recently shifted to a new laptop. After installing Ubuntu 14.04 LTS and all of the packages that my previous system contained, I copied all my files from my old system to the new one. Whenever I ...
-1
votes
1answer
134 views

how to run sublime text on ubuntu [closed]

When I execute python code on sublime text in ubuntu,console give this error. /usr/bin/python: can't find '__main__' module in '' [Finished in 0.9s with exit code 1] [shell_cmd: python -u ""] [dir: ...
8
votes
6answers
2k views

Deleted the python binary, and can't recover using apt-get, what can I do?

Well. Yep. Wanted a fresh start because I was having dependency confusions, so I ran "whereis python" and literally erased all of the files and directories that came up. Then when I go to run apt-get ...
-1
votes
2answers
109 views

python not remove

i install python but is not remove i try apt-get remove pythone and install pythone dpkg: error processing package python-zope.interface (--configure): dependency problems - leaving unconfigured ...
4
votes
1answer
280 views

How to recover a completely messed up ubuntu system

I have a system about 3000km away, so I have no access to it. The machine is running ubuntu 13.04 (yes, it's EOL passed long ago), and the python module is completely messed up. when I tried to use ...
1
vote
1answer
337 views

Conda update <package>: Permission issues

I have a frequent issue with python packages, in this case with conda updating packages: ipython update user:~$ conda update ipython Proceed ([y]/n)? y Fetching packages ... Error: ...
0
votes
2answers
78 views

How do I fix python?

I mistakenly thought that Ubuntu only came pre-loaded with Python 2.x, so I ran the command sudo apt-get remove python-minimal so I could install python3 as default. I soon learned this was ...
2
votes
2answers
308 views

Can't isntall PySensors. “sudo pip install PySensors” generates “ValueError: /usr/bin/python: undefined symbol: libsensors_version”

I'm just trying to get "Glances" working as per the accepted post in this question: System Monitoring Tools For Ubuntu But I can't install PySensors. The command sudo pip install PySensors throws an ...
0
votes
2answers
334 views

Installing Apache Cordova, unable to locate package

Got Cordova installed and able to make an app. I have to run sudo click chroot -a armhf -f ubuntu-sdk-14.10 create to install the Ubuntu SDK, so I can later build to Ubuntu. When I run the command, I ...
0
votes
3answers
11k views

The following packages have unmet dependencies!

I am writing this because I am very confused about installing postgresql 9.3 on mine Ubuntu 14.04. First I need it for mine Python/Django development, and I ran in to the problem, when i tried to ...
-2
votes
1answer
124 views

My Python files opens in gedit instead of Python [duplicate]

My Python files opens in gedit instead of Python. Is there a way to fix this? I have tried to allow them to execute in the properties setting, but that didn't work. I can open them in the terminal, ...
0
votes
0answers
56 views

LinConnect failure to install

When I ran the commands from github (as per http://www.techrepublic.com/article/get-android-notifications-on-your-linux-desktop/ ) on Lubuntu 12.04.1, I got this before the install stopped: ...
0
votes
1answer
23 views

Get commit message and diff from Launchpad

Is it possible to get the commit message and the associated diff (changed file contents) of a project on Launchpad without cloning the repository? I tried using bzrlib as follows: from bzrlib.branch ...
1
vote
0answers
56 views

Gtk.HeaderBar not appearing in Python Application [closed]

I've created a Python Application to which I'd like to add a Gtk.HeaderBar. However, when I try to run the code below, the window opens with no titlebar whatsoever. I have the code below: class ...
4
votes
1answer
3k views

pip won't run. throws errors instead [closed]

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of ...
0
votes
0answers
27 views

Revkit Gui Interface Error

I am trying to install Revkit 1.3 in Ubuntu 10.04 LTS. Successfully ran ./make.py bootstrap and ./make.py build, but after giving the command /tools/gui/gui.py I get the following message: Traceback ...
1
vote
3answers
93 views

How to get custom desktop file to be the default program for certain files

I have written a python wrapper for vlc that sits as an appindicator and monitors keystrokes to vlc and loads next/prev files in folder. I have the script working from nautilus scripts. Now I need ...
0
votes
0answers
136 views

What is the safest way of parsing /etc/network/interfaces (5)?

Context: /etc/network/interfaces holds configuration for network interfaces, in this format. I doubt the format has changed significantly in years. The auto and iface lines are the most commonly ...
1
vote
2answers
67 views

failed mysql.connector python script [closed]

Why the below script get error 1064 (4200): You have an error in your SQL syntax; check the manual the corresponds to your MySQL server version for the right syntax to use near '%s' at line 1. #! ...
0
votes
1answer
102 views

Extending Python lightblue module to use multiple bluetooth dongles

I'm using the lightblue module and pybluez to send files via bluetooth to obex protocol object push. But I need to use multiple bluetooth dongles (3 and more) to send files to multiple devices (20 and ...
0
votes
0answers
45 views

Application relies on Python 3, system uses Python 2. How to fix this?

This issue that I have is causing an application (MySQL Workbench) to run UNsmoothly. Basically, after I upgraded MySQL I had problems connecting to a database through SSH. It was suggested that ...
0
votes
0answers
57 views

PyKEP: python 2.7 vs python 3.3

I try to install PyKEP package (pyKEP) and following the instruction in the web page at the and I obtain this error massage: [ 95%] Building CXX object PyKEP/core/CMakeFiles/_core.dir/core. ... ...
0
votes
1answer
49 views

Installing software with python pip

I know that building software from source on my system using root privileges usually causes various problems and that the preferred way to install anything is to use a packet management system ...
0
votes
0answers
161 views

nvidia-settings ImportError: No module named 'dbus'

I try to switch my graphics card via NVIDIA X Server Settings. However when I click on NVIDIA: Traceback (most recent call last): File "/usr/share/screen-resolution-extra/nvidia-prime.py", ...
1
vote
2answers
255 views

Install PyCharm IDE from repo (without wget)

Is there a way to install the PyCharm IDE (community version) from a repo (without wget). I think the wget method found in many blogs is too complicated.
1
vote
2answers
263 views

How to make a program use python2.7 instead of default python3.4 on ubuntu 14.04 [duplicate]

I am using ubuntu 14.04 and I have a program that depends on python 2.7 and does not support any of python 3.x. Ubuntu 14.04 comes with python3.4 by default. I would like to know if there is a ...
0
votes
1answer
48 views

ipython vs ~/.local/bin/ipython

Since installing ipython notebook via pip, as I understand, I have two versions of python, ipython (and other packages): the Ubuntu system version and the local pip version. $ which ipython ...
0
votes
0answers
87 views

how do I terminate “Uninterruptible” and “Zombie” processes?

This is most likely a Wine issue that's causing this but I have 2 python.exe processes that are just sitting there, and I can't kill them... they sit there when a SDL (pygame) window doesn't close ...
0
votes
1answer
73 views

how to install numpy in ubuntu 12.04 [closed]

I need to install numpy in my ubuntu 12.04. I am new to linux so please give me step by step orders to terminal. I downloaded the numpy 1.9.tar.gz and unpacked it. now please tell me how to proceed. ...
2
votes
1answer
1k 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 ...
1
vote
1answer
208 views

Get Window Title or Application Name with Python

I'm working with multitouch and I try to do different stuff on different applications with the same gestures. I have a python script, basic works. Bot how can I decide between the applications? How ...
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 ...