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
0answers
1k views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
1
vote
0answers
80 views

aptdaemon simulation not updating dependencies

I started playing with aptdaemon on Ubuntu 13.10 recently, and I'm baffled. Calling simulate() on a transaction doesn't update the dependencies list. Debug from aptd shows that several events are ...
1
vote
0answers
823 views

Python CGI cannot execute in Ubuntu 13.10

Today I just updated my ubuntu from 12.04 to 13.10 . And then some thing happened really bad. I cannot execute Python CGI in ubuntu 13.10 apache 2.4 even through I already config everything in ...
1
vote
0answers
68 views

How to control GtkScales with Python?

I want to add GtkScales in a Quickly application and control it with Python to adjust Brightness via xrandr. We have already made the code via raw Python here and would like to do this via Quickly to ...
1
vote
0answers
930 views

Eclipse - not opening, it was working before, how to fix it and open the eclipse ide for python?

It was working since last night, this morning stop opening, how to fix this? sun@sun-M14xR2:~/Downloads/easyeclipse-python-1.3.1$ ./eclipse ./eclipse: error while loading shared libraries: ...
1
vote
0answers
920 views

Firefox won't work. Locale not supported by C library

I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves ...
1
vote
0answers
508 views

How to run Python- postgresql in ubuntu 12.04

I am trying to test pyhton-postgresql script in ubuntu 12.04. The script is this: import psycopg2 import sys con = None try: con = psycopg2.connect(database='mydb', ...
1
vote
0answers
421 views

How to make Ubuntu 13.04 open .py with IDLE for Python 2.7 automatically?

I'm using Ubuntu 13.04 and python 2.7. When I click a .py file, it opens it in gedit. I want it to open in IDLE. When I right-click and choose "open with", IDLE is not in the list. I have tried ...
1
vote
0answers
162 views

Dotdeb alternatives for Ruby or Python?

I really like Dotdeb, but it doesn't include packages for Ruby and Python. While I could build my own repository, I wouldn't want to reinvent the wheel (and then be forced to drive). Are there any ...
1
vote
0answers
483 views

Store cookies with WebKit (python)

So I was watching the "Create Your First Ubuntu App"-Video from Jono Bacon and got the idea, to create a simple app. That creates a window with a WebView und opens the URL to Google Keep. Everything ...
1
vote
0answers
244 views

How to create an Ubuntu app using python and Qt4 designer

I recently started developing Ubuntu desktop apps using Quickly. But then I tried out the Qt4 designer and I feel more comfortable with it than Glade designer that Quickly uses. I liked developing ...
1
vote
0answers
348 views

Installing gphoto2 to use the python binding not working

I want to use the Python bindings that are available for gphoto2 and this requires a build from their tarballs. My first step is simply to build gphoto2 such that it recognizes my camera and thus far ...
1
vote
0answers
266 views

I have a problem installing activestate python instead of the default. How can I fix it? Syntax error: “)” unexpected

I am getting this error when trying to run the ./install.sh for ActivePython. How can I correct this? cd /tmp wget ...
1
vote
0answers
323 views

missing 'ldconfig' and 'start-stop-daemon'

when I tried to install numpy and pandas, I got this problem. Can you help me? Thank you! dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found ...
0
votes
0answers
10 views

not installing pip command

Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-unique-3.0 ...
0
votes
0answers
6 views

How to use multiple Python-Gtk-Glade Entries and Button values?

Here's my code snippet: self.filechooserbutton1 = self.builder.get_object("filechooserbutton1") self.filechooserbutton2 = self.builder.get_object("filechooserbutton2") def ...
0
votes
0answers
13 views

python is missing or unusable error in UBUNTU 15.10

checking for python... /usr/local/bin/python checking for python2.7... no configure: error: python is missing or unusable Makefile:8643: recipe for target 'configure-gdb' failed I am getting this ...
0
votes
0answers
12 views

Inkscape python-lxml error

I'm using Inkscape 0.91 (r13725) and I always receive this error message when I try to use Perspective add-on or when I try to save the sketch in any format: The fantastic lxml wrapper for libxml2 is ...
0
votes
0answers
24 views

How to install a python script as an application

I have been trying to create a deb package for my python script following these steps. My myscript.py contains a simple frame. #!/usr/bin/env python import wx app = wx.App(False) frame = ...
0
votes
0answers
16 views

how to run grais, some kind of python program?

I built the gnu radio 3.7.9 from script here https://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGRFromSource I built gr_ais ...
0
votes
0answers
26 views

Screwed up system python in Ubuntu, any way to repair it?

(originally posted on stackoverflow) While trying to update my python version, I accidentally screwed up my python installation on Ubuntu 14.04 (the system installation, the one in /usr/lib). Now, I ...
0
votes
0answers
13 views

service [sname] restart not working like I expect

I am having some trouble getting gunicorn to run from a python virtual env and this is the only thing I can see that proves what is wrong right now... description "Gunicorn daemon for Django project" ...
0
votes
0answers
19 views

Upstart: Logging output of python to log file

I have an upstart script that I want to launch and log the output from. I can launch it successfully and it completes :) Output goes to my log file after the program finishes. However: The ...
0
votes
0answers
10 views

i'm trying to install iou and i got thist error

i tyring to install (IOU) with GNS3 so i need to (fix the missing library for IOU on 64bit systems ) and when typing this: dpkg --add-architecture i386 && apt-get update && apt-get ...
0
votes
0answers
11 views

Owner status of directory reverting

I use Ubuntu 64 bit, version 14.04 LTS. I have 2 users on this machine, user1 and user2. Both users are part of the same group. I run a python script that logs something in a file, that is within a ...
0
votes
0answers
52 views

add-apt-repositories isn't working

Basically the terminal freezes for a while the I manually have to ctrl+c to end the process, then I get the following ^CTraceback (most recent call last): File "/usr/bin/add-apt-repository", line ...
0
votes
0answers
26 views

scipy is installed, but import scipy fails

This command shows scipy installed (I used apt-get). $ apt-cache policy python-scipy python-scipy: Installed: 0.13.3-1build1 Candidate: 0.13.3-1build1 Version table: *** 0.13.3-1build1 0 ...
0
votes
0answers
22 views

Multiple R installations… lost overview

I am running Ubuntu 14 and I am using R and R studio. I think the installation is at: /usr/bin/R Recently, I wanted to use the Jupyter Notebook to also run R in this kind of notebook in the ...
0
votes
0answers
21 views

I installed BPG viewer and it deleted default python and other important apps. How to know all that was removed?

I am into bleeding edge and installed BPG viewer to view a file I encoded in BPG format. It was a .deb package and I was never prompted before it uninstalled all the important apps. It even ...
0
votes
0answers
33 views

how do i play videos that show text/html decoder plugin-python is missing

I have downloaded a few videos but some of them when played with the default movie player show the following error: "python (v2.7) requires to install plugins to play media files of the following ...
0
votes
0answers
7 views

U 14.04 update python netCDF4 from v1.1.0 to 1.1.7

I do not know how to update the stable netCDF4 python package from 1.1.0 to 1.1.7. The later works on my development machine, but the deploy only has the older release listed.
0
votes
0answers
15 views

How do you create a network interface and direct it into a program?

I'm trying to create a network interface and direct all calls to it into a python3 program. How would I start on this?
0
votes
0answers
41 views

Can't remove Python 3 pip on ubuntu 14.04 LTS

I have the following python directories on my machine: me@pc:/usr/lib$ ls --directory python* python2.6 python2.7 python3 python3.4 python3.5 python-tz where python2.7,python3.4 and python3.5 ...
0
votes
0answers
16 views

dbgpSocket: error: unable to connect to remote host?

Actually I tried to use dbgpavim to debug a python program on Ubuntu. I typed in sudo ./pydbgp -d 127.0.0.1:9009 ~/myProjectj/main.py on Ubuntu but I got an error message "dbgpSocket: error: unable to ...
0
votes
0answers
34 views

Fatal Python Error when upgrading

I usually manage to solve any linux related problems alone but this time it seems unusually impossible. I used to get errors every time I was trying to login and it was asking me to skip to mount ...
0
votes
0answers
42 views

Uninstall flux which was installed from source

I installed Flux using following steps (source) git clone https://github.com/Kilian/f.lux-indicator-applet.git cd f.lux-indicator-applet sudo python setup.py install Now I want to ...
0
votes
0answers
25 views

how to automate ssh login with password and ppk?

Hi I would like to automate my ssh, where frequently I use to enter my login name, password and attach a ppk file to enter into my server. Is there any way to automate this process using python, ...
0
votes
0answers
39 views

Running python script in Python interpreter

I have recently started using Ubuntu 14.04. I am learning Python and have both Python 2.7 and 3.4 installed. I made some simple scripts and executed them using command python filename.py and it ...
0
votes
0answers
30 views

Python Anaconda Default Path

Accidentally I've set Anaconda's Python as the default Python. So, when I type which python in the therminal, I get: /home/myuser/anaconda3/bin/python instead of getting ...
0
votes
0answers
15 views

Import error when executing Mayavi2

After installing Mayavi2 and all its dependences I am unable to run it . I get the following output when executing the commando "mayavi2": Traceback (most recent call last): File ...
0
votes
0answers
33 views

Number patter counter needed in Python

I have a ultrasonic senor when entered this script (it’s a bit too long to past it in here) I get lots of numbers printed out (every 1 seconds). These numbers are between 0cm to 700cm, however ...
0
votes
0answers
39 views

launching a python script from rc.local fails to connect to x server

Hey I am trying to run this python script that rotates the screen when flipping the laptop lid at startup. I tried to ad the line to run it to the rc.local file with #!/bin/sh -e sudo ...
0
votes
0answers
44 views

Restoring my old python and python dist-packages after pyenv

After following the instructions on http://askubuntu.com/a/533581/63298 to update my python to python 2.7.11 and python 3.5.1, I have lost all my dist-packages. They still exist: gillin@mt:~$ sudo ...
0
votes
0answers
14 views

Import VIPS Error

I want to use VIPS module in python, but this time I had a problem when I want to run through the terminal. example: from gi.repository import Vips and the error message appears as follows: ...
0
votes
0answers
29 views

python3 won't import LCM

I am not sure if this problem is given by some incompatibility between LCM (lightweight communications and marshalling) and python3 or by the fact that I have more than one python version (python 3 ...
0
votes
0answers
34 views

no module named imagehash

I have a Problem in installing imagehash package. I have used the following command to install imagehash pip install imagehash It says that REQUIREMENT ALREADY SATISFIED with an exception error. ...
0
votes
0answers
257 views

installing nylas N1.deb

raymond@akornor:~/Downloads$ sudo gdebi N1.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done ...
0
votes
0answers
39 views

problem while installing imagehash package ubuntu 15.04

When I tried to install python package imagehash using command pip install imagehash, it showed an error in the terminal: Command "/usr/bin/python -c "import setuptools, ...
0
votes
0answers
65 views

Can't install pip on virtualbox'd ubuntu 14.04 (Windows 10 host)

So while I haven't been able to solve this problem and suspect it's a hardware one, I managed to install ubuntu 14.04 on a virtualbox. However, for some reason pip isn't installed and I can't install ...
0
votes
0answers
129 views

Cant' properly install PyInstaller

Something went wrong while installing, but nonetheless I got message 'success' message: $ sudo pip3 install pyinstaller [sudo] password for user: Downloading/unpacking pyinstaller Downloading ...