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
3answers
37 views

Permanent autostart

I would like to make a Python 3.4 script that starts with my computer so that it's permanently checked to start up with the computer. The script does not need to end, particularly. I don't want ...
51
votes
5answers
154k views

How do I install python 2.7.2 on Ubuntu?

I want to install python 2.7.2.tgz on Ubuntu, downloaded from http://python.org/download/. Is this a correct way to install : ./configure make make install If not , how can I do that?
1
vote
1answer
13 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 ...
0
votes
1answer
755 views

How to install the gedit markdown-preview plugin on 14.04?

I've just installed the markdown preview plugin for gedit and I get the following error on the console when I try to activate it in the plugins tab: Traceback (most recent call last): File ...
0
votes
1answer
4 views

How to add a Custom Openshot Blender Template?

After Creating the appropriate files and structure as listed ./blender/custom.xml ./blender/blend/custom.blend ./blender/scripts/custom.py ./blender/icons/custom.png and placed in the location ...
0
votes
0answers
13 views

Gedit embedded terminal not working

I get this error when I run gedit: $ gedit Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/terminal.py", line 309, in do_activate self._panel = ...
0
votes
0answers
28 views

Panel Indicator Problem? [on hold]

I've created a my own indicator for Ubuntu top panel and it is perfectly works, It contains some feature to open some applications such as System monitor, putty, .... when I open these apps using ...
1
vote
1answer
272 views

Is it possible to install Python 3.x in 14.04 LTS?

I'm looking to pick up some programming skills and after looking into it a bit, I came across an article that recommended that I learn Python as a way of getting started at programming before moving ...
-2
votes
1answer
50 views

Running python module in gedit embedded terminal [on hold]

I'm new to python and i'm trying to run my first module but i can't do that through gedit embedded terminal the code i wrote is def num(b): print("Give A Number") b = b +5 print(b) I ...
3
votes
1answer
1k views

Ubuntu 14.04 LTS and Python 3.4.1

Is it possible update default Python 3.4 to 3.4.1? How?
0
votes
1answer
38 views

Run terminal command (python command) at start up [duplicate]

New to Ubuntu, but have looked everywhere to get this question answered. Found no solution so far. Basically I need to run two terminal commands on startup, which follow each other directly. This will ...
2
votes
1answer
44 views

Ubuntu, gtk 3.10.8, not able to visualize a menubar made by Glade

My problem is that I've drawn a UI with Glade, but the menubar doesn't want to be drawn. Here is the xml, just a sample: please try to check out the properties. It is a very simple menubar but I ...
0
votes
0answers
17 views

Unable to install bsddb185, Python library for opening Berkeley DB version 1.85 files on Ubuntu

I am writing a python program that makes use of some legacy Berkeley DB 1.85 files. Unfortunately I am unable to install the bsddb185 Python package, either for Python version 2.x and for Python 3. ...
6
votes
2answers
1k views

How to use GDK with Quickly

I trying to use the library gdk for scale down an image and apply it to a GdkImage. This is the code pixbuf = Gdk.pixbuf_new_from_file(fileName) pixbuf = pixbuf.scale_simple(100, 100, ...
2
votes
1answer
56 views

http request to cgi python script successful, but the script doesn't seem to run[SOLVED] [closed]

I have configured cgi scripts for my apache2 web server. Here is what I want to do: Client uploads the image to the server. (this already works) On success, I want to execute the python script to ...
1
vote
1answer
17 views

How do I install pygame in a pyenv virtualenv for Python 2.7 on Ubuntu 12.04?

I found instructions for Python 3.3 but nothing specifically for 2.7. I sorted it out and figured I'd record it here for future reference.
1
vote
2answers
2k views

How to download pygame in python3.3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?
8
votes
4answers
6k views

Unable to download videos using youtube-dl ('sig error'), how to correct?

I used to download videos using youtube-dl command line tool, from the past two days whenever i try to download any video I get an error as shown below. $ youtube-dl ...
0
votes
1answer
323 views

IDLE and PyCharm using Python 3.4.0 when 3.4.1 installed?

I recently visited the Python site, and noticed that a new version, 3.4.1 had come out. My Ubuntu 14.04 had 3.4.0, so I downloaded 3.4.1 and installed it. When I open IDLE, it showed 3.4.0, but when I ...
0
votes
0answers
38 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 ...
0
votes
0answers
14 views

notify-send does not work with root on Ubuntu 14.04

I have a small python script that I start it using a shell script stored in "/etc/X11/Xsession.d" The code is very simple it show a notification message import os import time while True: ...
0
votes
0answers
25 views

Why doesn't 'launcher.set_property(“urgent”, True)' work?

My script: #!/usr/bin/python # update bar on dash icon by stdin # ex: for i in {0..100};do echo "$i";sleep 0.3;done | ./$0 import sys, time from gi.repository import Unity, Gio, GObject, Dbusmenu ...
0
votes
1answer
8 views

run bottle app on my server

I program my app with python Bottle in my pc. I run my app with run(host='localhost', port = 80) I want to run app on my ubuntu VPS that installed virtualmin on it. how can i do this?
0
votes
0answers
19 views

How to create an installer for a python GTK3 application?

I have just finished developing a Python 2.7 application using Gtk3 for GUI. My question is, how can I now create an installer for Windows, Mac, and Linux (possibly three different installers) for my ...
1
vote
1answer
54 views

Tkinter on Ubuntu 14.04 seems not to work

I receive following Traceback: Traceback (most recent call last): File "tkinter_basic_frame.py", line 4, in <module> from Tkinter import Tk, Frame, BOTH File ...
1
vote
1answer
89 views

Install Python 2.7.8 on Ubuntu 12.04

I have to use Ubuntu 12.04 for some reason. In the other hand, i have to use Python 2.7.8 but the newest python version for 12.04 is 2.7.3. Is there any ppa repository i can use to upgrade my python ...
3
votes
1answer
62 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
0
votes
2answers
3k views

How can I run python scripts on my webserver?

I have a test script, /var/www/etym/cgi-bin/test.py #!/usr/bin/python # -*- coding: UTF-8 -*- # enable debugging import cgitb cgitb.enable() print "Content-Type: text/plain;charset=utf-8" print ...
0
votes
0answers
25 views

Cannot compile GDB7.8 with Python support

I am trying to install GDB7.8 with Python support. From the source folder, I am running ./configure --with-python When I did tab-complete from --with- I did not see Python in the list. But when I ran ...
2
votes
1answer
33 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
0
votes
1answer
75 views

package xxxx and python-xxxx

I am trying to install the latest version of package xxxx. I downloaded, unarchived and follow the readme: python setup-py install But python does not see my latest version. It seems that there is a ...
2
votes
0answers
31 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 ...
1
vote
2answers
4k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
0
votes
2answers
429 views

how to crearte a .desktop file to launch a file.py

I made my litle python App, but now I can't launch the app from the .desktop that I made: [Desktop Entry] Name=MyApp Version=0.1 Exec=/usr/share/MyApp/MyApp.py Icon=/usr/share/MyApp/img/MyApp.png ...
2
votes
0answers
129 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 ...
0
votes
1answer
28 views

How can I tidy up the mess that is my Python installations?

I had a Ubuntu 12.04 system which I eventually managed to get Python 2.7 and Python 3.2 working together (with pip and pip3) and Python 3.3 (with pip3.3) for good measure. I've recently upgraded to ...
-1
votes
0answers
17 views

How to make python script executable in Ubuntu? [duplicate]

I want to execute a python script by just double clicking, without going to the terminal/shell. I already add the hashbang/shebang to the script and make it executable but it just open in gedit when i ...
1
vote
1answer
53 views

Cannot install python module urlparse

some program written in Python 2.7 complains that ImportError: No module named 'urlparse'. So I need to install the module, but I am not able to do it. The module does exist, it is described e.g. at ...
19
votes
1answer
24k views

Upgrading to python 3.2

I want to use new functools that provides with the lrucache, I am currently using python 2.6, which doesn't support this, What is the best way I can upgrade to python 3.2? or is there any other ...
2
votes
2answers
1k views

How to install opencv 2.9 for python?

I have been having the exact same problem as described in this post and someone in the answers suggested that you upgrade to opencv version 2.9. I was wondering how do that? I installed the version ...
0
votes
1answer
30 views

Runnning subpackages of python-3.4 astropy-0.3 library on ubuntu 14.04

I have successfully installed astropy-0.3 with python-3.4 on ubuntu-14.04 but whenever I search any conventional library of astropy like cosmology, time, units it doesn't work here.. Is this library ...
0
votes
0answers
35 views

By mistake I removed Python. Terminal, music player, video player, Software Center etc. are gone

I work on Ubuntu 14.04 to install Python and other packages I entered the following command : sudo apt-get install python python-pip python-pyparsing python-mysqldb gunicorn nginx git-core ipython ...
1
vote
2answers
5k views

How to install python 2.5.4?

I have installed Ubuntu 12.10 on my laptop, now i want to use Python 2.5.4 for educational purpose. Can any one help me with step by step instructions... I also need IDLE for 2.5.4.
1
vote
1answer
31 views

How to add SSL support to Python?

On Ubuntu 14.04, I installed Python 3. Now that I am programming with it, I had a problem with Python and I am told that the error occurred because I did not install Python with SSL support. Is it ...
2
votes
1answer
2k views

How to install PyV8 in Ubuntu 13.04?

I want to install PyV8 in Ubuntu 13.04. However pip install -v pyv8 takes super long to build and finally fails. How can I install PyV8 on a Ubuntu 13.04 machine? Here is the error log ...
2
votes
1answer
57 views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
0
votes
0answers
88 views

Python: no module named datetime?

OS: Ubuntu 14.04 LTS Python: 2.7.6 My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback: import ...
4
votes
2answers
260 views

How can a Debian package install Python modules from PyPI

This question tries to complement this one . I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python ...
0
votes
3answers
306 views

How to install Ubuntu on portable external Hard Drive?

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on ...
-1
votes
0answers
14 views

Unable to install proprietary drivers in Ubuntu 12.04.4 32bit

I installed ubuntu 12.04.4 32bit alongside ubuntu 12.04.5 64bit (i know it's crazy) and i get this error message while installing additional drivers : Sorry, installation of this driver failed. ...