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

14
votes
2answers
5k views

How to read dbus-monitor output?

i'm playing around with dbus-monitor to try and understand how dbus is working in Ubuntu environment. I have several questions in this regard: Could you please let me know how to read the following ...
0
votes
0answers
16 views

Python 2 segementation fault

I am quite a noob with ubuntu (or any linux system). Nevertheless I installed ubuntu 14.04 on a new computer (I had 13.something on my old one which used legacy boot , while the new one uses uefi) ...
2
votes
2answers
45 views

How to isolate Python 2.7.X on Ubuntu 12.04 which has default Python 2.7.3?

I want to build Python 2.7.8 on my Ubuntu 12.04 machine, which has Python 2.7.3 as default distribution. I would like to "install" Python 2.7.8 but isolate it completely from Python 2.7.3 - meaning, I ...
1
vote
0answers
14 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 ...
0
votes
0answers
136 views

Install Scipy at virtualenv

I asked a question a few days back, on how to run an older version of matplotlib and I got an amazing answer back. What I had to do was to execute these commands: mkdir matplotlib_1.1.1 cd ...
1
vote
2answers
26 views

Using specific python version for apt-get in Ubuntu 12.04 LTS

On Ubuntu 12.04 LTS I have python2.7.3-0Ubuntu3.5 package installed. One of the libraries i am trying to install has dependency on (>=2.7.3.6). I went ahead and installed python 2.7.6 and even python ...
1
vote
1answer
24 views

How do I use regex to remove all punctuation and symbols?

I'm using Python 2.7 regex. I need to remove all symbols, punctuation, numbers and whitespace from strings in different languages. For example, these two strings: the following characters: ...
7
votes
1answer
5k 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 ...
-1
votes
3answers
47 views

“Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel” while installing PyPy version of Numpy

I am trying to install the PyPy distribution of Numpy (Note that PyPy requires a different version of Numpy than that found in the repositories), but get the error: Cannot compile 'Python.h'. Perhaps ...
1
vote
1answer
15 views

How to replace tk8.6 with tk8.5?

The title explains pretty much all I need to do. I need a downgrade from tk8.6 to tk8.5 on 14.04. There is some niche scientific python based software that I need to use, however it is incompatible ...
0
votes
0answers
32 views

power down happened during version upgrading

While upgrading from Ubuntu 13.10 to 14.04 unfortunately a power down happened and the PC got powered off. When again booted, I was neither able to upgrade version nor install any software through ...
18
votes
1answer
14k views

Can I use easy_install?

Can I use easy_install on Ubuntu 10.10? If yes, then how?
-1
votes
0answers
36 views

bloomberg python api blpapi3.5.5 install gcc error in ubuntu

i am try install bloomberg python api blpapi-3.5.5 in ubuntu but gcc error are show when i am install..how to solve this issue. there error massage.. /home/najeeb/Desktop/pyqt1/blpapi-3.5.5# python ...
4
votes
0answers
131 views
+50

Why Netbeans not detecting Python?

I am using Netbeans IDE 8.0 in my system 14.04 LTS. I have installed Python plugin in Netbeans 8.0 by following this link. And also I have download python-3.4.1.tgz from this link and installed it ...
5
votes
2answers
880 views

Is there a pywinauto equivalent to automate the GUI from Python?

pywinauto is a set of python modules to automate the Microsoft Windows GUI. At it’s simplest it allows you to send mouse and keyboard actions to windows dialogs and controls. Is there a ...
10
votes
4answers
3k views

Writing indicators with Python, GIR and GTK3

I'm writing an application that needs to use an indicator. I've done this in the past using PyGTK and GTK2, using as reference this document: ...
0
votes
1answer
48 views

how to tell ubuntu to use python 3.4 instead of 2.7? [duplicate]

I have python 2.7 and 3.4 versions installed. But when I say say "python -V", it shows version as 2.7 not 3.4 How to tell ubuntu to use newest python? where is this setting configured ?
0
votes
1answer
295 views

PIL install in Ubuntu 14.04.1 LTS

Followed the steps How do I install python imaging library (PIL)? for pre-setup libraries to install PIL on Ubuntu 14.04. However when I run pip install PIL --allow-external PIL --allow-unverified PIL ...
1
vote
1answer
1k 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
0answers
31 views

Error in tarfile.py [closed]

Traceback (most recent call last): File "./build.py", line 497, in <module> make_package(args) File "./build.py", line 326, in make_package make_tar('assets/public.mp3', [args.dir], ...
0
votes
1answer
20 views

What exactly is a connection through socket or what does the output of lsof tell us?

I'm streaming some files from S3 to an EC2 instance to get summary data from the headers. I use key.close(fast=True) for all the keys I get from boto.s3.bucket.Bucket.list() (python library to access ...
3
votes
1answer
84 views

python-nltk on Ubuntu 12.04 LTS: nltk.download('brown') results in HTML error 401

I have installed python-nltk on Ubuntu Server 12.04 using apt-get. But when I try to download a corpus, I get the follwoing error: $ python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] ...
-1
votes
2answers
39 views

making an APK in ubuntu [closed]

by running following command : ./build.py --package org.hello.world --name "Hello world" --version 1.0 --dir /home/kajal/utils/kivy/exa debug installd I got following error of too long name... ...
0
votes
2answers
38 views

fatal error :“python.h” no file or directory?

while looking for the solution of hungarian problem,I found this github link I went through the readme.md file and I performed everything described there, After copying hungarian.so in my directory ...
0
votes
1answer
82 views

fail to driver swrast minecraft python

Under Kubuntu 14.04 Trusty, my graphic card is a nvidia gtx geforce 760. I am trying to play with minecraft implemented with Python and Pyglet When trying to lauch the game (python main.py), I have ...
0
votes
1answer
67 views

apt-get ends up with errors after nvidia 331 installation

I recently installed nvidia-331 driver via Software & Updates -> Additional Drivers tab. Now when I use: sudo apt-get install <package> or sudo apt-get remove <package> ...
1
vote
1answer
15 views

How to get filename from FileChooserButton in PyGTK?

I'm using Glade and PyGtk to develop an application. Currently I'm using a button under a toolbar to open files using this code: def on_openVideo_clicked(self, widget): dialog = ...
2
votes
2answers
43 views

Cuda 6.0/PyCuda. 'ImportError'

I had Cuda 5.5 with pycuda working great, but then I needed to upgrade to CUDA 6.0. Now when I try to run a sample PyCuda program I get this : ImportError: libcurand.so.6.0: cannot open shared ...
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
1answer
185 views

how do i install light table?

I am very new to Ubuntu and I plan on learning python for which I need to install light table. I couldn't find any specific instructions anywhere on the net. please provide me the steps in detail. ...
0
votes
2answers
48 views

Where do I find Python2.7 in Ubuntu 14.04?

I'm using this tutorial to install Django with Postgresql in my Ubuntu 14.04. In the 4th step, it asked me to go to my python directory, so I ran $ whereis python2.7 and I got multiple directories. ...
5
votes
2answers
6k views

How to call a number from command-line with Skype?

I've seen several links suggesting it is possible to make a call from the command-line with skype. The instructions suggest something along the lines of: skype --callto:+14445551234 However, this ...
0
votes
1answer
34 views

Always alert me install python-gevent but I have installed it

I installed python 2.7.8 on Ubuntu 14.04 then I installed greenlet and gevent but when I want to run a .py file: sudo python proxy.py terminal shows :please install python-gevent but I have ...
1
vote
1answer
14 views

How can I convert a ready Python project into DEB

I am using package guide of Ubuntu (http://packaging.ubuntu.com/html/packaging-new-software.html), but I am stuck in compilation stage. I can compile .deb using dpkg-buildpackage -rfakeroot -uc -us ...
19
votes
4answers
55k views

How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu? I tried doing sudo apt-get install python-imaging but now when i run python selftest.py (a script I got from somewhere on the ...
0
votes
3answers
86 views

How do I install graphics.py on Ubuntu 14.04?

I need to install graphics.py for class. How do I do that, and how do I install other Python modules?
0
votes
1answer
107 views

How can install python-dev for 2.7.8 in 14.04 off apt-get?

I have tried this and this and this and this Well nothing works with me, i got my amd64 system, 14.04 up and runnig, as I try to install wagtail, a django cms, i get the error. pysass.c:4:20: ...
11
votes
4answers
38k 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? ...
2
votes
4answers
1k views

Is there any way to make a windows version of my python/gtk3 apps?

I've recently been doing quite a bit of coding using quickly and GTK 3. Its great and i'm happy with some of the results, but now i'd like to share my apps with people running windows or mac. Is there ...
0
votes
0answers
47 views

fresh install, python-software-properties unmet dependencies

attention: This might be more a question for "gis.stackexchange" but it is Ubuntu-related Geonode 2.0 is available for Ubuntu 12.04 but not for Ubuntu 14.04. According to the docs it should be ...
0
votes
0answers
21 views

anki issues how to make work

Hi further to my question ealrier Below is the error message I get from my computer when I try to use Anki (2.0.28) Today, I have ascertained that it is my computer and not the files for anki which ...
0
votes
2answers
52 views

Do I need to install anything else? [closed]

I am a new Linux user I just swapped over from Windows. Well rather I'm dual booting but plan to use Ubuntu as my primary OS from now on. I just installed Python 2.7.8 and in the thread that I read ...
0
votes
1answer
444 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 ...
1
vote
1answer
24 views

How can I take a textbox text entry and make it a variable?

I am having trouble with Python and would like to have some help. I am making a apt GUI 'front-end' with a nice UI. def on_textbox_changed(self): self.instvar = ...
1
vote
1answer
52 views

Undo apt-get remove --purge

I wanted a fresh install of Python and ran sudo apt-get remove --purge python. Apparently it has killed almost everything I had installed in my system. Looking at the history.log I guess I could ...
4
votes
1answer
63 views

python GUI frameworks that support touch devices

Hello everyone I want to know what is the best GUI framework for python that supports touch I've been searching couple of hours and this are results which I found: PyQt5 I heard for Qt and I know ...
0
votes
1answer
130 views

installing python-appindicator in 13.10

I'm trying to install python-appindicator in Ubuntu 13.10 but I'm receiving not found error: E: unable to locate package python-appindicator How can I install python-appindicator in 13.10 ?
0
votes
1answer
60 views

How do I run python code in ubuntu 14.04 [duplicate]

I'm learning python so I may get my foot in the door for a programming career. I'm using the gedit text editor to write the code, however I don't know how to execute the code on ubuntu. If anyone is ...
1
vote
2answers
250 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 ...
0
votes
2answers
2k views

How to install this file with Python?

I want to install this file: cvxopt in my Ubuntu 13.04. But I got the following error message: running install running build running build_py running build_ext building 'base' extension ...