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
1answer
21 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
14 views

Feedback for OpenStack installation instructions [on hold]

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 ...
-3
votes
0answers
16 views

i had installed devstack on ubuntu. 1st it loaded everything correctly. but now i am not able to load any instance. i am getting the following errors:

Environment: Request Method: GET Request URL: http://192.168.43.201/admin/images/ Django Version: 1.6.10 Python Version: 2.7.6 Installed Applications: ['openstack_dashboard.dashboards.project', ...
-1
votes
2answers
30 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?
-1
votes
1answer
28 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
34 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
25 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
21 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 ...
-1
votes
1answer
34 views

How to run gufw in a GUI? [on hold]

i need to add Gufw to IDE "Like: pycharm " to debug it? How i can start ? Iam new in ubuntu
6
votes
1answer
55 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
33 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
26 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 ...
2
votes
0answers
25 views

How can I make perf script -g python work?

After installing perf with the linux-tools-common package, I still can't use the python/perl scripting abilities. $ sudo perf script -g python Python scripting not supported. Install libpython and ...
1
vote
0answers
27 views

Time format operator using logging in python

I need to know the time delta between 2 events. I'm using logging in a script like this: format='%(created)f % (message)s'. This returned me epoch time in seconds BUT in my case time delta ...
0
votes
1answer
32 views

how to auto send predefined password without prompt 'Password :' and without need to manual input password [on hold]

how to auto send predefined password without prompt 'Password :' and without need to manual input password #!/usr/bin/python import getpass import pexpect import sys import os ## Logs into device ...
0
votes
1answer
17 views

how to create a debian package to install a python module

I came across this answer: How do I create a deb package for a single python script? Which is extremely helpful and well detailed. I have everything except the install file. In that post the user ...
0
votes
1answer
48 views

How to keep record of every action and command executed? [closed]

I there a way to see the terminal code for every action taken? Something like a listener to know what goes on behind the scenes for every action I take. Example: "selected this element, clicked on ...
0
votes
1answer
47 views

An ubuntu newbie needs help on running python [closed]

I have been using Windows through out my life and but I recently decided to try out Ubuntu, so I downloaded Ubuntu desktop 14.04 and I have successfully installed it. Now I want to start learning the ...
0
votes
1answer
35 views

Can't call wget from Python script [closed]

I am writing this script that executes a bunch of commands one of which is to download some packages from a certain url. Following is my script #! /usr/bin/env python #! /usr/bin/env bash import os ...
0
votes
0answers
44 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
1answer
39 views

How to install sympy for Python 3.4

I installed the Python scipy stack using the following command taken from here sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy ...
0
votes
0answers
17 views

unable to save setting python in Ubuntu use editor sublime text 2?

I installed python 2.7.9 with framework Django 1.7. I try to change databases in settings.py but cannot save (unable to save mysite/mysite/settings.py) how to solve this problem?
0
votes
0answers
13 views

Query screensaver status from Python e.g. via dbus

I want to do this, but in Python: Is there a programmable way to tell if the screen is locked? I know I can do it by launching a process: gnome-screensaver-command --query and I know I can track ...
0
votes
0answers
14 views

Ubuntu 14: Problem in wxpython html2

I found a bug in Ubuntu when I try to use the control html2. I can found a workaround, in a t.py file I have this lines: import wx import wx.html2 as webview in a by default installation I get ...
0
votes
0answers
13 views

Screenlets Infopanel - how do I get external / internal IP to work in Python?

So occasionally my router does something stupid and changes one or more of my IP addresses on my local net. Since I have a scripted synergy setup tunneled through SSH, this is a pain in the 6 o'clock. ...
0
votes
1answer
24 views

Install python package with python

I will maybe repeat the same question but, when I read "How to intall python packages on Ubuntu" everybody say to "Enter python install file.py" or "Enter sudo" but when I follow these instructions, ...
0
votes
0answers
16 views

How to run .py scripts with double clikcing [duplicate]

I have scripted a screenshot program with python. My problem is i am supposed to run it from ssh via python filename.py or via ./filename.py command. I gave chmod +x permissions but whenever i ...
0
votes
0answers
29 views

How to create a web2py launcher icon? [duplicate]

I have downloaded web2py which is sitting inside: ~/web2py/web2py.py How can I create a launcher for this?
0
votes
1answer
51 views

Python - AttributeError with hashlib: no such attribute: “openssl_md_meth_names”

I don't know why this is happening, but after some crazy recovery from installing python from source, when anything imports hashlib, it comes up with something like this error: Traceback (most recent ...
1
vote
0answers
17 views

problem installing imagehash ubuntu 14.04

I wanna install python package named imagehash I tried to install with pip but I get exception: Requirement already satisfied (use --upgrade to upgrade): imagehash in ...
0
votes
1answer
28 views

How to uninstall redundant python instance? [duplicate]

When I execute: $ which -a python /usr/local/bin/python /usr/bin/python This bothers me because execute python directly will execute /usr/local/bin/python, but it can't link to correct ...
0
votes
0answers
19 views

Display a quote in ubuntu 14.04

I recently installed Ubuntu 14.04 and thought I would add a quote on desktop which displays it all the time. I found the following link and liked the second option (by Python User) Is there any way ...
0
votes
1answer
24 views

Command line python is different from Python IDLE

I have installed sklearn on Ubuntu 14.04. However, when I execute a script via the command line which imports sklearn, I get an import error. Running the same script with Python IDLE yields no error ...
3
votes
2answers
249 views

Run the file in folder called `python` not the python interpreter

I have a folder. Inside of this folder is an executable called python. When I try to run python from the terminal it instead runs the python interpreter. How can I run the file called python?
2
votes
1answer
29 views

What is the difference between pip and conda?

I know pip is a package manager for python packages. However, I saw the installation on iPython's website use conda to install iPython. Can I use pip to install iPython? Why should I use conda as ...
2
votes
1answer
149 views

Problem with executing .py script

I am a complete newbie in terms of using Ubuntu and I have stumbled upon this problem: I am trying to run this script: https://gist.github.com/mjkoo/0eb70888b6085b3f65f5 (it's basically a tool that ...
0
votes
1answer
55 views

How to install pyzmq for iPython Notebook in a Python 3 virtual environment?

I wanted to use iPython Notebook in Python 3 on Ubuntu 14.04. Because I have both Python 2.7 and Python 3.4 installed on my system--and for other implementation-specific reasons--I decided to use a ...
0
votes
1answer
16 views

how do install python 2.7.2 on ubuntuk with postgresql? [duplicate]

I want to install python 2.7.2.tgz on Ubuntu, downloaded from http://python.org/download/. so, what the next step?
1
vote
0answers
47 views

How can I add a custom python indicator to the unity-greeter login screen?

I've installed a custom indicator called PRIME Indicator and it shows up in the top panel (next to date time etc) after I login. I would like to show the indicator before login on the unity-greeter ...
0
votes
0answers
11 views

Errors while installing pychemqt

@ http://sourceforge.net/projects/pychemqt/ The readme file contained in the package listed following dependencies python 2.6 qt 4.7 matplotlib 0.99 numpy 1.4.1 reportlab 2.4 freesteam 2.0 ...
-1
votes
1answer
55 views

how to update python version on ubuntu 14.10

I'm trying to figure out what version of python i have installed, and also upgrade it to the latest. When I go to a command prompt and check, it looks like I have an old version of python installed. ...
0
votes
0answers
111 views

AttributeError: 'module' object has no attribute python

I am struggling with compiling python 2.7.9 from source and have been advised to ask this question here. While installing python 2.7.9 following the steps described here the following errors ...
0
votes
0answers
52 views

Python error while adding repository

Whenever i try to add repository , the following error occurs. I have newly installed ubuntu and my sources.list.d folder is also present. Please help me with this.. Error:: Traceback (most recent ...
1
vote
0answers
18 views

AttributeError: type object 'IP' has no attribute 'SubnetSet'

I'm trying to install OpenVPN access server on a virtual server with Ubuntu 14.04 OS. But I get this error: Use local authentication via internal DB? > Press ENTER for default [no]: Traceback ...
-1
votes
0answers
22 views

how correctly install ua-parser and user-agents

i want to install ua-parser and user-agents on ubuntu and use these module in my python application . i installed ua-parser and user-agents via pip install ua-parser user-agents . this is my code : ...
2
votes
2answers
42 views

Certificate issues when using Landscape python API.

can anyone help me with some certificate issues..? I'm using Landscape, and trying to use the python API, but I get a CA mismatch, but I've downloaded the .pem, and pointed the script to the location ...
1
vote
0answers
38 views

How do I bundle a python interpreter in my qml app?

How do I bundle a python interpreter in my qml app? I can not use the system's python interpreter due to the nature of Ubuntu’s new Click Packages, and App-Armour. How do I do this?
2
votes
1answer
39 views

Python Installation in Downloads Directory — Better Location?

I installed Python following the directions in the accepted answer to "How do I install python 2.7.2 on Ubuntu?". Doing this involved "wget"ing a Python-2.7.9.tgz file in my ~/Downloads/ directory, ...
1
vote
1answer
74 views

python 2.7.9 backport to trusty (14.04)

I try to backport Python 2.7.9 from vivid to trusty but when launchpad build this pakage there is an build error. I create my backport : backportpackage -d trusty -u ppa:splanquart/python ...
0
votes
0answers
12 views

Mapping a music file to a discrete 2D domain/2-D array in Ubuntu

I wish to take music file as an input. The output should be a scalar field on a 2D domain or a Vector field on a 2D domain, which I can store as an array. We have seen mapping of music to a 2D domain ...