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

1
vote
1answer
27 views

Where can I find documentation about the python charm helpers?

I would like to have up-to-date documentation about writing charms in python.
-2
votes
1answer
47 views

How do I specify a CIDR IP range to nmap in python?

I have this function: if subnet==16: nm = nmap.PortScanner() a=nm.scan(hosts='172.16.2.0-256', arguments='-sn') for k,v in a['scan'].iteritems(): if ...
1
vote
2answers
68 views

Kill processes by name

I have got python http server. OS - ubuntu server 12.04. Some time i need to kill all python http processes. I use this command sudo killall python But it kills all python processes. Is it possible ...
0
votes
0answers
16 views

Cannot find virtualenvwrapper after installing

I installed virtualenvwrapper like this: sudo pip install virtualenvwrapper I thought I would find it here: /usr/local/bin/virtualenvwrapper.sh but I did not. I am trying to configure it in ...
1
vote
0answers
83 views

Using pip3-installed python 3 packages when apt-installed packages exist too?

I have numpy 1.8.2 installed in /usr/lib/python3/dist-packages (via apt), and the newest version (1.9.2) installed in /usr/local/lib/python3.4/dist-packages (via pip). Both paths are in sys.path (in ...
0
votes
2answers
57 views

How to run two 'python manage.py runserver' commands of two different folder in a single terminal

I have two different python project placed in different folder (project 1 in pydir1 directory, project 2 in pydir2 directory). Every time, I need to open two new terminal and run the python manage.py ...
2
votes
0answers
43 views

Unable to receive the UDP message

I have two PC lets name it EchoPC, and TestPC On the EchoPC a UDP echo server is running. On the TestPC the following server is running: import socket UDP_IP = "" UDP_PORT = 62300 sock = ...
1
vote
2answers
238 views

Python 2.7 ImportError: No module named repository

I'm completely clueless. I uninstalled, and re installed gi and python2.7. Do you guys have any ideas? ~ > /usr/bin/python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type ...
0
votes
0answers
27 views

Shared Anaconda python install on secure internal servers

I work on a small team that does a lot of work based around the Anaconda distribution of Python. We have a few internal "sandbox" Ubuntu 14.04 servers, for running heavy analytic tasks, etc. Instead ...
0
votes
0answers
12 views

How to generate 'alternative' videos for a given video

I'm looking for a fast (script, code, program) way of generating an alternative video for an input video. Alternatives are: added 10% gaussian noise flipped horizontally flipped vertically resized ...
2
votes
0answers
38 views

Is it safe to modify thunderbird mail box from python?

I would like to compare and merge several mail boxes managed by thunderbird (because they contain a lot of duplicated messages). They are in the mbox format. My first idea was to use the standard ...
0
votes
3answers
87 views

How to run a python script automatically in Ubuntu 14.04 on reboot

I am trying to run a command on reboot. So that every time I restart my Ubuntu 14.04 server it should run automatically. It's a python command. /usr/bin/python ...
2
votes
1answer
164 views

Launching finder from python

I wish to input a subfolder name into terminal and have a script launch it in finder. This is my code: import sys import os fullname='/home/ash/caffe/examples/imagenet/train_rest/'+str(sys.argv[1]) ...
0
votes
0answers
30 views

Installing Python Module with Boost

I am trying to install a computer vision program via python setup.py install but it returns /usr/bin/ld: cannot find -lboost_python-mt-py26 Now I run the following command dpkg -l ...
1
vote
1answer
17 views

Building a Python Module Problem

I am having the following issue and am not sure how to fix. I do not know what linking is but I hear it's related to the problem. I'm trying to set up a python module: First I call in the directory ...
0
votes
0answers
84 views

Compiling vim with python support on ubuntu 14.04, no errors and no support

I'm trying to compile vim with support for YouCompleteMe as per the github guide [redacted because no reputation] and I'm having strange results. Vim compiles correctly as best I can tell and doesn't ...
2
votes
1answer
50 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
33 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
119 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
376 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
109 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
294 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
23 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
39 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
259 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
14 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
107 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
100 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
58 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
66 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
56 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
365 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
231 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
69 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
90 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
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, ...
0
votes
1answer
294 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
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
90 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
107 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 ...