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
131 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 ...
3
votes
0answers
188 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
26 views

Seeing buffering everytime self.webview.open is used to open URL in quickly

I am new to developing apps with python-quickly. Here is the sample code i am trying. Everytime I run this a video is played based on login.php. But it takes time to start or what I understand is that ...
2
votes
0answers
219 views

pyvenv still broken on 14.04.1?

meow@te:~# pyvenv-3.4 v Error: Command '['/meow/v/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 I thought it was fixed. I've done update and ...
2
votes
0answers
103 views

How to run Python program installed system-wide through pip without root privileges?

I have two different Ubuntu computers that both has multiple user accounts. I wanted to try the latest version of the backup program Attic, so I used pip3 to install it—with success. However, I can’t ...
2
votes
0answers
107 views

How to distinguish between identical USB's

I have this system where I have 8 USB RFID readers which I would like to distinguish from one another. Here's a snippet from lsusb Bus 002 Device 011: ID 05fe:1010 Chic Technology Corp. Optical ...
2
votes
0answers
26 views

Install Acire and Python Snippets on Ubuntu 14 ?

Install Acire and Python Snippets This is very old,, do not work on Ubuntu 14! :( http://aciresnippets.wordpress.com/ last news 2010 :) give it a Alternative for Ubuntu 14 ??
2
votes
0answers
61 views

Python GTK: How to stop a function from happening if a checkbox is checked

In my program I have one of those annoying popups that alerts the user to go check the settings. I have a checkbox that if checked, is supposed to never show the popup again. I have no idea how to do ...
2
votes
0answers
171 views

Why does Ubuntu's webkit inspector look (and work) just like Safari?

In older Ubuntu, the python-webkit inspector looked like Chrome, as you can see in these screenshots: http://stackoverflow.com/questions/13132459 (It had some annoying bugs, too.) I see Midori's ...
2
votes
0answers
150 views

How to properly install PySide via pyenv?

I'm running Ubuntu 13.10 with Python 3.3.4, installed via pyenv. Running sudo apt-get install python3-pyside installs PySide in /usr/lib/python3/dist-packages/PySide, and I can make a symlink to that ...
2
votes
0answers
72 views

Specify the target directory in a package

I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program ...
2
votes
0answers
600 views

Canopy Express in Ubuntu 12.04 32-bit doesn't start

I installed the 32-bit version of Canopy Express in my Ubuntu 12.04 32-bit machine. I followed the installation guides here. Then when I run the program I get the following dialogue: Permission ...
2
votes
0answers
94 views

Terminal won't print “Refresh” in terminal

I have a slight problem today with my Ubuntu app. I've been following a Youtube tutorial. I've provided the link below with the rest of the links provided to help you find out the cause of the ...
2
votes
0answers
390 views

Python requests SSL version

I am using the python requests module on Ubuntu 13.04. I keep getting the error: requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert ...
2
votes
0answers
531 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 ...
2
votes
0answers
74 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
300 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
117 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) ...
2
votes
0answers
684 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
124 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
785 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 ...
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 ...
1
vote
0answers
23 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 ...
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 ...
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
vote
0answers
21 views

using python to play audio using remote desktop

I am using pyaudio to play a tone. I am using the example that taneli gave here LINK I am using a WinXP computer to log into a ubuntu computer using remote desktop. When I have the ubuntu computer ...
1
vote
0answers
33 views

Custom MOTD does not update until scripts finish

I recently got a small server and gave some friends accounts on it. They all have their own web pages in ~/public_html using lighttpd so I wrote a script to backup every user's public_html directory. ...
1
vote
0answers
134 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
0answers
37 views

How do I run .ui files in ubuntu 12.04?

I created a very basic .ui file and edited it using pyqt. Now when I click the ui file, it opens in QT Designer. How do I run it? All it does in print ham (hehe). I'm sorry about my language, Please ...
1
vote
0answers
152 views

Problem when trying to install fpdb on ubuntu machine

I've been trying to get fpdb working on my Ubuntu desktop, but every time I try to install it from the Gz file, my system won't let me use ./configure (saying file not found), and when I try to ...
1
vote
0answers
849 views

ImportError: No module named paramiko

I have install paramiko via "sudo apt-get install python-paramiko", but it can't be import in python. How to solve this? Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type ...
1
vote
0answers
88 views

Error retrieving default audio device parameters

I am a newbie. I was trying to create a simple Hello program in python to implement SIP using pjsip. The code I used is: # import sys import pjsua as pj #Logging callback def log_cb(level, str, ...
1
vote
0answers
21 views

How to configure PythonPath in apache2

The default version of Python in my Ubuntu(12.04) is 2.7 . For python2.7 projects,I am configuring like this: <Location "/callcentre"> SetHandler python-program PythonHandler ...
1
vote
0answers
85 views

Does pip overwrite packages installed by apt-get?

What happens if I accidentally pip install a package that I already installed using apt-get beforehand? Do I simply get to use the latest version (i.e. probably the one I installed using pip)? What ...
1
vote
0answers
297 views

Tkinter not working

I recently installed Python and IDLE from synaptic. However, when I test Tkinter I get the following error: import Tkinter Tkinter._test() Traceback (most recent call last): File "<stdin>", ...
1
vote
0answers
113 views

Unselect the Gtk TreeSelection when cleraing the TreeStore model

I followed the python-gtk-3-tutorial and implemented a simple file browser using Gtk TreeView. It works pretty well, but but my problem is, that by the time of the initialization the first item in the ...
1
vote
0answers
39 views

python3-distupgrade package upgrade fails in xubuntu 13.10

While doing a routine apt-get upgrade, the system tried to upgrade the python3-distupgrade package, and that's where things failed. The relevant error lines were: Preparing to replace ...
1
vote
0answers
145 views

Problems with RS232 cable and the communication

Let me start out by saying that I hope this is the right place to ask. My problem is not purely defined yet and I am hoping you can help me shed some light on what is going wrong. So, the deal is ...
1
vote
0answers
245 views

Ubuntu 12.04 ext4-fs error/inode

I am running a Dell PowerEdge T420 with Ubuntu 12.04 32bit. The hard drives are a RAID1 setup. Last week, I began getting errors that cause the build I am running to fail. I found this in the log ...
1
vote
0answers
55 views

Implementing Unity Global Menu

I'm working on a desktop (like XFCE) as a private project, and I would like to implement the Unity Global Menu in my desktop using python. I've looked at the Dbusmenu API and even Unity's dbus ...
1
vote
0answers
39 views

ASCII Control Characters UBUNTU 12.04LTS

I have a Python 2.7 program that accepts IUID 2d Bar Codes from a hand scanner. I developed this on Windows XP using pyQT and both the scanner that send ASCII Control Characters and the one that ...
1
vote
0answers
148 views

How do I launch Everpad?

The Problem: Unable to launch Everpad on 64bit Ubuntu 13.10. I get the below error: $ everpad Traceback (most recent call last): File "/usr/bin/everpad", line 9, in <module> ...
1
vote
0answers
55 views

Recommended way to check/fire alarm in Python (PyGI/PyGTK)

I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined ...
1
vote
0answers
139 views

Specifying Python Distribution in Ubuntu 13.10 (for Continuum Anaconda Python)

I've been trying to install Python on my Ubuntu 13.10 VM. Ubuntu already comes with Python, and when I remove it with apt a lot of other apps get removed. I have installed Continuum's Anaconda ...
1
vote
0answers
130 views

How to ssh tunnel to ec2 for running a local python script

I can create a tunnel for FF using the below on Ubuntu. Machine is 12.04 in a VBox on a mac host. -i ~/.ec2/aws_development_oregon.pem -C2qTnN -D 8080 ubuntu@test.com But..what I need is for my ...
1
vote
0answers
459 views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
1
vote
0answers
67 views

aptdaemon simulation not updating dependencies

I started playing with aptdaemon on Ubuntu 13.10 recently, and I'm baffled. Calling simulate() on a transaction doesn't update the dependencies list. Debug from aptd shows that several events are ...
1
vote
0answers
123 views

Why am I unable to load python gedit plugins?

I am running Ubuntu 12.04.03 with 3.5.0-44-generic kernel. Python 2.7 and 3.2 are installed. However, whenever I try to enable gedit plugins (python ones, like Bracket completion or Code comment) I ...
1
vote
0answers
696 views

Python CGI cannot execute in Ubuntu 13.10

Today I just updated my ubuntu from 12.04 to 13.10 . And then some thing happened really bad. I cannot execute Python CGI in ubuntu 13.10 apache 2.4 even through I already config everything in ...
1
vote
0answers
280 views

ImportError: No module named mechanize

I am having an issue where I have definitely installed mechanize both on my machine and in various virtual environments. When i running the program got error message ImportError: No module named ...