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

Getting Tweepy to run [closed]

I can't get tweepy to work. What am I doing wrong?: nuc@nuc:~$ python Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type ...
0
votes
1answer
39 views

linux detect interface promiscuous mode in my network

how can detect and get the name or mac adress or ip adress of any device in my network that the mode of its interface is promiscous script python. I need help, thanks.
0
votes
4answers
2k views

Problem with installing IPython on Ubuntu 14.04 LTS

When I used pip install ipython or pip install "ipython[notebook]" I get the following error: Downloading/unpacking ipython Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB ...
24
votes
2answers
25k views

How to set up and use a virtual python environment in Ubuntu?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly takes care of permission issues. But what is the easiest way ...
0
votes
1answer
40 views

make my machine invisible for ping [duplicate]

I search solution to pevent my machine form the attack arp poisoning. I believe to make my device invisible for this haker If they want to ping my machine they have any reply. I don't khnow how I ...
0
votes
1answer
198 views

Good to replace my python 2.7.6 with python 2.7.9? [duplicate]

My Ubuntu is 14.04, which has Python 2.7.6 by default. The latest Python 2.x is 2.7.9. I am thinking whether to install 2.7.9 from its official site, just in case that something is available in 2.7.9 ...
2
votes
1answer
107 views

How to install pip and a python package for self installed python?

/usr/bin/python points to /usr/bin/python2.7, the old version 2.7.6 python used by my OS 14.04. For the old python, I wanted to install module regex: $ sudo python -m pip install regex ...
0
votes
2answers
53 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 ...
0
votes
0answers
39 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
95 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
21 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
101 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
21 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
504 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
82 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
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 ...
1
vote
2answers
38 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
81 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
72k 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
157 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
65 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
43 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
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
72 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
200 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 ...
2
votes
0answers
37 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 = ...
0
votes
0answers
26 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
81 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
831 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
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 ...
12
votes
2answers
11k 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
814 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
545 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
163 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
28 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
49 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
186 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
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
3answers
5k 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: ...
3
votes
5answers
11k views

How to install Python package pyzmq properly?

How to install Python paackage pyzmq properly? I searched in Synapic package manager in vain.
0
votes
2answers
261 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
323 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
18k 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
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 ...
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 ...