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
106 views

How to activate flash player for a Quickly created webview/webkit app

I created a web browser program using webview/webkit as the web displayer. I noticed that when I went to youtube only a few videos worked. I am pretty sure that I have to tell webview to activate ...
0
votes
1answer
132 views

Django installed, but can't import django in python

I've installed Django multiple ways, via apt-get and pip install. They all say I have the most recent version of Django. Now whenever I run python in Terminal and type in import django, I receive ...
2
votes
0answers
43 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 ...
1
vote
1answer
65 views

mod_python returns plaintext script?

Ubuntu 12.10 Server in a virtualbox VM. I have installed mod_python using apt-get,enabled it using a2enmod, and rebooted apache2. I have also edited \etc\apache2\sites-available\defaults as below. ...
2
votes
1answer
553 views

“No such file or directory”, but the file exists

I copied some files to Ubuntu (running on VirtualBox). Trying to open the said copied files and get an error. I'm not entirely sure how the file directory system works, but I used cp command to copy ...
2
votes
1answer
122 views

gdb cannot run due to python error

I am trying to run gdb, but as soon as I hit enter I get this error Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in <module> main() File ...
1
vote
1answer
129 views

Run python script on reboot (boot)

I am trying to run a script once the server reboots. So, how can I change it. My script needs only one file to open and it opens in terminal. I read something about changing configurations or ...
0
votes
1answer
71 views

Ubuntu 10.04 Python modules

I want to install lxml on an Ubuntu VPS, but I'm having problems. There is no site-packages directory where I can put lxml. How I am supposed to install it? I tried doing: apt-get install ...
0
votes
1answer
75 views

How to use fixed width font in python indicator in Unity's top panel?

I have a python script of network bandwidth indicator that I have downloaded from here : https://launchpad.net/nettraffic I would like to make the indicator use a fixed font so that the indicator's ...
2
votes
1answer
95 views

How do I resolve Debian packaging issue with ${python:Depends}?

I am trying to build a python-based Debian package and I see the ${python:Depends} variable under the Depends section in the control file. While installing, I see that it refers to the ...
0
votes
0answers
19 views

Getting a No entry sign at the top of the desktop [duplicate]

Possible Duplicate: Update Manager won’t open (error related to pythonverbose) Hi im getting the following message, The error message was: ror in sitecustomize;set PYTHONVERBOSE for ...
4
votes
2answers
315 views

How to set up and use a virtual python environment in Ubuntu?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly takes care of permission issues. But what is the easiest way ...
0
votes
0answers
18 views

Apport broken, workaround nolonger valid. need to help to get back to bug reporting

http://paste.ubuntu.com/1542820/ similar to Error with "apport" except the workaround does not work, and i suspect the lines specified to change are not of what they used to be, because one ...
0
votes
1answer
81 views

Terminal python _tkinter

I asked this question on how to get python to work in my Ubuntu Terminal. After trying python file.pyw. I was then given this error in the terminal: importerror: no module named _tkinter, please ...
5
votes
3answers
310 views

run python in terminal

Trying to learn how to run my scripts through Ubuntu's terminal regularly. That being said I am familiar with bash, wget, and awk being called but how do I call python files to run in the terminal? ...
3
votes
1answer
123 views

Why py and not pyc or pyo?

When I install a python deb package, say python-numpy the files are plain python files. How do I tell to the package manager -- that I actually would rather use pyc or even better -- pyo files?
0
votes
1answer
47 views

python sqlite command in path

I am installing a program, and one of the requirements is to have python sqlite2 installed. I check this by: $ python -c "import sqlite3" The second requirement is: "Additionally you must have the ...
1
vote
1answer
151 views

How to apply a python patch on installed library

I have a linux box with root access. I've django library installed as uncompressed python egg. Now I want to install this patch. How can I do it?
45
votes
3answers
1k views

Is #!/bin/sh read by the interpreter?

In bash or sh, I guess anything which starts with # is a comment. But in bash scripts we write: #!/bin/bash And in Python scripts, there is: #!/bin/python Does this mean that # by itself is a ...
1
vote
1answer
296 views

How to install PyQt4 for Python2.6?

I am currently stuck using both Python2.6 and Python2.7 on Lubuntu 12.10. 2.6 is required for a piece of software. In attempting to write a plug-in for this software (Opticks), I need to be able to ...
6
votes
1answer
72 views

Can apps created using Quickly for Ubuntu be used in other linux distros?

I need to write a small program to update my mongodb. I'm currently on ubuntu but I need to use it on other linux distributions. I would just like to make sure that applications using this method: ...
2
votes
1answer
42 views

Package combined C++/Python software

I would like to package a software that contains both C++ and Python code. The C++ headers and libraries compile fine on launchpad and are properly installed (thanks to some .install files). On the ...
2
votes
0answers
128 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
1answer
74 views

Screenlet behaves like it has no underlying window

I'm trying to write a screenlet from scratch following this guide http://www.ibm.com/developerworks/linux/library/l-script-linux-desktop-1/index.html. I have created the Hello World! example but when ...
19
votes
4answers
2k views

Can I develop ubuntu for phones apps in Python?

Does anyone know if we can develop apps for ubuntu for phones in Python ? PyQT / PySide would seem to support also QML. But can we use them on the phones ?
1
vote
3answers
140 views

Python libgtop bindings for Ubuntu 12.10?

In-place upgraded from 12.04 to 12.10, and Python import gtop stopped working. python-gtop 2.32.0+dfsg-1 (amd64 binary) in ubuntu quantal says Superseded Installing python-gnomedesktop and ...
1
vote
1answer
89 views

Quickly ~ Web Application fails to opendatabase

I'm building a Quickly ~ HTML5 Application, it works great until I try to use WebSQL Storage, which fails to open a databse: var db = openDatabase('mydb', '1.0', 'Test DB', 5 * 1024 * 1024); giving ...
1
vote
1answer
79 views

Upgrade Webkit PyGTK Libraries

I'm developing a PyGTK-HTML5 Application (Using Quickly), but the webkit libraries (WebView) are a bit old, at least for using some of the latest HTML5 APIs (like IndexedDB) is it possible to upgrade ...
1
vote
1answer
198 views

How to use a python virtualenv with sudo?

I am trying to make a python environment separate from the system one (using virtualenv) in a directory which is not under /home, because I need to use it to build other software that has to be ...
2
votes
2answers
89 views

How do I package a Python script for Ubuntu?

I have a Python 3.2 script that I'd like to package for Ubuntu and Debian. I've certainly looked for documentation but I wasn't sure that I was getting the latest and greatest/easiest methods. If ...
3
votes
1answer
86 views

Python dependencies in Debian packages

I created my first Debian package today by following the accepted answer at this AskUbuntu question. Everything went fine, and it installed properly afterwards. However, my script is written in python ...
0
votes
0answers
19 views

Error installing libxml2-dev on Ubuntu 9.10 - for lxml-etree [duplicate]

Possible Duplicate: How to install software or upgrade from old unsupported release? Trying to install lxml-etree on Ubuntu 9.10 I learned here that I need to have libxml2-dev & ...
0
votes
0answers
14 views

Python Plugin not found [duplicate]

Possible Duplicate: How to play Mp3 files using Rhythmbox? Required plugin could not be found Python (v2.7) requires to install plugins to play media files of the following type: MPEG-1 ...
1
vote
0answers
88 views

My Unity bar is missing and I cannot log in [closed]

Hello I am running a dual boot of Vista and Ubuntu 12.04. I have been testing the open beta if the Steam gaming service. I ran into some issues installing it. But nothing crazy and it did work. I ...
2
votes
1answer
152 views

Python ImportErrors while trying to get a program (found on Google Code) to work

I'm trying to install a program written in Python / -->http://code.google.com/p/amphetype/<-- / I did subversion checkout svn checkout http://amphetype.googlecode.com/svn/trunk/ ...
0
votes
2answers
385 views

How to fix broken python installation

I have done something with my python installation, don't remember what exactly. But I am getting an error when I try to open python command line now: richard@richard-desktop:~/projects/hello$ python ...
1
vote
1answer
665 views

import numpy - no module named multiarray

On Ubuntu 12.04 64-bit, I installed python 2.7.3, and numpy 1.6.2. When I try to import numpy, I get this: erelsgl@erel-biu:/host/Dropbox/ai/routes$ python Python 2.7.3 (default, Nov 25 2012, ...
2
votes
1answer
301 views

Sublime Text 2 file search not working?

Sublime Text 2 has an extremely handy feature to press Ctrl+P and be able to fuzzy search for files in a given specified directory. This worked well on Windows, but on Ubuntu it doesn't recognise the ...
5
votes
3answers
2k views

Making python 3.3 default python 3 interpreter instead of 3.2

So, to keep it simple. Ubuntu 12.10 has python 3.2 pre installed and it is linked to "python3". I downloaded python 3.3 and it's command is "python3.3". However, I downloaded pySide for python3 from ...
0
votes
1answer
265 views

Python Global Hotkey

I'm looking to create a global hotkey in Python 3.2 for Ubuntu 12.10. That is, my script will run in the background and whenever I press Shift+F4 (for example), no matter what the active window is, ...
3
votes
2answers
157 views

PYGTK to PYGI: gtk.timeout_add equivalent

I have converted some Python code to use PYGI but I can't figure out how to convert this line: gtk.timeout_add(PING_FREQUENCY * 1000, self.doWork) To by clear, since I don't really know the ...
0
votes
1answer
101 views

Can I install an Ubuntu app from remote laptop?

Is their a way to push/send and ubuntu-app/deb-file to be install on my Ubuntu laptop? Usecase... Laptop 1. I find an app, I need to install! But I´am not at home. I just push it to my other ...
1
vote
0answers
292 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
votes
1answer
180 views

Python terminal not working for for loops

I ran this code in the Python terminal: >>> for news in news_list: ... print news("li", {"class", "first"})[0].a["href"] ... ... I want to be able to close this for loop in ...
0
votes
0answers
291 views

dpkg: error: parsing file '/var/lib/dpkg/available' near line 13 package 'python-pkg-resources error

I got frustraded and re-installed ubuntu server. I'm at the point in the cmd line: sudo apt-get update .. done sudo apt-get upgrade .. done sudo apt-get install linux-image-server ...
2
votes
2answers
55 views

How do I get localized names of application in python?

This code gives me only English application name if .desktop file does not have "Name[*]" options (like in totem.desktop) but only "X-Ubuntu-Gettext-Domain: totem": from gi.repository import Gio app ...
1
vote
1answer
182 views

How to use multiple Python versions on the same System?

I am trying to install Keryx which requires python < 2.7 I want to be able to use this software and yet not uninstall the newer version of python from my system and mess up any other programs that ...
0
votes
1answer
81 views

Drawing tool in Python

I am trying to implement drawing concept like line,rectangle,pencil and brush tool in Gtk.Textview . Is it possible to draw into Gtk.textview? Thanks in Advance...
1
vote
1answer
86 views

Is there a auto-complete tag like control for quickly/pygtk?

I am making a todo like application with indicator support using glade/python/pygtk/glade. I am making a form to save a Todo item. Each todo will belong to 0 or more projects. When a user enters a ...
1
vote
1answer
44 views

Which is the best package to draw drawings in python?

We are trying to implement the drawing tools like line, circle, pencil, brush and so on in gtk. Is it possible to draw these things into the textview? Would one of these packages work for the ...

1 2 3 4 5 18