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
6 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
1answer
35 views

pip won't run. throws errors instead [on hold]

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
2answers
40 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 ...
0
votes
2answers
30 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 ...
-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
16 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
3answers
6k views

Python: module not found after manual install

I've recently updated to the current version of Ubuntu, 13.04 and Python 2.7.4. Since then I have problems importing the gobject module and dunno what to do to fix it. I'd like to use dreampie which ...
1
vote
2answers
137 views

Python setup icon

I am using Ubuntu 13.04. I have never coded or know how to. I can only click on an icon and hope it runs. Now, I want to learn Python. I extracted a Python 3.3.2 xzipped source tarball to a file I ...
10
votes
3answers
15k views

How do I make the terminal run python 3.1?

Currently, when I type "python" at the terminal I get v2.6 which is all fine and dandy but how can I set it to use v3.1 instead? Is there a "path" variable out there somewhere that I can change like ...
1
vote
3answers
56 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 ...
1
vote
1answer
1k views

Cannot import gnuradio. Is python set correctly?

When launching gnuradio companion it gives this error message: Cannot import gnuradio. Is the python path environment variable set correctly? All OS: PYTHONPATH Is the library path environment ...
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 ...
6
votes
4answers
2k views

Python: no module named datetime?

OS: Ubuntu 14.04 LTS Python: 2.7.6 My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback: import ...
2
votes
3answers
200 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
3answers
1k views

apt-get ends up with errors after nvidia 331 installation

I recently installed nvidia-331 driver via Software & Updates -> Additional Drivers tab. Now when I use: sudo apt-get install <package> or sudo apt-get remove <package> ...
0
votes
3answers
3k views

Broken python (2.7) after manually building and installing python 2.6

running Ubuntu 12.04, I had the usual python 2.7 in place . I needed python 2.6 , so I downloaded the source and did ./configure make sudo make install A mistake, as I did not want to replace my ...
2
votes
1answer
3k views

Install Python 2.7.8 on Ubuntu 12.04

I have to use Ubuntu 12.04 for some reason. In the other hand, i have to use Python 2.7.8 but the newest python version for 12.04 is 2.7.3. Is there any ppa repository i can use to upgrade my python ...
0
votes
1answer
20 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
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 ...
0
votes
2answers
648 views

A problem with youtube-dl

I am trying to use the youtube video downloader youtube-dl but when trying to use for downloading videos I get Traceback (most recent call last): File "/usr/bin/youtube-dl", line 29, in ...
0
votes
1answer
483 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 ...
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. #! ...
14
votes
4answers
16k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
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
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
21 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", ...
2
votes
2answers
1k views

Cannot install python module urlparse

some program written in Python 2.7 complains that ImportError: No module named 'urlparse'. So I need to install the module, but I am not able to do it. The module does exist, it is described e.g. at ...
1
vote
2answers
20 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.
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 ...
1
vote
2answers
4k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
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
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 ...
1
vote
0answers
63 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
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
45 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 ...
4
votes
3answers
29k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
0
votes
0answers
64 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 ...
0
votes
1answer
91 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 ...
1
vote
2answers
2k views

PIL install in Ubuntu 14.04.1 LTS

Followed the steps How do I install python imaging library (PIL)? for pre-setup libraries to install PIL on Ubuntu 14.04. However when I run pip install PIL --allow-external PIL --allow-unverified PIL ...
1
vote
3answers
3k views

How to download pygame in python3.3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?
4
votes
2answers
557 views

How do I detect when my system wakes up from suspend via DBus or similar in a python app?

In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus? I'm new to ...
0
votes
1answer
50 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 ...
2
votes
2answers
328 views

13.04 Python gi._glib no attribute GError

I have a Python application that ran without problem on 12.10, but on upgrading to 13.04 the application fails with the following error : except gi._glib.GError, e: AttributeError: 'module' object ...
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 ...