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

0
votes
0answers
65 views

WebKit WebView cause error

I try to write simple GUI application using Ubuntu Quickly and Python. So, I need to use WebKit in it and I write something like this: webview = WebKit.WebView() But this line in my code ruined ...
0
votes
0answers
64 views

Keeping python alive through gnome 3 screen lock?

I've been through the ringer with this one the past few days. I wrote a script to re-target my Altcoin miner every once in a while. It builds a command string from API data grabbed at coinwarz.com on ...
0
votes
1answer
31 views

Issues with IDLE [closed]

I can't run programs with IDLE or any files saved with IDLE. I get a syntax error. I was just testing it out with print "Hello World". This is the message I am receiving File "p.py", line 1 ...
5
votes
2answers
569 views

How to get rid of the background gradient of the inline GtkToolbar?

When you run the below code, it will show an inline toolbar in a window. Notice how the inline toolbar has a stand-out backbround. Is there a way to apply CSS to get rid of it and make blend with ...
1
vote
1answer
54 views

Update TextEntry of WebBrowser in Python

I got a basic web browser set up and working with Quickly and Python code, but how do I set it up so my TextEntry object (where the URL is entered) to update if I click on a link on the webpage. It's ...
1
vote
1answer
85 views

How can I create Unity dash integration for my Python script?

I have written an awesome script in Python and I seriously think it should help many rookie Ubuntu users out there -- especially for a quick solution/tip. My script searches through AskUbuntu.com and ...
5
votes
3answers
528 views

How to show a window of an already active app when trying to open a new instance of that app

I know the question is a bit vague. I'll try to explain better below: My app (python/gtk) is mostly an indicator. Using this indicator you can choose to show/hide the main window. When I try to open ...
6
votes
1answer
4k views

How do I set IDLE as the default editor for Python scripts?

I would like to set IDLE as the default editor for python scripts, but when I click on "open with application" and hit the dropdown to show more applications it isn't an option. Here's exactly what ...
2
votes
1answer
208 views

Wrong package for Idle-python2.7?

I'm running python 2.7 in Ubuntu 13.10, and idle (idle-python2.7) has stopped working. Whenever I try to open a file in a editor window, it is blank, though the file does exist and is not empty/blank. ...
2
votes
1answer
3k views

How to install requests module for Python 3.2 by using pip install?

I have Ubuntu 12.04 with Python 2.7 and 3.2 Following this page I installed requests module. $ sudo pip install requests However, it only works for Python 2 but not Python 3: $ python Python 3.2.3 ...
0
votes
1answer
204 views

How to change Gtk.Notebook Tabs

There is a way to change the default Gtk.Notebook Tab? I want to realize a flat tab button
1
vote
1answer
154 views

How can i install SPE(Stani's Python Editor) for python3.3

I have ubuntu 13.10.I have SPE which runs for python2.7.4+.But i need to run it for python 3.3.2+.How can i do it.My system uses python2.7.4+ by default.
2
votes
2answers
4k 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 ...
0
votes
1answer
27 views

Problem in python3.3.2+ [duplicate]

I am using Ubuntu 13.10.I have 2 versions of python.Python2.7.6 and python3.3.2+.(I don't know what is the '+' sign)Whenever I open python 3.3.2+ and type print "hello." .I get the invalid syntax ...
1
vote
4answers
216 views

How to kill the process using the name of the program instead of PID?

I started my Python program in the background using nohup as mentioned below - nohup zook.py & Now I am trying to kill this process so I did the ps command as mentioned below ...
0
votes
2answers
19 views

How to download SPE? [duplicate]

How to download SPE in ubuntu 13.10.I have python2.7.6 in anaconda 1.8.0.I need it for making programs
0
votes
0answers
16 views

How to download pygame in anaconda [duplicate]

I have anaconda 1.8.0.How can i download pygame in it.I am currently running ubuntu13.10.I have python 2.7.6.
1
vote
1answer
54 views

How to install pythoncard?

I am currently running ubuntu 13.10.I want to download pythoncard for python2.7.6.I also have anaconda1.8.0.So whenever i start python in my terminator or terminal,it starts along with anaconda.
1
vote
1answer
544 views

Taking screenshot using python

The below code work perfectly when I run it as a console application import gtk.gdk import time w = gtk.gdk.get_default_root_window() sz = w.get_size() print "The size of the window is %d x %d" % ...
0
votes
2answers
937 views

Google app engine GUI launcher for Ubuntu 13.04

Can someone help me to find GAE launcher for Ubuntu 13.04. I found it for earlier versions of Ubuntu but those PPA's doesn't work for 13.04. I'm using Python version.
2
votes
2answers
600 views

How to install pygame?

I am running Ubuntu 13.10. I have python 2.7.5 with anaconda 1.8.0. Whenever I start python and type import pygame it tells me that there is no module named pygame. How can I install pygame?
1
vote
0answers
48 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 ...
2
votes
1answer
42 views

Make Python2.5 failed on Ubuntu 13.04

for some reason I need to install Python2.5 on Ubuntu 13.04. I tried to install it from source. However the make operation is failed with the following error: gcc -pthread -c -fno-strict-aliasing ...
0
votes
1answer
59 views

How to install an app written in Python?

I tried to install an app written in Python using this command in terminal: sudo make install at the very last stage of installation, this message pops up: [ -x /usr/bin/update-desktop-database ] ...
0
votes
1answer
143 views

How to indicatorize a systray-only app?

I just realized that under 13.04 it isn't possible any more to add applications which are using the systray to a whitelist. I found the suggestion of downloading a patched version of Unity but I'd ...
1
vote
1answer
52 views

how to call python script from Explorer right click

I have written a tool in python which i want to be able to launch from the right click of the folder in the File and folder explorer... and I want to pass the folder i right click as argument to the ...
3
votes
2answers
138 views

Unable to save scripts from the Python interpreter

I have installed Ubuntu and it came with Python 2.7.3 but I can't save any of my programs. I tried going to File, looking for a Save option, but it is not present. What should I do?
0
votes
1answer
145 views

Problem with kivy installation

I'm trying to install the kivy framework. But first I need to install these packages: python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev ...
-1
votes
1answer
181 views

couldn't load image in opencv(python)

I installed opencv & python in ubuntu12.04. I'm unable to load the image. I tried $ from cv2.cv import * which showed the error "from: can't read /var/mail/cv2.cv" How to solve this?
1
vote
1answer
167 views

Ubuntu 12.04 How to edit .py file in IDLE without invoking the python shell?

First, I followed this answer to modify the file mimeapps.list. How do I set IDLE as the default editor for Python scripts? It works, but not perfect because everytime I right click .py file--select ...
1
vote
1answer
93 views

Can I connect to running autostart python script?

I am running Lubuntu 13.10 an have a python script that is run on boot through ~/.config/lxsession/Lubuntu/autostart. The script startes a web application and outputs various information to terminal ...
1
vote
2answers
75 views

Python through command terminal, creating functions?

I am new to Ubuntu. I formerly used to use python on windows, and now I am learning Ubuntu. When I open the command terminal, I type python and press Enter,the symbol (>>>) is shown and I am in IDLE. ...
14
votes
2answers
2k views

How can I write Nautilus scripts in Python?

I want to write a Nautilus script in Python. Is that possible? If it is possible, how can I do that?
0
votes
2answers
93 views

How come a python file is executable even though its permissions are 644?

I think I am misunderstanding something here. I have made an easy python testing file to see how permissions affect the use of python files. I did so in order to be able to answer 64bit ubuntu 12.04 ...
1
vote
1answer
61 views

64bit ubuntu 12.04 python cannot run an existing python file

absolute path, fails: nan@UXN:~$ python /home/nan/google_appengine/goagent/local/proxy.py python: can't open file '/home/nan/google_appengine/goagent/local/proxy.py': [Errno 2] No such file or ...
0
votes
2answers
122 views

Python: Regex filter ids divisible by 3

Hi I have a list of ids separated with commas and I need to take the ids which are divisible to 3.
1
vote
1answer
170 views

Trouble with jhbuild installation

I am trying to learn GTK+3 as per this site: https://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html. From the page: 1.1. Dependencies GTK+3 Python 2 (2.6 or later) or ...
0
votes
1answer
477 views

IOError: [Errno 13] Permission denied. FEniCS JIT compiler

I keep getting the permission denial error: IOError: [Errno 13] Permission denied, when I try running making a function space. I think it it something to do with the JIT compiler. Somehow, all the ...
0
votes
3answers
1k views

Broken python (2.7) after manually building and installing python 2.6

running Ubuntu 12.04, I had the usual python 2.7 in place . I needed python 2.6 , so I downloaded the source and did ./configure make sudo make install A mistake, as I did not want to replace my ...
1
vote
0answers
78 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 ...
9
votes
3answers
13k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
1
vote
1answer
728 views

How to get a SSL certificate to be verified in Python?

I've got an inexpensive certificate from EssentialSSL (Comodo is the CA) and I was surprised to discover that Python didn't recognize it. requests.exceptions.SSLError: [Errno 1] _ssl.c:509: ...
0
votes
1answer
133 views

Making webpy framework accessible from outside the local network

I am using ubuntu 12.04.03. I have some basic experience with webpy and I had it working for my LAN just by following the tutorial. The framework needs to be able to be used from outside the local ...
-1
votes
1answer
32 views

how do I add to an already existing file?

I want to add to a file but when I do the file starts at the end of the last file.I need it to start at the next "new line"
0
votes
0answers
33 views

Which files should I look at when changing Ubiquity?

I've been thinking about changing the Qt version of Ubiquity to make it easier to use ("easier" in this case meaning not to bring the user to a partition manager when choosing a dual boot option). ...
1
vote
1answer
611 views

How to install the latest IPython notebook in Ubuntu 12.04?

The solution here asks to install the latest notebook, but I was unable to find how to do so. http://stackoverflow.com/questions/16496687/unable-to-open-an-existing-notebook-in-ipython-notebook
1
vote
3answers
778 views

How to install python-qt3?

I'm new in Linux environment and I need to install python-qt3 on Ubuntu 13.10. How can I install it?
1
vote
2answers
75 views

How we can change linux environment variable in python?

Let's say we are on a command line and we declare an environment variable: export x=100 When i go to python and type : os.environ['x'] = '100000' If I came back to command line x stays 100. Is ...
0
votes
0answers
301 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 ...
1
vote
1answer
358 views

IDLE 2.7.5+ doesn't work in Ubuntu 13.10

Recently, after upgrade from Ubuntu 13.04 to 13.10 I can open .py files in IDLE 2.7. When I doing click in "File - Rencet Files - file.py" I get a empty windows. In this windows the code is absent and ...