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

0
votes
0answers
120 views

Missing bits for some modules during installation

I install Python 2.7.9 from compiling its source on 64-bit Ubuntu 14.04. Running make seems without error, but it also says that Python build finished, but the necessary bits to build these modules ...
1
vote
1answer
203 views

What does “.bashrc or prepend the Anaconda install location” mean?

I installed Anaconda from root, after completion of installation this message was displayed on terminal screen: Python 2.7.8 :: Continuum Analytics, Inc. creating default environment... installation ...
1
vote
0answers
36 views

Best way to port PyScripter+GTK programs from Windows to Ubuntu

I have a bunch of small python graphics programs that I developed with PyScripter and GTK on Windows. I was hoping to switch to Ubuntu, but PyScripter is not available in Linux, and Spyder does not ...
0
votes
1answer
126 views

software-properties-gtk no working

Hi Guys i am a newbie at Ubuntu and am having a problem... i managed to get everything working like a dream including, unfortunately after my latest upgrade/update, my software-properties-gtk ...
0
votes
1answer
28 views

Does Spyder work with Python GTK in Ubuntu?

Does Spyder work with Python GTK in Ubuntu? Or is Spyder Qt only?
1
vote
2answers
3k views

Is it possible to install Python 3.x in 14.04 LTS, or upgrade from Python 2.7.6 to 2.7.8?

I'm looking to pick up some programming skills and after looking into it a bit, I came across an article that recommended that I learn Python as a way of getting started at programming before moving ...
0
votes
1answer
529 views

pygame installation for ubuntu 12.04 LTS

Can anyone suggest me how to install the pygame for use in the construction of the graphics games using the python?
0
votes
3answers
105 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 ...
1
vote
2answers
39 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 ...
1
vote
2answers
58 views

Change name of executable file when using chmod +x

I have python file my_script.py When I run: chmod +x my_script.py I end up with two files that are called my_script.py, one executable file and one python file, when I try to get the size of the ...
1
vote
1answer
162 views

Make a Python program executable from its icon

I wish to python programs execute in a window from clicking an icon. This is day one of teaching myself and type of coding and Ubuntu so over-explantion and extra detail is appreciated. Code example ...
19
votes
7answers
76k 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
1answer
169 views

Problem with org.freedesktop.Geoclue.Providers.Hostip, running Qreator on Xubuntu-14.04

I installed Qreator using apt-get on Xubuntu-14.04: $ sudo apt-get install qreator But the application fails to start! When I try to run it via Terminal, the following error messages are printed ...
3
votes
1answer
2k views

error importing numpy into python

Hello I know there are a lot of posts already about this but after reading through previous posts I still have not found a solution to my issue. To install python I followed the steps of this post ...
1
vote
2answers
76 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 ...
-2
votes
1answer
52 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 ...
0
votes
0answers
19 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
106 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 ...
1
vote
2answers
441 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
42 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 ...
0
votes
0answers
102 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 ...
3
votes
2answers
848 views

How to let an icon in the launcher wiggle?

Trying to let my python application inform the user by wiggling or shaking its icon in the launcher, I found: Wiggling seems to be the "urgent animation": How can I change the wiggle time of ...
2
votes
0answers
50 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 ...
14
votes
2answers
13k views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
0
votes
1answer
995 views

Cannot compile GDB7.8 with Python support

I am trying to install GDB7.8 with Python support. From the source folder, I am running ./configure --with-python When I did tab-complete from --with- I did not see Python in the list. But when I ran ...
2
votes
2answers
666 views

Can't find Spyder or Ipython Notebook applications after Anaconda install (xubuntu 13.10)

I installed Anaconda 2.7. I can run spyder and ipython notebook from the terminal but I can't find the applications at all from the desktop. Is there a specific place I should look? Should I just ...
2
votes
1answer
170 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
34 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
1answer
54 views

Change auto-renaming in guake

Is there any way to remove path from tab name in guake? Usually I open several hosts in different tabs and I rename them all according to the host name. It is annoying to make the same action on every ...
0
votes
1answer
223 views

Error while trying to install llvmlite on Ubuntu 14.04

I am trying to install llvmlite on my ssystem in order to install numba. I have got an error when I did python setup.py build, the first error that appear is assembly.cpp:3:35: fatal error: ...
0
votes
4answers
131 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
3answers
7k views

How to add a Python module to syspath?

Hi i have a file structure like this Folder Common foo1.py TestFolder foo2.py I want to import in foo2.py foo1.py. I tried but it doesn`t work on Ubuntu: ...
0
votes
2answers
277 views

Extracting specific data in a file using regex [closed]

Following info i want to extract from a file which has different version,release date,CVE number. Can anyone show me how to retrieve that information using regex..? Release date: March 13, 2007 ...
1
vote
1answer
349 views

Extracting URL links from a File

Following code is to extract /support/security/*.html links from a file(urlfile contain about 1000 links) to urlsort file using regex,But i'm weak in regex can anyone show me how to do that...? ...
1
vote
4answers
20k views

Reading all files from a directory [closed]

Following code is to read all files in download directory,but when i execute this code it won't print(display), what is wrong with this code..? import glob path = '/home/mypc/download/*.html' ...
2
votes
1answer
2k views

How to pass url as variable to wget..?

I am trying download a page using wget by passing variable which holds url using python,but it didn't work. url=http://www.example.com/support/security/ os.system("wget -P download url") can ...
2
votes
1answer
66 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 ...
0
votes
0answers
178 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 ...
5
votes
2answers
476 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
0answers
129 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
1answer
123 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 ...
6
votes
1answer
506 views

pyvenv still broken on 14.04.1?

meow@te:~# pyvenv-3.4 v Error: Command '['/meow/v/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 I thought it was fixed. I've done update and ...
2
votes
1answer
133 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
1answer
49 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 ...
1
vote
0answers
34 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
606 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 ...
0
votes
0answers
19 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 ...
7
votes
3answers
13k views

easy_install pygame not working due to “linux/videodev.h: No such file or directory” error

Trying to install pygame through easy_install in Ubuntu 12.10 and the errors it gives me this: Continuing With "setup.py" warning: no files found matching 'readme.txt' no previously-included ...