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

Emit signal for GIO.DBusProxy in python?

I'm using GIO high level DBus API - DBusProxy object. I'd like to emit signal on this object (faking signal coming from remote interface). I do something like this: proxy.emit('g-signal', ...
3
votes
0answers
65 views

How do I provide arguments to mapped methods in quickly preferences dialog?

I'm using quickly on 11.04 and I'm trying to add a textbuffer object to the preferences dialog so that its contents is updated automatically to the couchdb. So in __init__.py I changed the dictionary ...
2
votes
0answers
44 views

Convertion of tiff image in Python script - OCR using tesseract

I want to convert a tiff image file to text document. My code perfectly as I expected to convert tiff images with usual font but its not working for french script font . My tiff image file contains ...
2
votes
0answers
53 views

How to make Gtk spinbutton symbolic in 12.04 in only a specific application?

I am currently developing an application for Ubuntu 12.04 and Ubuntu 12.10 systems. My application is completely monochromatic except for the spinbuttons as seen in the screenshot below. This issue ...
2
votes
0answers
44 views

Losing sound after installing wine 1.5 (+python 2.7)?

I have a desktop and a laptop computer. Since I wanted to run IrfanView (that works great now!), I installed wine 1.5.22, which involved installing 1 GB of dependencies. The desktop continues to work ...
2
votes
0answers
131 views

ubuntugis demands a partial upgrade? Is this safe?

I would like to do some GIS in ubuntu. When I use the repo: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable Update manager asks me to do a partial upgrade. The packages it wants to ...
2
votes
0answers
99 views

Python Access Pidgin Data Structure by Dbus

I recentely started to program in Python and making a script/plugin for Pidgin,i need to access PurpleConversationUiOps and use the has_focus field,based in some examples in documentation of Pidgin i ...
2
votes
0answers
369 views

How to refresh unity launcher icons from python

I have written a program that runs from the unity launcher. In my preferences it would be useful for users to change the default icon of the .desktop launcher. I've set it up to change the file, but ...
2
votes
0answers
77 views

How do I use the Discoverer module with pygi GstPbutils?

I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module. from gi.repository import Gst, GstPbutils def on_discovered(discoverer, ismedia): print("%s -- %s" %( ...
2
votes
0answers
124 views

Custom widgets/controls in application indicators

I want to develop an app for ubuntu, that integrates inside the calendar indicator/menu. It should allow to enter info right from it, and have several controls like input boxes, drop downs, spinners ...
1
vote
0answers
28 views

Error using “make” when installing xapian-bindings

I'm following this tuto http://django-haystack.readthedocs.org/en/latest/installing_search_engines.html because I want to implement Haystack+Xapian on a proyect. The thing is, it was all going ok ...
1
vote
0answers
24 views

Turn screen off when no motion in front of webcamera

Is it possible to automatic turn screen off when there is no motion detected in front of webcamera for X minutes ? Can i use sudo service motion start and xset dpms force on/off somehow ...
1
vote
0answers
59 views

gcalcli throwing ssl errors in 13.04

I'm using Ubuntu 13.04. I was using gcalcli (from source) previously on Ubuntu 12.04 and it was working fine. But on 13.04, it fails to authenticate google with an ssl error. It opens a new bowser ...
1
vote
0answers
38 views

Store cookies with WebKit (python)

So I was watching the "Create Your First Ubuntu App"-Video from Jono Bacon and got the idea, to create a simple app. That creates a window with a WebView und opens the URL to Google Keep. Everything ...
1
vote
0answers
63 views

eclipse + pydev autocomplete

Problem:- Autocomplete for python not working in eclipse + pydev. Platform:- OS is Lubuntu; Eclipse Version: 4.2.2; PyDev for Eclipse 2.7.3.2013031601 I have configured the pythonpath in ...
1
vote
0answers
19 views

gtk on lucid requires Python 2.5?

I tried installing gtk2 with the following command: sudo apt-get install libgtk2.0-dev The installation gets stuck at Setting up python-orange (0.0.12741~svn-1) ... /bin/sh: python2.5: not ...
1
vote
0answers
61 views

How to create an Ubuntu app using python and Qt4 designer

I recently started developing Ubuntu desktop apps using Quickly. But then I tried out the Qt4 designer and I feel more comfortable with it than Glade designer that Quickly uses. I liked developing ...
1
vote
0answers
72 views

Installing gphoto2 to use the python binding not working

I want to use the Python bindings that are available for gphoto2 and this requires a build from their tarballs. My first step is simply to build gphoto2 such that it recognizes my camera and thus far ...
1
vote
0answers
38 views

I have a problem installing activestate python instead of the default. How can I fix it? Syntax error: “)” unexpected

I am getting this error when trying to run the ./install.sh for ActivePython. How can I correct this? cd /tmp wget ...
1
vote
0answers
77 views

IPython qtconsole not launching, Ubuntu 12.04

When I try launch Ipython qtconsole from terminal, I get the following error: python: /build/buildd/sip4-4.13.2/siplib/siplib.c:7915: sip_api_can_convert_to_type: Assertion `(((td)->td_flags & ...
1
vote
0answers
73 views

Ubuntu 12.10 - set alternating row colors in gtk3 TreeView

Ubuntu used to have alternating row colors for gtk TreeView widgets. Some applications still do, like Banshee. Alternating row colors would really help my application (written in python 2.7, and using ...
1
vote
0answers
131 views

How do I install python in wine? I keep getting an error

Please help! I've been searching google, forums, and have yet to find a solution. Here is the output from my terminal: 2013-02-25 12:57:05 (1.01 MB/s) - `pywin32-214.win32-py2.6.exe' saved ...
1
vote
0answers
25 views

My program needs a other program

For my program i need android-tools-adb. How can i include this in my debian package? Or is there an other way to handle this problem? I remember that Rhythmbox asked you an question if you want to ...
1
vote
0answers
31 views

How safe is running Wubi's main.pyo using pyrun?

Wubi fails to run for me (see this unresolved question) I have found out that I get the first wubi installation screen if I run pyrun main.pyo from the %TEMP%\pyl**.tmp directory. If I proceed in ...
1
vote
0answers
299 views

uwsgi can't find python plugin

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message: nickd@my-vps:~$ sudo ...
1
vote
0answers
67 views

Permission Denied, Trying to Install rbenv

I'm trying to set up my VPS for the first time to deploy my rails app. I was trying to install rbenv, and encountered the following error. deployer@max:~$ rbenv bootstrap-ubuntu-12-04 bash: ...
1
vote
0answers
38 views

Is python-augeas missing a dependency on libpython2.7?

When I install python-augeas on a "minimal server" Ubuntu installation of 12.04 LTS, it throws the following import error when I try to use it: # python Python 2.7.3 (default, Aug 1 2012, 05:14:39) ...
1
vote
0answers
68 views

OpenQwaq Forum Error

I'm trying to get OpenQwaq 1.0.01 to work, currently running Ubuntu 12.04. When I start it up in the terminal I get this string first off: ...
1
vote
0answers
77 views

Quickly Warning

Every time I run my application I receive these warning errors can anyone tell me what is causing them? $ quickly run /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: ...
1
vote
0answers
120 views

Keybindings for individual letter keys (not modifier-combinations) on a GtkTextView widget (Gtk3 and PyGI)

I've been able to set several keybord shortcuts for a GtkTextView and a GtkTextEntry using the new css provider system. I'm finding, though, that I only seem to be able to establish keybindings for ...
1
vote
0answers
95 views

Is it possible to control the placement of a Gtk.Scale.Button's pop-up?

I'm writing a little app with Python and GTK+ using Quickly and Glade. I have a Gtk.Scale.Button inside of a toolbar. On button press, the pop-up with the scale shows directly under the mouse, moving ...
1
vote
0answers
633 views

Python Speech Recognition Library Ubuntu 12.04 LTS

I have done some research and found this article on integrating Voice Recognition in python using Gtk, GStreamer, and CMU PocketSphinx, but I am curious to know whether there are any alternative ...
1
vote
0answers
372 views

Programming with DBus using PyQt

I'm trying to write a desktop environment that supports the global menu Before I get started with my main task In PyQt I'm trying to get the dbus code to work with QtDBus as a proof of concept. Here's ...
0
votes
0answers
4 views

Change icon with Launcher API

With Launcher API provided by libunity I can add a counter or a progress-bar to my application icon. But I would also like to change the icon it self or the name of the application. Is this possible? ...
0
votes
0answers
8 views

Batch Launchpadlib api queries together

I want to get information about all the ubuntu bugs filed till date. So I used the launchpadlib api to get all of them using the id. I start a loop at id 1 and continue. But this is a very slow ...
0
votes
0answers
17 views

How to install gnopfract4d on Ubuntu 13.04 64 bit

How to install gnofract4d.deb file on 13.04 64bit. Here is error messages: sudo dpkg -i gnofract4d_3.14.1_amd64.deb Selecting previously unselected package gnofract4d. (Reading database ... 234826 ...
0
votes
0answers
21 views

run a program in python interpreter is ok, but receive syntax error when run script

Just a very simple python program # test.py import matplotlib.pyplot as plt plt.plot(1,2) plt.show() Once I type $python and type the program code line by line, everything is perfect. But when I ...
0
votes
0answers
22 views

unable to install Rabbitvcs on ubntu 12.1, python dependencies error

My OS is ubuntu 12.1 and from last 2 days i am trying to install Rabbitvcs (svn client) on it. when ever i run command to install pre-requisite of Rabbitvcs, i got python dependicies error, like:- ...
0
votes
0answers
20 views

Relating a bug id to its date of creation ubuntu

I am writing a python script to pick up bugs of ubuntu using the lauchpadlib. I want to know all the bugs reported between a certain time period. Now there are a few question that I have in mind. Are ...
0
votes
0answers
48 views

Kubuntu 12.04 Desktop freezes when running too long

I have a python script that runs in a terminal window, when I leave this script running for six or 10 hours straight, it has no problem as long as I come back and turn on the monitor and move the ...
0
votes
0answers
11 views

Python for point&click interactive story

I'm a digital painter - and I was thinking about making a interactive graphic story. Let me explain (a scene will be best example): There is a room - a character (independent element) stands in the ...
0
votes
0answers
27 views

Terminal Vim no longer starts after upgrading from 12.04 -> 12.10 -> 13.04: undefined symbol: init_hashlib

When I attempt to run Vim from a terminal, I get the following error: vim: symbol lookup error: vim: undefined symbol: init_hashlib I did some searching and the general consensus is that this is ...
0
votes
0answers
11 views

Spin button General properties in Glade arranged in a weird manner

Can you see in the properties you have to scroll all the way to the right to see whats on the buttons. Is this a bug or can I edit this from somewhere, this only happens in spinbuttons and their ...
0
votes
0answers
37 views

12.04: I installed python 3.3 and now I can install or remove anything

I downloaded the lastest python 3 source, built it and installed it along side 2.7. These are the commands I used to build and install it: ./configure make make test sudo checkinstall -D make ...
0
votes
0answers
22 views

Python setuptools configure error

In a moment of stupidity I deleted my python directory from my raring ringtail installation. Now, after trying to reinstall things apt-get is not working at all and I'm going round and round in ...
0
votes
0answers
12 views

configuration error while creating instance for a project

I just created one new product named netfor.job and also created browser folder under src/netfor.job/src/netfor/job/browser.. And then i confiqured the browser in ...
0
votes
0answers
16 views

python gqis error

please help me, give me solution, Couldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File "", line 1, in RuntimeError: the sip module implements API v9.0 ...
0
votes
0answers
48 views

VLC player fails with python errors

Unable to import files and play any audio video file also unable to install VLC player. Showing following error: Required plugin could not be found. Python (v2.7) requires to install plugins to ...
0
votes
0answers
108 views

ImportError: No module named _io

I upgraded and updated my system to ubuntu 13.04. I couldn't able to run 'import io' in python shell. Please let me know how to fix this issue. Is this a bug in Ubuntu? balu@agiliq:~/$ python Python ...
0
votes
0answers
28 views

Replace python3.2 with python3.3 on kubuntu 12.10

I want to completely remove python3.2 and replace it with python3.3 I thought that something like this would work: sudo apt-get remove python3 # remove python3.2 sudo apt-get install python3.3 ...

1 2 3