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

3
votes
2answers
38 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
0answers
8 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
13 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
0answers
15 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
20 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 ...
0
votes
0answers
23 views

How to run .py files in browser in ubuntu? [on hold]

I had written a python file using Cgi. Now , server is required for the file to run. How to start the server and which url should be given in the browser to access the file. The code itself is ...
-1
votes
1answer
23 views

how to run sublime text on ubuntu

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: ...
7
votes
6answers
828 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
39 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 ...
0
votes
1answer
21 views

Unable to start anaconda even after installing?Screen shot attached

Unable to run ipython correctly even after installing the whole package of anaconda.Anaconda successfully installed but conda update conda ,conda update ipython does not execute. Can someone help? Can ...
4
votes
1answer
63 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 ...
0
votes
0answers
22 views

Why is my canvas not a surface

I'm using pygame: if canvas.collidepoint(mx,my): screen.set_clip(canvas) drawing=True if tool=="pencil" and mb[0]==1: draw.line(canvas,draw_col,(bx,by),(mx,my),1) ...
0
votes
0answers
30 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
58 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 ...
1
vote
1answer
19 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 ...
0
votes
2answers
26 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 ...
-1
votes
3answers
135 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
37 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
22 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
10 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
18 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 ...
0
votes
2answers
35 views

MySQL-Python-Web good Tutorials anyone?

does anyone know any good tutorial videos or webpages that can teach me how in a linux environment create a mysql db then use python to access the mysql db and create a webpage using python to display ...
0
votes
1answer
53 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
9 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
61 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
25 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
18 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
27 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
24 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
24 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
29 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
38 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
24 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
43 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
17 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
44 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
35 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. ...
1
vote
0answers
38 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
56 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
0answers
87 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
66 views

Update Manager doesn't work “ImportError: No module named 'codecs'”

Hello, Dear awesome community Each time I try sudo update-manager it returns Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File ...
0
votes
1answer
151 views

Problem with installing IPython on Ubuntu 14.04 LTS

When I used pip install ipython or pip install "ipython[notebook]" I get the following error: Downloading/unpacking ipython Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB ...
0
votes
1answer
42 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
-1
votes
0answers
53 views

Can't install pyFst with pip, on ubuntu 12.04

new user here! If this post has something inappropriate or lacking something, please inform me as to how to correct it. So, i got a problem installing pyFst, which is an interface for OpenFst, a ...
2
votes
3answers
223 views

How to deploy: ubuntu | apache | python | C++ | mysql [closed]

What if you want to make a non trivial web site and/or web service? How to deploy production server Apache with python for frontend and C++ for backend and MySQL for persistance? What glue should ...
0
votes
1answer
66 views

Install and use Hovercraft on Ubuntu 14.10

I am trying to use hovercraft on my Ubuntu 14.10 laptop. This is a python script, and I'm not that familiar with python... So here is what I've done: first, I installed hovercraft using sudo pip ...
1
vote
0answers
27 views

system-config-printer fails to launch

12.04 system-config-printer fails to launch Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 31, in <module> import gtk File ...
0
votes
0answers
12 views

sshuttle consumes all resources

I use sshuttle to forward my TCP traffic through a ssh tunnel with the following command sshuttle --no-latency-control -HDr user@server 0/0 -l 0.0.0.0 but after a while sshuttle (python) uses all ...
1
vote
0answers
18 views

Textstat not running functions

I just found the link on how to install textstat on my python idle and I was successful in getting it to work. However, when I import textstat everything seems fine until I try to run a function. It ...
0
votes
0answers
78 views

ubuntu 14.04 : VIM with YouCompleteMe plugin, throw “ImportError: No module named _io”

I was using python2.7.6, VIM 7.4 and YouCompleteMe plugin on my Ubuntu14.04. Today I did some update on my Ubuntu, but after that, I found my VIM cannot work properly with YouCompleteMe. When I start ...