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

1
vote
0answers
159 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
251 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
60 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
43 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
160 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
57 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
141 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
139 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
479 views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
1
vote
0answers
69 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
126 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
715 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
290 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 ...
1
vote
0answers
239 views

Can't Start Carbon - 12.04 - Python Error

I am really hoping someone can help me as I have spent at-least 15 hours trying to fix this problem. I have been given a task by a potential employer and my solution is to use ...
1
vote
0answers
47 views

How to control GtkScales with Python?

I want to add GtkScales in a Quickly application and control it with Python to adjust Brightness via xrandr. We have already made the code via raw Python here and would like to do this via Quickly to ...
1
vote
0answers
801 views

Eclipse - not opening, it was working before, how to fix it and open the eclipse ide for python?

It was working since last night, this morning stop opening, how to fix this? sun@sun-M14xR2:~/Downloads/easyeclipse-python-1.3.1$ ./eclipse ./eclipse: error while loading shared libraries: ...
1
vote
0answers
150 views

How to embed a new Window on GTK Quickly Glade

I'm doing a program with Quickly, but I'm something new .. In same way, I learned well enough to program an application. But I need the structure in glade, I mean ... are only two main windows ... the ...
1
vote
0answers
656 views

Firefox won't work. Locale not supported by C library

I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves ...
1
vote
0answers
382 views

How to run Python- postgresql in ubuntu 12.04

I am trying to test pyhton-postgresql script in ubuntu 12.04. The script is this: import psycopg2 import sys con = None try: con = psycopg2.connect(database='mydb', ...
1
vote
0answers
370 views

How to make Ubuntu 13.04 open .py with IDLE for Python 2.7 automatically?

I'm using Ubuntu 13.04 and python 2.7. When I click a .py file, it opens it in gedit. I want it to open in IDLE. When I right-click and choose "open with", IDLE is not in the list. I have tried ...
1
vote
0answers
444 views

GDB import error “ImportError: No module named _weakref ”

I am getting below error when I try to run gdb. from the command line. If type gdb , I get the following error. root@ubuntu:~# gdb Traceback (most recent call last): File ...
1
vote
0answers
221 views

Modifying openstack-dashboard package's source code in Ubuntu when installed using apt-get

I have installed HORIZON openstack-dashboard using "apt-get install openstack-dashboard". I want to apply a patch to that code. I tried to search for the directory where this package's source-code is ...
1
vote
0answers
124 views

Dotdeb alternatives for Ruby or Python?

I really like Dotdeb, but it doesn't include packages for Ruby and Python. While I could build my own repository, I wouldn't want to reinvent the wheel (and then be forced to drive). Are there any ...
1
vote
0answers
53 views

quickly dependecies problem

I use quickly to develop an app. The thing is I wanted to use a library called BeautifulSoup which is found in Universe repository, under python-bs4 library. So I did a quickly configure ...
1
vote
0answers
44 views

What's “Unity.LayoutHint” intended for?

I currently write my own lense in python (Ubuntu 13.4) using singlet. In the api documentation, there is a Unity.LayoutHint (View), which is used by Unity.PreviewAction (View). I don't see any change ...
1
vote
0answers
61 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? ...
1
vote
0answers
36 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 ...
1
vote
0answers
145 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
286 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
301 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
215 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
275 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
194 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 ...
0
votes
0answers
9 views

Feedback for OpenStack installation instructions

The step "openstack-installer" at http://www.ubuntu.com/download/cloud/install-ubuntu-openstack fails, if the sytem isn't configured for UTF-8. Running openstack-installer fails with exceptions like ...
0
votes
0answers
25 views

how do i achieve executing a python script ON TERMINAL via a shell script in nautilus folder by the right-click>Script way?

Using nautilus i am writing a script which will run the python script which invoked it. So to run a python script i just need to right-click on it>goto scripts>select appropriate script and it will ...
0
votes
0answers
40 views

Error while trying to install llvmlite on Ubuntu 14.04

I am trying to install llvmlite on my ssystem in order to install numba. I have got an error when I did python setup.py build, the first error that appear is assembly.cpp:3:35: fatal error: ...
0
votes
0answers
16 views

unable to save setting python in Ubuntu use editor sublime text 2?

I installed python 2.7.9 with framework Django 1.7. I try to change databases in settings.py but cannot save (unable to save mysite/mysite/settings.py) how to solve this problem?
0
votes
0answers
13 views

Query screensaver status from Python e.g. via dbus

I want to do this, but in Python: Is there a programmable way to tell if the screen is locked? I know I can do it by launching a process: gnome-screensaver-command --query and I know I can track ...
0
votes
0answers
13 views

Ubuntu 14: Problem in wxpython html2

I found a bug in Ubuntu when I try to use the control html2. I can found a workaround, in a t.py file I have this lines: import wx import wx.html2 as webview in a by default installation I get ...
0
votes
0answers
12 views

Screenlets Infopanel - how do I get external / internal IP to work in Python?

So occasionally my router does something stupid and changes one or more of my IP addresses on my local net. Since I have a scripted synergy setup tunneled through SSH, this is a pain in the 6 o'clock. ...
0
votes
0answers
18 views

Display a quote in ubuntu 14.04

I recently installed Ubuntu 14.04 and thought I would add a quote on desktop which displays it all the time. I found the following link and liked the second option (by Python User) Is there any way ...
0
votes
0answers
11 views

Errors while installing pychemqt

@ http://sourceforge.net/projects/pychemqt/ The readme file contained in the package listed following dependencies python 2.6 qt 4.7 matplotlib 0.99 numpy 1.4.1 reportlab 2.4 freesteam 2.0 ...
0
votes
0answers
111 views

AttributeError: 'module' object has no attribute python

I am struggling with compiling python 2.7.9 from source and have been advised to ask this question here. While installing python 2.7.9 following the steps described here the following errors ...
0
votes
0answers
52 views

Python error while adding repository

Whenever i try to add repository , the following error occurs. I have newly installed ubuntu and my sources.list.d folder is also present. Please help me with this.. Error:: Traceback (most recent ...
0
votes
0answers
12 views

Mapping a music file to a discrete 2D domain/2-D array in Ubuntu

I wish to take music file as an input. The output should be a scalar field on a 2D domain or a Vector field on a 2D domain, which I can store as an array. We have seen mapping of music to a 2D domain ...
0
votes
0answers
18 views

Change auto-renaming in guake

Is there any way to remove path from tab name in guake? Usually I open several hosts in different tabs and I rename them all according to the host name. It is annoying to make the same action on every ...
0
votes
0answers
48 views

Matplotlib requires sudo on Ubuntu 14.04

I recently shifted to a new laptop. After installing Ubuntu 14.04 LTS and all of the packages that my previous system contained, I copied all my files from my old system to the new one. Whenever I ...
0
votes
0answers
40 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
0answers
15 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 ...
0
votes
0answers
43 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 ...