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
333 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 ...
1
vote
0answers
107 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?
1
vote
0answers
202 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: ...
1
vote
0answers
120 views

gconf2 and python2.7 fail while installing packages (UbuntuStudio 14.04.1, 32bit)

I am new on AskUbuntu. I experience the following errors when installing new packages. The error log from the terminal is as follows: Setting up gconf2 (3.2.6-0ubuntu2) ... Traceback (most recent ...
1
vote
0answers
111 views

system-config-printer fails to launch

12.04 system-config-printer fails to launch Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 31, in <module> import gtk File ...
1
vote
0answers
232 views

Textstat not running functions

I just found the link on how to install textstat on my python idle and I was successful in getting it to work. However, when I import textstat everything seems fine until I try to run a function. It ...
1
vote
0answers
111 views

using python to play audio using remote desktop

I am using pyaudio to play a tone. I am using the example that taneli gave here LINK I am using a WinXP computer to log into a ubuntu computer using remote desktop. When I have the ubuntu computer ...
1
vote
0answers
97 views

Custom MOTD does not update until scripts finish

I recently got a small server and gave some friends accounts on it. They all have their own web pages in ~/public_html using lighttpd so I wrote a script to backup every user's public_html directory. ...
1
vote
0answers
78 views

Seeing buffering everytime self.webview.open is used to open URL in quickly

I am new to developing apps with python-quickly. Here is the sample code i am trying. Everytime I run this a video is played based on login.php. But it takes time to start or what I understand is that ...
1
vote
0answers
326 views

Configuration error for pep8 and flymake for emacs

I am trying to configure pep8 to ignore E221, E222, and E226 (all related to spacing around operators). I followed this documentation https://pep8.readthedocs.org/en/1.4.6/intro.html to generate a ...
1
vote
0answers
167 views

How do I run .ui files in ubuntu 12.04?

I created a very basic .ui file and edited it using pyqt. Now when I click the ui file, it opens in QT Designer. How do I run it? All it does in print ham (hehe). I'm sorry about my language, Please ...
1
vote
0answers
3k views

ImportError: No module named paramiko

I have install paramiko via "sudo apt-get install python-paramiko", but it can't be import in python. How to solve this? Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type ...
1
vote
0answers
389 views

Error retrieving default audio device parameters

I am a newbie. I was trying to create a simple Hello program in python to implement SIP using pjsip. The code I used is: # import sys import pjsua as pj #Logging callback def log_cb(level, str, ...
1
vote
0answers
202 views

How to configure PythonPath in apache2

The default version of Python in my Ubuntu(12.04) is 2.7 . For python2.7 projects,I am configuring like this: <Location "/callcentre"> SetHandler python-program PythonHandler ...
1
vote
0answers
1k views

Tkinter not working

I recently installed Python and IDLE from synaptic. However, when I test Tkinter I get the following error: import Tkinter Tkinter._test() Traceback (most recent call last): File "<stdin>", ...
1
vote
0answers
274 views

Problems with RS232 cable and the communication

Let me start out by saying that I hope this is the right place to ask. My problem is not purely defined yet and I am hoping you can help me shed some light on what is going wrong. So, the deal is ...
1
vote
0answers
313 views

How do I launch Everpad?

The Problem: Unable to launch Everpad on 64bit Ubuntu 13.10. I get the below error: $ everpad Traceback (most recent call last): File "/usr/bin/everpad", line 9, in <module> ...
1
vote
0answers
84 views

Recommended way to check/fire alarm in Python (PyGI/PyGTK)

I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined ...
1
vote
0answers
269 views

How to ssh tunnel to ec2 for running a local python script

I can create a tunnel for FF using the below on Ubuntu. Machine is 12.04 in a VBox on a mac host. -i ~/.ec2/aws_development_oregon.pem -C2qTnN -D 8080 ubuntu@test.com But..what I need is for my ...
1
vote
0answers
1k views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
1
vote
0answers
84 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
840 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
70 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
955 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
981 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
544 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
427 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
170 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
247 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
360 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
278 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
342 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
28 views

Removal of python-pip gives an error

Entering the following commands sudo apt-get purge/remove python-pip sudo apt-get autoremove gives this error dpkg: error processing python-pkg-resources (--configure): subprocess installed ...
0
votes
0answers
19 views

Can't use pip installed package on ubuntu

I am able to install a package and list them but I'm not able to execute them by the command line. What am I missing here? aj07mm@aj07mm-ThinkPad-X220:~$ python -V Python 2.7.11+ ...
0
votes
0answers
17 views

ubuntu's multiple python installations…please help me

I want to pip install additional libs to my installation of python3.5 but ubuntu has 2.7 installed too by default and I don't have pip for 3.5 . I'm unsure how to get pip up and running on my newer ...
0
votes
0answers
22 views

Where does Chromium store user settings like the 'default font size' in Ubuntu?

I'd like to write a Python script in order to change the default font size of Chromium, but I can't find a config file that stores a value for it. Is there such file at all? If not, how could I use ...
0
votes
0answers
31 views

No module named _sqlite3

So I am trying to run MLST in bio-python and I have python installed Python 2.7.11 (default, Mar 19 2016, 17:53:01) [GCC 4.8.4] on linux2 But I keep getting the error: File ...
0
votes
0answers
22 views

How to start a Python script in LXTerminal using crontab at boot-up

I have a script called myscript.py (in /home/pi) that I want to run in the terminal every time the Pi boot up. I want to activate this by using 'crontab'. However after searching and trying stuff ...
0
votes
0answers
23 views

Install python and django on ubuntu 14.04

I am new in python/django and following this link and "Global Install through pip(section)" for installation, when I run apt-get install python-pip, I get below error aagyat@ubuntu:~$ sudo apt-get ...
0
votes
0answers
51 views

How to run a program at startup Raspberry Pi

I have a problem with running a script with python at startup. Actually, I managed to start it at boot but the program does not work as I wanted. In this code, I try to start the script that gives me ...
0
votes
0answers
21 views

Unity plugin not working due to python update

I wanted to install some modules of nodeJS.Therefore, I had to install an old version of Python 2.7.11. This change resulted in losing my quick launcher and menu bar which means that unity has been ...
0
votes
0answers
24 views

OverGrive not launching

I installed OverGrive and it worked fine for a few days before it suddenly stopped launching. I've tried a few things, including reinstalling pip, python, etc. When I run: python ...
0
votes
0answers
17 views

Apt is unsure whether a package is or isn't installed when doing a command-not-found

I wanted to install python virtualenv for python3.3+, and tried this command: $ pyvenv-3.4 The program 'pyvenv-3.4' is currently not installed. You can install it by typing: sudo apt-get install ...
0
votes
0answers
21 views

USB web-cam video of Raspberry-pi in WxPython with control buttons

I was wondering if there is a way to record video from a USB web-cam of Raspberry-pi(including sound). I'd like to be able to record a section of video as well as play the recorded video later using ...
0
votes
0answers
53 views

Cannot upgrade pip behind proxy

I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt, but that version ...
0
votes
0answers
37 views

can't install rednotebook because of python dependencies

I can't install rednotebook in ubuntu 16.04. How can I handle this problem? Thanks. sudo apt-get install rednotebook -f Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
15 views

Error on installing python-egenix-mxdatetime

I get an error on installing python-egenix-mxdatetime specific the 3.1.3 version. First I downloaded the package from egenix site, then tried to install python-egenix-mxdatetime using the below ...
0
votes
0answers
12 views

How to install l2cs on unbuntu?

I have to install l2cs on my 12.04 ubuntu server but I don't know how to do that. I'm beginner on dedicate servers and I need to some help to do that. Can someone to provide a set-by-step tutorial ...
0
votes
0answers
720 views

pip use on Ubuntu 16.04

I installed python packages on Ubuntu Trusty using pip and was able to call the installed packages as expected, but on Ubuntu Xenial (installed in a virtual machine) I did the same thing using pip but ...
0
votes
0answers
15 views

Python build errors when installing packages via setup.py

I'm running Python 3.4.3 on Ubuntu 14.04. I have an issue where whenever I install a package via python setup.py install, if there is any building involved the process errors. This happens even though ...