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

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 ...
1
vote
0answers
70 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
74 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
85 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
58 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
73 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
59 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
69 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
531 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
0answers
81 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
217 views

Problem when trying to install fpdb on ubuntu machine

I've been trying to get fpdb working on my Ubuntu desktop, but every time I try to install it from the Gz file, my system won't let me use ./configure (saying file not found), and when I try to ...
1
vote
0answers
2k 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
163 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
49 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
143 views

Does pip overwrite packages installed by apt-get?

What happens if I accidentally pip install a package that I already installed using apt-get beforehand? Do I simply get to use the latest version (i.e. probably the one I installed using pip)? What ...
1
vote
0answers
619 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
201 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
72 views

Implementing Unity Global Menu

I'm working on a desktop (like XFCE) as a private project, and I would like to implement the Unity Global Menu in my desktop using python. I've looked at the Dbusmenu API and even Unity's dbus ...
1
vote
0answers
207 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
69 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
162 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
760 views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
1
vote
0answers
72 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
756 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
55 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
842 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
696 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
431 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
390 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
141 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
368 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
226 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
302 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
210 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 ...
0
votes
0answers
22 views

Python app crash after sending command “GPIO.setup( 7, GPIO.OUT)”?

Python app crash after sending command "GPIO.setup( 7, GPIO.OUT)" !!! Action step: pi@rp:~$ python3 Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", "copyright", ...
0
votes
0answers
16 views

Quickly fails to package help pages

I have been working on making a program (jekyll-helper) using Quickly and a while ago I worked on adding some content to the default help pages. I tested out open the help pages in the program while ...
0
votes
0answers
22 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
0
votes
0answers
22 views

Why Is the Package Installer Giving the “Dependency is not satisfiable” Error Even After I've Installed the required packages?

I'm trying to install GameTree. I downloaded the deb. file from the site and tried to open it with the package installer. It popped up dependency is not satisfiable: python (>= 2.4) This is ...
0
votes
0answers
54 views

Cant get Python library to install in ubuntu

I am trying to get the "Dirac" python library installed in ubuntu 15.04. Using synaptic i find it, and install it just fine, but when i try to "import dirac" in the python shell it says ImportError: ...
0
votes
0answers
68 views

Python PATH issue (Anaconda_Python, minpower and gurobi interfacing)?

I am using Ubuntu 14.04 LTS, installed Anaconda_python recently Installed minpower and gurobi. Extracted gurobi in home directory, added path as mentioned which is gedit ~/.bashrc export ...
0
votes
0answers
18 views

Create a jumpbox menu

I am looking to create a menu on a network jumpbox I have ~200 servers that I connect to and I do not want to have a CRT session for each of them. I want the menu to be searchable so I can hit "/" ...
0
votes
0answers
30 views

How to set a video as wallpaper in Ubuntu 14.04

I want to set a video as a wallpaper in ubuntu. For that I had written a python script which extracts images from the video and sets them as wallpaper one by one sequentially, and this continues until ...
0
votes
0answers
41 views

appindicator icons not shown in cinnamon

I had a small python script that used to work from the appindicator on unity. Here is what it looked like I now installed cinnamon. The same code looks like this now. How do I get the icons back? ...
0
votes
0answers
141 views

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py ...
0
votes
0answers
29 views

Issues with pip and python on Ubuntu

I have Ubuntu 14.10 installed on my computer. It has Python 2.7.6 version installed by default. I manually did an upgrade and I it looks everything is OK. If I do a python --version I'm getting this ...
0
votes
0answers
25 views

How can I get PyTyle3 working on XFCE4?

I've installed PyTyle3 on Xubuntu 14.04 but none of the keybinds work when I run 'pytyle3' in terminal. I set tile_on_startup to True to see what happened, still no tiling. The only output that shows ...
0
votes
0answers
47 views

gem5 - Setting up x86 fs & running cache coherency code

I am new to gem5 and am trying to run the MI_example cache coherency protocol test code for x86 system in gem5. I was trying to run the ruby_fs.py script but I came to know it has be eliminated from ...
0
votes
0answers
27 views

Wireless Login Website CGI Python

Hey guys im trying to create a Web Page that will show me the SSID's I have around, in this page I create the option to select and join a server. The output from my wireless scan is generated with ...
0
votes
0answers
134 views

Error from install file: “No module named: _struct”

OK, so this all started trying to install OpenBazaar, but I've talked to their devs and it's my python that seems messed up somehow. I think I may have created/deleted a symbolic link somewhere like ...
0
votes
0answers
48 views

Working code examples of python-apt

i downloaded the source code of python-apt from here : https://github.com/excid3/python-apt In this source code, in directory doc/examples , some python codes are exist. I thought that i could run ...