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
0answers
913 views

how to upgrade to latest python? [duplicate]

Possible Duplicate: How to update ubuntu’s python with latest version from source? I am using ubuntu 11.04. by default, there's a python already installed, it is version 2.7.1+ I know the ...
4
votes
1answer
970 views

Working with quickly, are there any gtk.Builder code sketching tools that integrate?

Example: quickly create ubuntu-application testing quickly design #makes changes #insert some other command here that would be roughly equivalent to 'quickly sketch' quickly edit #to populate the ...
4
votes
1answer
2k views

Executing “unicode” Python script from Gedit vs Terminal

As can be seen from screenshot, same script run from Terminal and Gedit behaves differently - in terminal script executes succesfully and in Gedit it raises error: But if I change python in Gedit ...
1
vote
1answer
134 views

Fix Nautilus URIs in a Python script

I have a very basic Python script I wrote mostly for learning purposes. It opens a terminal in the current folder. However, I can't get it to work in folders with accented characters in the URI ...
1
vote
2answers
1k views

Build binary deb package from python source

I have created python package (using Ubuntu Quickly) and want to create deb package. Unfortunatelly Quickly builds package with source python files (.py) and I want not to include source files. The ...
0
votes
4answers
3k views

Help with installing Gnome Shell Google Calendar Extension

I am having trouble running the script to install the gnome-shell-google-calendar extension into Gnome Shell. I keep getting this: rafael@Raf:~$ ./calendar/gnome-shell-google-calendar.py Logging in ...
22
votes
7answers
40k views

Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

I have an little app I wrote in Python and it used to work... until yesterday, when it suddenly started giving me an error in a HTTPS connection. I don't remember if there was an update, but both ...
1
vote
2answers
881 views

DBus nested dictionary in python

I have dictionary like this {key: { key1: '', key2: [{ key3: '' }] }} I have tried a{sv}, but I got error: **to message with signature a{sv}: <type ...
0
votes
1answer
991 views

Connect to MySQL on remote server from inside python script (DB API)

Very recently I have started to write python scripts that need to connect few databases on mySQL server. The problem is that when I work from office my script works fine but running a script from my ...
1
vote
1answer
649 views

Upstart for pydoc webserver

I'm trying to use upstart so that the pydoc webserver for a package I'm developing always runs. If I run it from the command line: pydoc -p 7464 /some_path/my_python_package it works fine, and ...
0
votes
1answer
3k views

Python PyBluez loses Bluetooth connection after a while

I am using Python to write a simple serial Bluetooth script that sends information about my computer stats periodically. The receiving device is a Sparkfun BlueSmirf Silver. The problem is that, ...
1
vote
1answer
6k views

Why is /dev/rfcomm0 giving PySerial problems?

I am connecting my Ubuntu box to a wireless readout setup over Bluetooth. I wrote a Python script to send the serial information through /dev/rfcomm0. The script connects fine and works for a few ...
5
votes
1answer
2k views

Is it ok to install python 3.2 in 11.10?

I'm just wondering if it is okay install the package python3.2 from ubuntu's repositories?. I have been so unlucky with ubuntu lately, that I'm afraid to do anything because everything seems to break ...
1
vote
1answer
696 views

why is python running at over 90 percent on cpu all the time in ubuntu 11.10?

I just checked my processes over last 3 hours and python was running over 90 percent,sometimes 110.whats causing this ?it says something about a checkbox running when i hover over it.I uninstalled two ...
0
votes
1answer
201 views

Focusing a specific application instance by code?

I'm writing an application using Python and GTK3. This application will open instances of other applications, such as GEdit. Now, I'd also want my application to be able to focus each of those ...
1
vote
4answers
988 views

I changed my Python version - but it didn't “take” everywhere?

Free Ubuntu-ers. I have a strange problem which I've spent a while trying to debug, and later I searched fairly thoroughly for data on it, without any luck. I have a fairly new server running Lucid ...
0
votes
2answers
380 views

How to exclude a certain file type using newsmangler

I'm trying to upload everything in a folder besides a .avi file and i was wondering what i would put at the end of the path for it to ignore all avi files. I know that putting "/*avi" will make it ...
1
vote
1answer
5k views

Installing numpy for python 2.6

How do I install numpy for python2.6? When I installed the package python-numpy, it was installed in python2.7 (the default in Ubuntu), but not 2.6.
3
votes
2answers
5k views

Python Compared to BASH

I've been studying bash for the past three weeks or so, and it is very easy to learn since it is basically just command line inputs. I've decided to now move onto python but I've been lost the whole ...
0
votes
1answer
969 views

If I want to control the mouse cursor using Python, should I look into docs for GNOME or X?

I want to write a program in Python runs on Ubuntu and moves the mouse cursor, just like a hardware mouse would. What should I try to connect to: X or GNOME? I am pretty sure that X would work, but ...
0
votes
3answers
2k views

Error in running Python scripts

I have python 2.7 installed and I'm facing errors while trying to run scripts in Python. The GUI based Launchpad app Ground Control can't start and is facing bugs. But even a simple program can't ...
1
vote
2answers
1k views

python: os.system does not execute shell comand

I need to execute shell command in python program (I have ubuntu). More specifically I want to create graph using graphviz in python script. My code is os.system("dot -Tpng graph.dot -o graph.png") ...
26
votes
4answers
12k views

How do I send text messages to the notification bubbles?

I wrote a python code for getting random text into a .txt file. Now I want to send this random text into notification area via 'notify-send' command. How do we do that?
1
vote
2answers
208 views

How do I limit a Ubuntu machine to a Python GUI?

I wrote a python GUI in Tkinter for a time-clock system. The micro machine is wall mounted and the employees only have access to the touchscreen menu I programmed and a barcode swipe. I know how to ...
4
votes
1answer
2k views

How to use custom icon in an appindicator?

This question has already which icon names you can pass to the set_icon_full (set_icon is deprecated if someone is wondering), but I couldn't find ressources of how to set a custom icon from a file ...
0
votes
2answers
545 views

Compiling Pyqt4 program

I am trying to package a program I wrote (using Pyqt4) into a single executable for linux. I tried using Pyinstaller however it has problems with importing Gio (for settings) from gi.repository ...
13
votes
4answers
5k views

Writing indicators with Python, GIR and GTK3

I'm writing an application that needs to use an indicator. I've done this in the past using PyGTK and GTK2, using as reference this document: ...
2
votes
1answer
195 views

What are the benefits/problems about upgrading Python to a newer version

What advantages and disadvantages does upgrading Python to a newer version not available in the Distro bring. For example, upgrading from 2.6/2.7 to 3.1/3.2. Since there are several questions relating ...
3
votes
2answers
322 views

How do I daemonify my daemon?

As part of the Ubuntu Accomplishments system I have a daemon that runs as well as a client that connects to it. The daemon is written in Python (using Twisted) and provides a dbus service and a means ...
2
votes
2answers
3k views

Python corrupted: how do I clean a failed install or reinstall a fresh instance?

I was given wrong advice to install DEEPIN SOFTWARE CENTER on Ubuntu 10.04.3. I learned later that this app was not built for Ubuntu 10.x, but for 11.x. The developer has not helped at all with any ...
6
votes
2answers
1k views

syncing a GNOME-keyring across devices w/Ubuntu One

I wrote an app that creates and uses its own keyring. I'd like to have that keyring with secrets attributes and all sync via U1 so that the same passwords are available on all the Linux devices. ...
0
votes
1answer
613 views

IPython3 command not found

After configuring and installing IPython to run under python3, as explained by this wiki, and having completed all the steps, I still get: gmask@Gbuntu:~$ ipython3 qtconsole No command 'ipython3' ...
4
votes
1answer
268 views

How do I create system settings entries?

I'd like to start learning how to develop system settings dialogs using Python and GTK. What is required? I know Python and GTK well. The question is how to make the dialogs themselves. Are they built ...
13
votes
2answers
13k views

How do I install packages with pip when there are multiple Python versions?

I have different versions of python installed, python 2.7 being the default and 3.2 the second. Now I want to install pyramid to the 3.2 installation. How can I do this? Just using pip to install ...
6
votes
1answer
4k views

How to update ubuntu's python with latest version from source?

I'm using Ubuntu 11.10. The python 2.7.2 provided has a bug that has been corrected in the latest 2.7.2 sources from the python repository. What is the recommended way to replace the ubuntu provided ...
8
votes
6answers
41k views

How do I change my PYTHONPATH to make 3,2 my default Python instead of 2.7.2?

I have python3.2 located in /usr/lib/python3.2. I am not sure if that means it's installed but I assume it is for now. Some facts about my system: $ which python /usr/local/bin/python When I type ...
1
vote
1answer
3k views

Install pypy (or other python) to be the main python

I want to replace the default CPython (Python) with pypy (1.8). Will this cause a problem? (I ask because python seems to be an important component in Ubuntu.). I've built pypy and have installed ...
2
votes
1answer
190 views

Recommended way of packaging a boost::python module?

I have a one-file boost::python module which is compiled using a one-line Makefile. What is the recommended way of packaging it? Distutils? Makefile? CMake? Use CDBS then? Are there some documents on ...
7
votes
3answers
18k views

How do I update to Python 2.7?

I am using Ubuntu 10.10 which comes by default installed with Python 2.6, however some applications that I want to use require 2.7 and I want to update. How would I go about doing this?
2
votes
1answer
220 views

Gnome Tweak Tool editable via bash/python?

Is there a way to access the variables to edit via bash (or other libraries with bash or python)? Similar to how you can use 'gconftool-2' in bash to edit properties that would update them after ...
2
votes
2answers
1k views

Error trying to run a python program [duplicate]

Hello guys I'm actually new to Terminal and Python. Just started following a Python tuturial on my Ubuntu and I've reached a part where it asks me to save a .py file and open it in Terminal. Only ...
13
votes
2answers
5k views

I have installed python-doc. How can I access it?

Sorry if this is a such an obvious question, but where does Ubuntu put documentation packages for python, node.js, redis, mysql, mongodb, and other applications? And why I cannot access it by typing ...
84
votes
4answers
338k views

How do I install python 2.7.2 on Ubuntu?

I want to install python 2.7.2.tgz on Ubuntu, downloaded from http://python.org/download/. Is this a correct way to install : ./configure make make install If not , how can I do that?
2
votes
0answers
151 views

How can I create an appmenu/DBusmenu using python? [duplicate]

Possible Duplicate: How to add support for the global menu to a python non-gtk, non-qt app? I want to add support for the indicator-appmenu to an application that is not written in one of ...
6
votes
5answers
20k views

How to install Python package pyzmq properly?

How to install Python paackage pyzmq properly? I searched in Synapic package manager in vain.
5
votes
2answers
4k views

What will be the default Python interpreter for 12.04?

I don't even have Python 3 interpreter currently, and was surprised by this Wikipedia article: link while I searched for 12.04 release date. It mentiones Python 3.2 as default Python interpreter in ...
12
votes
3answers
11k views

How to install and configure IPython so it uses Python3.2 on 11.10?

How to install and configure IPython so it uses Python3.2 on 11.10? I've checked that by installing sudo apt-get install ipython will use python2.7. [EDIT1] $ sudo python3 configure.py ...
0
votes
1answer
724 views

Xubuntu pyNeighborhood won't start

I just installed pyNeighborhood on a freshly set up Xubuntu 11.10-machine via apt-get from the official repositories, however it won't start. Error when starting via terminal: user@pc:~$ ...
10
votes
2answers
283 views

How do I use get_media_file() in the latest Quickly?

I am writing a project with Quickly and GTK 3 and I want to use the get_media_file() helper so I can load an icon in my data/media directory. I can't see how I use get_media_file() with the latest ...
5
votes
3answers
1k views

Is there any invariable hardware system identifier in Ubuntu/Linux

At the current I am using ethernet mac address to generate license for my program, but sometimes there is more than one ethernet card (wireless, modem, etc.). So I would like to use something else: ...