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

2
votes
1answer
132 views

Trying to run a .py script in terminal, but i get this error

#!/usr/bin/python2. import os import sys import subprocess from PyQt4.QtCore import * from PyQt4.QtGui import * import socket import struct import random import string import signal import hashlib ...
0
votes
0answers
17 views

Is it possible to use the keyring with Ubuntu Server

Is it possible to use the keyring features with Ubuntu Server? I'm implementing the following Python package and it falls back to base64 encoded filesystem storage because there is no secure storage ...
0
votes
0answers
25 views

Always receive same Install Error

I'm trying to install visual python by running the following line on bash: sudo apt-get install python-visual Then I receive the following error: Errors were encountered while processing: ...
0
votes
0answers
123 views

error: Idle Subprocess didn't make a connection. Either Idle can't start a subprocess or personal firewall software is blocking the connection

When i run idle it returns the above stated error. It happened after I installed python 3.4. both 2.7 and 3.4 are giving this error.
1
vote
0answers
124 views

Running Python script in Abaqus in Ubuntu

I am running a python script through the scripting interface in Abaqus. It's a basic script that writes a value from each element from the abaqus simulation into a a text file. The text file is then ...
0
votes
2answers
43 views

I have at least 4 python interpreters on my PC, now what?

My ubuntu is 14.10, and I have upgraded it from 12.10 I think. I just realized there are at least 3 python interpreters on my machine. For a mooc, I have installed a fourth one, Enthought Canopy ...
0
votes
0answers
22 views

Error in Installing RevKit

@ubuntu:~$ sudo apt-get install build-essential cmake python-dev ipython python-qt4python-numpy Reading package lists...Done Building dependency tree Reading state information...Done Package ipython ...
0
votes
1answer
69 views

Change default python version in idle

So, I'd like to have Python 2.7.6 when I open the idle (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5). How can I do that?
15
votes
6answers
4k views

How do I check whether a module is installed or not in Python?

In terminal, after I start Python, how will I know what are the modules present in python? Suppose I need to learn the modules NumPy and SciPy. How will I install it if it is not installed? How ...
0
votes
0answers
77 views

E: Package 'python-numpy' has no installation candidate

When running sudo apt-get install python-numpy I am getting this error : Reading package lists... Done Building dependency tree Reading state information... Done Package python-numpy is not ...
1
vote
0answers
61 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
11
votes
3answers
368 views

Is there a Perl or Python script I can write which can minimize the Gnome terminal window?

I'm on Ubuntu 14.04 with the old-style GNOME setting from the GDM. (I don't like the new Unity interface.) Is there a way I can create a command that I can type in my terminal window to minimize it? ...
0
votes
1answer
359 views

How to install python-gpgme ubuntu 14.04

I installed Dropbox but when I run it. I get an error saying: In order to use dropbox you need proprietary daemons. Install python-gpgme. Then, I headed over to installation of that python module ...
0
votes
2answers
79 views

open a folder with several files in python [closed]

How can I open a folder with several files in it? I tested this codes but it returns an strange answer. import os for ZebRa in os.listdir(os.getcwd()): num_words = 0 for line in ZebRa: ...
0
votes
0answers
92 views

Not able to install NLTK in ubutnu 14.04

I got following error while installing NLTK when i run this command sudo pip install -U nltk Exception: Traceback (most recent call last): File ...
0
votes
1answer
37 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, ...
0
votes
1answer
364 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 ...
1
vote
0answers
28 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
26 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
82 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
117 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
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
28 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
132 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
207 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
26 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
64 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
84 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.
1
vote
1answer
568 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', ...
0
votes
0answers
59 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 ...
0
votes
1answer
31 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 ...
1
vote
0answers
149 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 ...
0
votes
1answer
65 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
442 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 ...
0
votes
1answer
507 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 ...
0
votes
0answers
33 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
0answers
50 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 ...
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
0answers
53 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 ...
0
votes
1answer
283 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
76 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 ...
-1
votes
2answers
183 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 ...
-1
votes
2answers
48 views

faced problem in regex

i am having a text file which contain some queries like below. leptop pencil group leptop book gruop buk grop laftop pensil laptop pancil laptop bag bok from this i just want query which start with ...
0
votes
2answers
218 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
54 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 ...
1
vote
1answer
166 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 ...
7
votes
1answer
139 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 ...
1
vote
1answer
467 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' ...
0
votes
0answers
129 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 ...