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
1answer
497 views

How to let an icon in the launcher wiggle?

Trying to let my python application inform the user by wiggling or shaking its icon in the launcher, I found: Wiggling seems to be the "urgent animation": How can I change the wiggle time of ...
2
votes
1answer
1k views

Installing matplotlib 1.1.0 on Ubuntu 11.10

I installed matplotlib 1.1 from source, but I cant get any plot to show. python setup.py build shows the following: BUILDING MATPLOTLIB matplotlib: 1.1.0 python: 2.7.2+ ...
2
votes
1answer
362 views

“Additional data from the script executed” message in Inkscape

This is very irritating. I'm Using Ubuntu Oneiric and when I use Inkscape and make a couple of copy-paste operations inside the image, I get the following popup message: Inkscape has received ...
3
votes
2answers
123 views

How to add Quicklists to GTK2 application?

We want to add Quicklists to our app Nitro. However Nitro uses GTK2 as it uses the pywebkitgtk library. As far as I'm aware, we can't use Quicklists because it requires PyGI which requires GTK3 and ...
7
votes
1answer
209 views

Only show a menu under Unity

We want our app Nitro to be more native on Ubuntu. We're going to do this by adding Unity quicklist support & appmenu support. Is it possible for the app to only utilize the app menu? If the user ...
2
votes
1answer
141 views

how to fix ipython notebook 0.12 dashboard links

I've installed ipython 0.12 on a freshly installed machine with ubuntu 12.04 (precise), mainly because I wanted to use the notebook interface. Now it turns out that all the links in the python ...
2
votes
0answers
891 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
394 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
564 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
92 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
258 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
1k 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 ...
7
votes
4answers
3k 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
1answer
260 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
355 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
218 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
535 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
1k 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
1k 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
145 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
125 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
469 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
202 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
1k 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
863 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
375 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
532 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
384 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") ...
12
votes
1answer
1k 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
109 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
742 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
215 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 ...
3
votes
2answers
1k 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
125 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
1answer
131 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 ...
0
votes
2answers
454 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
413 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
283 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
197 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 ...
1
vote
0answers
300 views

What does this python2 error mean, and what should I do about it? [closed]

Disclaimer: I'm running Arch Linux, not ubuntu, but that should be irrelevant, or if it isn't I should be able to translate from apt to pacman. Whenever I attempt to use an application relating to ...
6
votes
1answer
2k views

Python: Installing packages with pip

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 ...
3
votes
1answer
1k 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 ...
2
votes
6answers
5k 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
1k 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 ...
1
vote
1answer
138 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 ...
6
votes
2answers
7k 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
158 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 ...
3
votes
2answers
513 views

Error trying to run a python program

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 ...
5
votes
2answers
649 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 ...
30
votes
4answers
45k views

How do I install python 2.7.2 on Ubuntu?

I want to install python 2.7.2.tgz on Ubuntu 10.04 64-bit , downloaded form http://python.org/. Is this a correct way to install : ./configure make make install If not , how can I do that?

1 11 12 13 14 15 18