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

3
votes
1answer
18 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
11 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
18 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
22 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
18 views

how to auto send predefined password without prompt 'Password :' and without need to manual input password

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

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

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

An ubuntu newbie needs help on running python [on hold]

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

Can't call wget from Python script [on hold]

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
27 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
34 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
15 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
11 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
12 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
20 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
30 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
13 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
23 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
17 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
23 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
247 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
27 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
147 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
41 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
45 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
45 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
104 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
46 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
19 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
39 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
38 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
64 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 ...
0
votes
1answer
31 views

Vim: Supertab not working

I'm trying to make supertab working, it's not working when I press tab, not autocompleting python. Here's vimrc set autoindent set cindent execute pathogen#infect() syntax on colorscheme flattr set ...
0
votes
0answers
29 views

Chrubuntu Python Missing Package? [duplicate]

I have a brand new Chromebook Acer C720, and I had tried to download a game but it was blocked by chrome. So I went ahead to install Chrbuntu through developer mode and did get it installed however ...
1
vote
0answers
29 views

Creating GTK+ 2 key press event

I wrote a small GTK+ 2+ program (in Python) that responds to a button click by sending a gtk.Event to simulate a key press. It works fine on every version of Ubuntu that I have including Kubuntu, but ...
1
vote
1answer
47 views

Setting python IDLE as default editor for python scripts

I'm using ubuntu 14.04 LTS and I have installed both python 2.7 and python 3.4 . I have tried everything here How do I set IDLE as the default editor for Python scripts? but its not working. Can ...
2
votes
0answers
35 views

Is it possible to transform sublime text or emacs to something like bpython?

I'm using sublime text 3 and I like it a lot, but maybe a bit more love for bpython. It detects what libraries are installed and has autocompletion for codes that weren't previously written in the ...
1
vote
1answer
24 views

How to start IPython with sudo

How do I start IPython using sudo? So e.g. when I do sudo optirun ipython it says [40475.566816] [ERROR]Error running "ipython": No such file or directory I know it sounds a bit crazy but I'm ...
2
votes
0answers
41 views

Pyhton is messed up because of setuptools. Help please

I have trouble getting python working right, after a mixup with python setuptools. after this, I cannot run flexget and other programs without getting this error: flexget execute Traceback (most ...
1
vote
1answer
29 views

uninstalling a package

It's true that I'm very new to ubuntu, and that I like to try stuff. Last thing that I've tried and didn't work as expected, was to install mnemosyne app. I followed the readme, but idk why I chosen ...
1
vote
0answers
22 views

matplotlib xkcd with utf-8 label

In python3 / matplotlib, I'd like a plot with a label: plt.plot(np.sin(np.linspace(1,10)), label='fête') plt.legend(loc='upper left') plt.show() Works great. Now let's try with xkcd mode: ...