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
7answers
2k views

Wanting to start development for Ubuntu (and most Linux distributions in general), which is suitable? Python or Vala? [closed]

I'm a computer science graduate, and learned languages like C, C++, C# and Java. Though I have more experience with Java. I want to develop for Linux and I'd prefer to develop for GNOME, I'm confused ...
0
votes
1answer
289 views

How is “chromium-chromedriver” package used?

Firefox selenium driver seems to be crashing (perhaps because I'm on Firefox-beta ppa?): >>> from selenium import webdriver >>> webdriver.Firefox <class ...
0
votes
1answer
36 views

Two versions of Python in my Ubuntu 12.04 [duplicate]

I am facing a weird problem. If I have just installed python 2.7.6 in addition to already present python 2.7.3. But this is giving me some weird issues. Such as even though my system has pyqt4, ...
2
votes
1answer
100 views

Ubuntu SDK: How can I use PyQt for developing Ubuntu Touch apps?

I've heard that it's possible, can you give me some pointers on how to do that?
4
votes
1answer
5k 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 ...
1
vote
0answers
22 views

DistutilsExtra problem

I have installed Python 2.7, setuptools and python-distutils-extra. When I try to run ./setup.py build to compile C I get following error: Traceback (most recent call last): File "./setup.py", ...
0
votes
0answers
29 views

Appplication development [duplicate]

Can anyone tell me how can I get information about where to find course or courses for Ubuntu phone application development?
0
votes
0answers
24 views

Lost Desktop Panels after removing Python

So basically, I performed the aptitude or remove command on python because the work that I deal with can only work with python 2.7.3 and I am using 2.7.8....and it got me into lots of other broken ...
0
votes
0answers
81 views

How to set IDLE3 to open .py files 14.04

Every page I've found thus far that answers this question has been unhelpful. In mimeinfo.cache I have the following line: text/x-python=idle-python3.4.desktop; And in ...
0
votes
1answer
88 views

Could not find Numpy Scipy in IDLE

I am given Ubuntu 14.04 from work even though I always used windows in the past. I installed python-numpy and python-scipy from the Ubuntu software center. From the look of it, I think I already ...
0
votes
0answers
32 views

ConVirt won't run. Requirement.parse('SQLAlchemy==0.5.6'))

ConVirt 2.5 on Ubuntu Precise won't run. Tail line of the error is: File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 588, in resolve raise VersionConflict(dist,req) # XXX put more ...
1
vote
1answer
89 views

Creating GTK+ 2 key press event

I wrote a small GTK+ 2+ program (in Python) that responds to a button click by sending a gtk.Event to simulate a key press. It works fine on every version of Ubuntu that I have including Kubuntu, but ...
0
votes
0answers
29 views

Running python file that uses charm cryptography library [duplicate]

Hi I am trying to run a python file that uses charm cryptography library.I have already installed charm library and its corresponding libraries. When i run this .py file i am getting this error ...
0
votes
0answers
26 views

detached screen sessions terminates after some time

I have a small netbook with xubuntu 14.04 installed. I am using it to log some data, using python scripts. I run those python scripts in detached screen sessions. But those detached screen sessions ...
-1
votes
1answer
104 views

What is Python 3.4 lib filename?

I have Ubuntu 14.4. I want to load Py3.4 library (Lazarus code) but I don't know .so file name. i see several files by find-file: libpython3.4.so libpython3.4m.so libpython3.4m.so.1 (each file in ...
0
votes
0answers
179 views

Ubuntu 14.04 Anaconda Install Help

I started using ubuntu not to long ago. I am trying to install Anaconda on my linux distribution. Am following the instructions below: http://docs.continuum.io/anaconda/install.html#linux-install ...
0
votes
0answers
22 views

How can a button link to an action in Glade involving a text box?

I am developing a Ubuntu program with Glade and I would like the program to interact with text input from the Text Entry widget when the button widget is pressed. How would I accomplish this? On a ...
1
vote
0answers
57 views

Xvfb and scripts on Ubuntu Touch/Phone

Will I be able to run "xvfb" on Ubuntu Touch/Phone? I've read that you can use apt-get and use bash. So will I also be able to run Python scripts which use "Selenium" and "Xvfb" for headless Firefox ...
0
votes
0answers
63 views

How do Install Python 32 bit on Ubuntu 64 bit using Pyenv

How can I install 32 bit version of Python 2.7 using Pyenv, on my 64 bit Ubuntu.
0
votes
1answer
401 views

“No module named 'pysqlite2'” Error

I am trying to run server,but I get this error: (Demo)user@mylaptop:~/Demo/Demo$ python manage.py runserver Traceback (most recent call last): File ...
1
vote
1answer
462 views

pip raises ImportError: cannot import name HTTPSHandler

After installing the python-pip package in Ubuntu 14.04.1 I get: $ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', ...
1
vote
1answer
538 views

PYTHONPATH not set up before rc.local executed

I've got a Python script that I want to be started on boot. Putting a command in rc.local attempts to run the script, but fails because the script can't find the libraries on which it depends. These ...
0
votes
1answer
30 views

Views.py doesn't exist, however, the project runs

I want to start a new Django project, for doing that, I run my server and it was going right and OK and it would be browsed well , but when I would go to my project directory there is no views.py ...
2
votes
1answer
1k views

Problem importing a module (mpl_toolkits.basemap) in Python

So the issue is this: I'm attempting to learn how to plot maps with Python, using shapefiles. There are plenty of examples available on the internet, but just about all of them start with something ...
0
votes
0answers
52 views

how to use crontab to execute i2cset commands

I am trying to execute a bash script that displays the IP address on a lcd display , on startup .. I want it to execute so that the user knows the ip address as soon as the user starts the linux ...
1
vote
0answers
133 views

Configure Django on Ubuntu Apache subdirectory

I am running apache2 server on Ubuntu 14. Now I want to configure Apache to work with mod_wsgi to run Django on a subdirectory of a domain such as www.abc.com/lab, but I always fail to do that. I ...
2
votes
1answer
1k views

“OSError: [Errno 13] Permission denied” error

I am trying to create a virtualenv environment but I am encountered by this error: user@mylaptop:~$ virtualenv -p ~/Public/Programming/project1/ Running virtualenv with interpreter ...
0
votes
1answer
55 views

How to use i2cset to display the ip address

I am trying to use the i2cset command to display characters on my LCD screen. For example i2cset -y 1 0x3e 0x40 0x49 displays I and so on. Now I want to try and display my ip address. I had posted ...
0
votes
1answer
399 views

ValueError: need more than 1 value to unpack

When I run this code: ~/cdec/training/mira/mira.py -d dev.lc-tok.es-en.sgm -t devtest.lc-tok.es-en.sgm -c cdec.ini -j 2 I receive this error message: File ...
1
vote
0answers
46 views

Caffeine crush on start

Caffeine crushes on start: valery@valery-P50-A-K4M:~$ caffeine Traceback (most recent call last): File "/usr/lib/python3/dist-packages/Xlib/support/unix_connect.py", line 89, in get_socket ...
-1
votes
2answers
149 views

how to make python manage.py runserver still running if terminal close? [duplicate]

python manage.py runserver 0.0.0.0:8000 how to make this command running if terminal close for now i use screen and it works any other way to do that? i mean for production how to link it to ngix or ...
0
votes
0answers
44 views

Update pymongo version

I installed pymongo through source(cloned from git repository). Pymongo got installed for python 2.7.1 since my default python version was set to 2.7.1. Later I have added an alias to .bashrc file ...
2
votes
1answer
514 views

install Flask as a virtual environment whith virtualenv.py in 12.10

I am trying to follow this Tutorial to learn flask. I have never used python before and a relatively new to linux too so sorry if I am asking a very basic question. I have installed python version ...
59
votes
3answers
213k 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
136 views

Python Pip Permissions

I deleted Python on 14.04, woops! It was 4am and I can't remember why I was doing this. So I re-installed it and all and it works, except for some of that good old virtualenvwrapper. I've searched ...
4
votes
1answer
2k views

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most ...
0
votes
1answer
234 views

OSError: [Errno 101] Network is unreachable

When doing a network broadcast from Python, I get this: OSError: [Errno 101] Network is unreachable My code is as follows: def send(ip, message): sock = socket.socket(socket.AF_INET, ...
1
vote
0answers
72 views

Feedback for OpenStack installation instructions [closed]

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
2answers
179 views

how to check a switch or router using SSH or telnet in python

now have to hard code telnet or ssh, how to auto know whether it is using ssh or telnet and then decide to use ssh or telnet #!/usr/bin/python import getpass import pexpect import sys import os
1
vote
0answers
49 views

Two Pythons intalled and problem importing numpy [duplicate]

While I was struggling to understand why I couldn't import NumPy I think that I faced another problem. During the numerous attempts and through various different "solutions" I think that I end up ...
6
votes
2answers
52k views

How to find python installation directory on ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path on ubuntu shell ? Is there any way I can let shell ...
1
vote
1answer
383 views

Plotting with Matplotlib in Python 3 pylab: Tkinter and Qt FontManager errors

I'm trying to use pylab (i.e., $ ipython3 --pylab) in Python 3 on Ubuntu 14.04. I'm running into the same error regardless of whether I use the Tkinter or Qt4 backends. AttributeError: 'FontManager' ...
7
votes
1answer
131 views

How to get the package description using python-apt?

I'm trying to create a graphical program to deal with packages easily for end-users. However, I'm facing a problem in retrieving the package's description beside some other information. I've seen the ...
0
votes
0answers
60 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
110 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
1answer
188 views

Unselect the Gtk TreeSelection when cleraing the TreeStore model

I followed the python-gtk-3-tutorial and implemented a simple file browser using Gtk TreeView. It works pretty well, but but my problem is, that by the time of the initialization the first item in the ...
1
vote
0answers
45 views

Time format operator using logging in python

I need to know the time delta between 2 events. I'm using logging in a script like this: format='%(created)f % (message)s'. This returned me epoch time in seconds BUT in my case time delta ...
0
votes
1answer
34 views

how to create a debian package to install a python module

I came across this answer: How do I create a deb package for a single python script? Which is extremely helpful and well detailed. I have everything except the install file. In that post the user ...
0
votes
1answer
203 views

Can't call wget from Python script [closed]

I am writing this script that executes a bunch of commands one of which is to download some packages from a certain url. Following is my script #! /usr/bin/env python #! /usr/bin/env bash import os ...
2
votes
1answer
1k views

How to Uninstall the Ubuntu SDK?

After Installing the Ubuntu SDK v1.009 on ubuntu 12.04.2 LTS, the computer started behaving in a very unstable manner. Also note that Installing the Ubuntu SDK also installs a lot of test libraries ...