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
0answers
234 views

Python Access Pidgin Data Structure by Dbus

I recentely started to program in Python and making a script/plugin for Pidgin,i need to access PurpleConversationUiOps and use the has_focus field,based in some examples in documentation of Pidgin i ...
2
votes
0answers
23 views

Import Error When Trying to Run Bot

Recently upgraded to Ubuntu 15.04 and now I get this error when I try to run the irc bot sopel: File "/usr/local/bin/sopel", line 9, in <module> load_entry_point('sopel==6.0.0a4', ...
2
votes
0answers
31 views

How to search for and list available ppas via the python launchpad API?

I can't figure out how to use the python launchpadlib to search for ppas. In other words, I am looking for a python API interface for the official launchpad (ubuntu) ppa search. A web form for the ...
2
votes
0answers
123 views

Huge Python Problem

Preamble: I tried looking up a solution and nothing worked for me. First, when I run the following command $ sudo python --version Python 2.7.5+ Similarly for python2 and 3 $ sudo python2 ...
2
votes
0answers
533 views

Missing bits for some modules during installation

I install Python 2.7.9 from compiling its source on 64-bit Ubuntu 14.04. Running make seems without error, but it also says that Python build finished, but the necessary bits to build these modules ...
2
votes
0answers
77 views

Is it safe to modify thunderbird mail box from python?

I would like to compare and merge several mail boxes managed by thunderbird (because they contain a lot of duplicated messages). They are in the mbox format. My first idea was to use the standard ...
2
votes
0answers
124 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 ...
2
votes
0answers
63 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 ...
2
votes
0answers
207 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 ...
2
votes
0answers
58 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 ...
2
votes
0answers
1k views

fresh install, python-software-properties unmet dependencies

attention: This might be more a question for "gis.stackexchange" but it is Ubuntu-related Geonode 2.0 is available for Ubuntu 12.04 but not for Ubuntu 14.04. According to the docs it should be ...
2
votes
0answers
274 views

How to run Python program installed system-wide through pip without root privileges?

I have two different Ubuntu computers that both has multiple user accounts. I wanted to try the latest version of the backup program Attic, so I used pip3 to install it—with success. However, I can’t ...
2
votes
0answers
217 views

How to distinguish between identical USB's

I have this system where I have 8 USB RFID readers which I would like to distinguish from one another. Here's a snippet from lsusb Bus 002 Device 011: ID 05fe:1010 Chic Technology Corp. Optical ...
2
votes
0answers
49 views

Install Acire and Python Snippets on Ubuntu 14 ?

Install Acire and Python Snippets This is very old,, do not work on Ubuntu 14! :( http://aciresnippets.wordpress.com/ last news 2010 :) give it a Alternative for Ubuntu 14 ??
2
votes
0answers
115 views

Python GTK: How to stop a function from happening if a checkbox is checked

In my program I have one of those annoying popups that alerts the user to go check the settings. I have a checkbox that if checked, is supposed to never show the popup again. I have no idea how to do ...
2
votes
0answers
263 views

Why does Ubuntu's webkit inspector look (and work) just like Safari?

In older Ubuntu, the python-webkit inspector looked like Chrome, as you can see in these screenshots: http://stackoverflow.com/questions/13132459 (It had some annoying bugs, too.) I see Midori's ...
2
votes
0answers
206 views

How to properly install PySide via pyenv?

I'm running Ubuntu 13.10 with Python 3.3.4, installed via pyenv. Running sudo apt-get install python3-pyside installs PySide in /usr/lib/python3/dist-packages/PySide, and I can make a symlink to that ...
2
votes
0answers
94 views

Specify the target directory in a package

I created a package (with dpkk-build and dh_make) from my own program source and got a deb-binary. So far, so good. No if I'd upload the package to my ppa and installed it from there, the program ...
2
votes
0answers
712 views

Canopy Express in Ubuntu 12.04 32-bit doesn't start

I installed the 32-bit version of Canopy Express in my Ubuntu 12.04 32-bit machine. I followed the installation guides here. Then when I run the program I get the following dialogue: Permission ...
2
votes
0answers
104 views

Terminal won't print “Refresh” in terminal

I have a slight problem today with my Ubuntu app. I've been following a Youtube tutorial. I've provided the link below with the rest of the links provided to help you find out the cause of the ...
2
votes
0answers
750 views

Python requests SSL version

I am using the python requests module on Ubuntu 13.04. I keep getting the error: requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert ...
2
votes
0answers
633 views

How do I install python in wine? I keep getting an error

Please help! I've been searching google, forums, and have yet to find a solution. Here is the output from my terminal: 2013-02-25 12:57:05 (1.01 MB/s) - `pywin32-214.win32-py2.6.exe' saved ...
2
votes
0answers
77 views

How to make Gtk spinbutton symbolic in 12.04 in only a specific application?

I am currently developing an application for Ubuntu 12.04 and Ubuntu 12.10 systems. My application is completely monochromatic except for the spinbuttons as seen in the screenshot below. This issue ...
2
votes
0answers
349 views

ubuntugis demands a partial upgrade? Is this safe?

I would like to do some GIS in ubuntu. When I use the repo: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable Update manager asks me to do a partial upgrade. The packages it wants to ...
2
votes
0answers
153 views

Is python-augeas missing a dependency on libpython2.7?

When I install python-augeas on a "minimal server" Ubuntu installation of 12.04 LTS, it throws the following import error when I try to use it: # python Python 2.7.3 (default, Aug 1 2012, 05:14:39) ...
2
votes
0answers
219 views

Run an xinput command when a device is connected?

Due to a bug in the kernel driver for the Apple Magic Trackpad, two finger right click doesn't work by default. However, you can fix the issue by running the following: xinput set-prop $DEVICE_ID ...
2
votes
0answers
742 views

How to refresh unity launcher icons from python

I have written a program that runs from the unity launcher. In my preferences it would be useful for users to change the default icon of the .desktop launcher. I've set it up to change the file, but ...
2
votes
0answers
140 views

How do I use the Discoverer module with pygi GstPbutils?

I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module. from gi.repository import Gst, GstPbutils def on_discovered(discoverer, ismedia): print("%s -- %s" %( ...
2
votes
0answers
957 views

Programming with DBus using PyQt

I'm trying to write a desktop environment that supports the global menu Before I get started with my main task In PyQt I'm trying to get the dbus code to work with QtDBus as a proof of concept. Here's ...
1
vote
0answers
26 views

Installing modules for both Python 2 and 3

I need to install some modules for Python: python3-rospkg, python3-catkin-tools and python3-yaml. I need them to work for both python2 and python3. But as soon as I apt-get install one of the above, ...
1
vote
0answers
8 views

Nautilus file notes (user metadata) workaround: how to display note in popup?

This post gives a python program for adding and viewing notes on files under Nautilus: File notes tab gone in Nautilus 3.2.1 It works! I want more.... The annotated file does not have any ...
1
vote
0answers
39 views

how do I create gnome-terminal from python code?

I use ubuntu 14.04 and I want to create gnome-terminal from python script. I used the following code. the code : !/usr/bin/python from subprocess import Popen,PIPE import os import time ...
1
vote
0answers
19 views

Keep getting errors from apport_python_hook.py

I keep getting this error message when trying to do any apt-get command, or almost any command in general, it also shows up when I open the terminal. I also cannot open the Software Center and ...
1
vote
0answers
29 views

search for mounted hard drive by serial number

Is there a way to check if a hard drive exists using just it's serial number? I'd like to use this in python
1
vote
0answers
72 views

installing Anaconda, errno 2 no such file or directory

I've taken a look at some of the other AskUbuntus, and none of them have fixed my problem. I've been running iPython for almost six months now in order to get some extra practice with the Codecademy ...
1
vote
0answers
18 views

how to install plugin for python v2.7

I tried to run a video DVD and it says you need to install plugin for python v2.7. I am using Ubuntu 13.04.I am very new with ubuntu. what codes shall i have to write to download the plugin and to ...
1
vote
0answers
34 views

execute python package to download a pdf file

i am new in python. please dont bore. i have a python package to download pdf file from a specific site. i can not execute this package. Please help me someone to execute the package. thanks in ...
1
vote
0answers
87 views

Where to obtain ipython kernspec for Python 2.7

I'd like to work with Python 2.7 using Jupyter, but it doesn't come up as an option when I click to create a new notebook. I read that I need to install the ipython 2.7 kernspec file, but I get this ...
1
vote
0answers
45 views

Subscribe for DBUS event of screen power off

My MacBook Pro has a keyboard backlight which is pretty awesome, but there's a slight bug: the screen turns off after a given amount of time, but the keyboard backlight stays on. I've copied over ...
1
vote
0answers
14 views

how to install packages which is not in the cache with python

i install packages in my application using python apt. Some example: import apt cache = apt.cache.Cache() pkg = cache["brukkon"] pkg.mark_install() cache.commit() In this example, brukkon is not in ...
1
vote
0answers
181 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", ...
1
vote
0answers
11 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
1
vote
0answers
49 views

variable assignment syntax error in python in ubuntu 12.04

I have a file, main.py, with code as: import CreatingTable CreatingTable.Creating() I get the following error: In the following code of CreatingData.py there are text files with data in them as ...
1
vote
0answers
112 views

How to edit and refresh a locally opened html using python script?

Using python program a local html file is opened in browser,there is a table in the html file,I want to edit the content of a cell in the table. Also I want to refresh it using python,since the ...
1
vote
0answers
63 views

How to get gnome session idle time?

Has the method to get the session idle time through dbus changed in the recent Ubuntu or my dbus code here is wrong? #!/usr/bin/env python import dbus bus_name = 'org.gnome.ScreenSaver' obj_path = ...
1
vote
0answers
30 views

Gedit Plugin: How to get the buffer of a newly opened file from another file in Gedit?

I've written a code for a Gedit Plugin which opens another file, self.window.create_tab_from_location(Gio.file_new_for_path(file_path), None, line_number, 0, ...
1
vote
0answers
135 views

save data to excel using openpyxl

I use the code fragment below to copy data to an excel file using openpyxl. for i, j in enumerate(fint): _= ws1.cell(column=i +1, row=globdat.cycle, value=j) wb.save(filename = ...
1
vote
0answers
77 views

Uninstall dysfunctional python module

I have installed python module functools via easy_install, and now I cannot uninstall it. When I run python like this python -c 'import functools' I got this error Traceback (most recent call ...
1
vote
0answers
153 views

Installing python libs under Lubuntu 14.10 getting Errors

Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and pip3 install ...
1
vote
0answers
240 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 ...