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
47 views

PDF viewer that can be controlled programmatically (via dbus, pipe, etc)?

Is there a PDF viewer that I can control from a Python program, via dbus, a pipe, or something similar? I have a program for presentations that displays my own notes while displaying a PDF on a ...
1
vote
2answers
29 views

Which Ubuntu package provides the pypi future package?

Which ubuntu package would correspond to the following package at pypi: future (not futures or concurrent.futures) https://pypi.python.org/pypi/future ...
0
votes
0answers
95 views

How to exit from uwsgi server process

I'm trying to set up uWSGI for django using http://adambard.com/blog/start-to-finish-serving-mysql-backed-django-w/ and the tutorial at ...
4
votes
2answers
360 views

Python.h found by locate but not by GCC

I just wrote a simple C executable to check if Python.h is working or not #include<Python.h> #include<stdio.h> int main() { printf("this is a python header file included programm\n"); ...
0
votes
4answers
104 views

How do I run Python code as a script? [duplicate]

I need help running python in ubuntu I can run python without a problem in my terminal but when I create a .py file I can't get it to run.
1
vote
2answers
235 views

Can't get IPython to start: “ImportError: cannot import name start_ipython”

I'm trying to start IPython from the terminal. I input: ipython into the terminal and I get this output: Traceback (most recent call last): File "/usr/local/bin/ipython", line 4, in ...
0
votes
0answers
20 views

System-wide text replacement similar to AutoHotKey

AutoHotKey has this text-replacement feature: ;bullet ::_bullet::• ;disapproval ::_dis::{U+0CA0}_{U+0CA0} ;lenny ::_lenny::( {U+0361}{U+00B0} {U+035C}{U+0296} {U+0361}{U+00B0} ) I am trying to ...
0
votes
1answer
36 views

Adding git repositories to python 3 interpreter

I am working with Ubuntu 14.4 Trusty Tahr LTS on EC2. I want to use the Python 3.4.0 interpreter which is installed by default. I want to be able to be able to add git repositories to be accessed by ...
0
votes
1answer
183 views

How to set python 3 as default interpreter in ubuntu 14.4

I am working with ubuntu 14.4 LTS on EC2. I want to change the default python interpreter from python 2.7 to 3.4.0 which is installed by default. When I do: /home/ubuntu$ which python ...
2
votes
1answer
122 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
11 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
80 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
93 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
50 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?
14
votes
6answers
3k 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
59 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
53 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
360 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
186 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
65 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
89 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
33 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
259 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
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
23 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
79 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
80 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
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
94 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
166 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
21 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
53 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
59 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
412 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
49 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
29 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
125 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
53 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
378 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
360 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
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 ...
0
votes
0answers
38 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
914 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
43 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
221 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, ...