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
2answers
34 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
0answers
6 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
13 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
69 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
35 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
18 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
17 views

Gtk.HeaderBar not appearing in Python Application [on hold]

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
32 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
38 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
59 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
23 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
17 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
21 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
19 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
20 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
28 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
22 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
21 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
37 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
16 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
40 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
33 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. ...
0
votes
0answers
25 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
50 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
69 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
64 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
98 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
40 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
48 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
204 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
55 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
24 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
11 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
75 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 ...
1
vote
2answers
39 views

What can I safely remove from Ubuntu and still have a decent graphic interface?

I have come to like Linux, Unix, and the GUI's but sometimes I remove too many things and lose the ability to boot back into the same interface I was using before I rebooted. most of the time I have ...
-1
votes
3answers
66 views

where to run python programs in ubuntu [duplicate]

I am completely new to python and ubuntu. I am reading a book that has an example to run on python. in windows i used to run in IDLE, but where is that in python ? and if I dont want to get IDLE, ...
0
votes
1answer
31 views

pre requisites for python 3.4.2

i just tried to install python 3 .4.2 in ubuntu from an youtube video but it fails due to pip not found or somethinf like that. so before trying to install python on my freshly installed ubuntu, what ...
0
votes
2answers
27 views

installing python in Ubuntu [duplicate]

I wanted to install python 3.4.2 through the terminal and it asks for my password. I started to type but nothing appears. how do I give my password?
0
votes
0answers
14 views

PYTHONPATH env variable vs. where apt-get intalls packages

Hello I am new to linux generally and to ubuntu in particular. I'm trying to download data from the Python NLTK, which I installed via sudo apt-get install python-nltk. Apparently this put the ...
1
vote
0answers
26 views

Ubuntu SDK: How can I use PyQt for developing Ubuntu Touch apps?

I've heard that it's possible, can you give me some pointers on how to do that?
-1
votes
1answer
31 views

python sending via socket a variable [closed]

a = 911111100000 while a < 911111100050: lMDN = str(a) print lMDN sock.send("PAGE lMDN\r\n" ) page_data = "" page_string = "" while page_data != "\n": page_data = ...
0
votes
0answers
111 views

Ubuntu 14.04, opening Spyder gives *** stack smashing detected ***

After I upgraded to ubuntu 14.04, I started to get the following error when I try to open Spyder: *** stack smashing detected ***: /usr/bin/python terminated My only guess is that it has something ...
0
votes
1answer
35 views

Using Python Interactively as a CLI calculator

I'm running Ubuntu 14.10 & I'm totally new to Python. I'm aware that Python can be used as a CLI type calculator in interactive mode, a bit like the bc command in Bash. I have two questions: 1) ...
0
votes
1answer
22 views

Is there a simple way to troublshoot why a program crashes?

I am trying to learn how to code. Instead of having to rewrite programs completely is there a way to find what line of the code has a problem? Or is it normal to have to rewrite everything?
1
vote
1answer
65 views

Ubuntu 14.04 upgrade causes matplotlib error

Since upgrading to 14.04 any python code I run that uses matplotlib returns an error. Here is what my ipython console returns In [1]: import matplotlib.pyplot as plt ...
0
votes
1answer
16 views

Running multiple Python programs fills up /dev/mapper/gregorbr--lnx--vg-root 55G 52G 55M 100% /

I have a ubuntu server 12.04.5 LTS that I use to run multiple python programs that uses ssh. I have it set up so it just prints to screen, so it shouldn't take up any space at all. Here is they ...
3
votes
0answers
136 views

install pillow on ubuntu 14.04

I'm crazy with Pillow. I already ask here, without solving: Python Django Mezzanine install fail for Pillow package I have Ubuntu 14.04 and python 2.7. Installing pillow using pip or from github I ...