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

0
votes
1answer
29 views

How to change the mirror of setuptools?

I changed the ~/.pip/pip.conf file to a customized mirror, and pip install do download the package from that mirror. But when installing(run the setup.py), I find setuptools still get packages from ...
1
vote
0answers
69 views

Cannot access horizon, python compiling issue

I've successfully deployed OpenStack Havana using Juju over Ubuntu precise. Each charm on dedicated server and everything looks normal. When I tried to access horizon, I get the login page and ...
4
votes
1answer
67 views

How to set my Bluetooth python script on higher priority than Ubuntu's request?

I have got a Bluetooth Python Server Script on Ubuntu to connect with an incoming request from a Smartphone device. However Ubuntu's Bluetooth is getting the request before my script can react on it. ...
4
votes
2answers
27 views

What is the correct location for a maintained virtualenv service?

I will be installing and maintaining a Python 2.7-based server application on Ubuntu server (12.04). The model of maintenance will be to create a virtualenv and install application standard libraries ...
0
votes
0answers
21 views

How to install python gtkhtml2

I've try to install Straw 0.27 (using sudo python setup.py install), but got error: Error: 'gtkhtml2' module in package 'python-gnome2-extras' is required to install Straw I've installed ...
0
votes
1answer
26 views

Output python command result to file [closed]

I want to use python as a calculator and output everything into file. But mamboleo@mamboleo-K56CB:~$ python Python 2.7.5+ (default, Sep 19 2013, 13:48:49) [GCC 4.8.1] on linux2 Type "help", ...
0
votes
1answer
736 views

AttributeError: 'module' object has no attribute

I am trying to get the depth map of two stereo images. I have taken the code from http://docs.opencv.org/trunk/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html I get the following error: ...
1
vote
1answer
74 views

MAAS add virtual node - 'namedtuple_as_object' error

I have a KVM-based virtual machine up and running on a server that's also running MAAS. I'm following the instructions here: http://maas.ubuntu.com/docs/nodes.html#virtual-machine-nodes to add the VM ...
1
vote
1answer
218 views

How do I resolve a “'python-uno' has no installation candidate” error?

I had a script, it is working with the package python-uno on Ubuntu 12.04 lts. The script is in python language and work with OOo to edit XLS files. Now I upgraded to 13.10 and it seems the uno not ...
-1
votes
2answers
48 views

create a file before writing into it using python [closed]

I am new to python. I wanted to know if I could create a text file in the script itself before writing into. I do not want to create a text file using the command prompt. I have written this script ...
1
vote
3answers
82 views

How to type lines of command for python?

I want to encode a python command in the terminal but it executes them as I press enter to go to the next line of command. How can I prevent the terminal from executing the command until I finish ...
2
votes
1answer
69 views

Install both libmemcached10 and libmemcached6 ubuntu 12.04

Just wondering if someone can help me here, I'm still quite new to Ubuntu an Linux in general and seem to be having a problem with two packages: libmemcached10 is required for php5-memcached but ...
0
votes
0answers
43 views

How to make terminal line into shortcut? [duplicate]

I have to run something like python /usr/lib/app.py --parameter1=/media/ --parameter2=/media/ to start an graphic app every time. How do I make that into shortcut, script or whatever so I can ...
1
vote
0answers
38 views

nproc returning two values on python [closed]

I'm trying to write a script to do something that I repetitively do everyday, and that for it to be useful I need the value given by the command nproc. The problem is that nproc on bash returns my ...
-2
votes
1answer
34 views

Python excuting Ubuntu commands

I made this: import os os.system("cd /home/k/Documents/Avr") a = raw_input("1-for ATmega32A 2-ATmega328P") if (a == 1) : os.system("cd ATmega32") if (a == 2): os.system("cd ATmega328P") ...
-2
votes
1answer
96 views

Uninstall Python 2.7 on Ubuntu 12.04 [duplicate]

I have just installed Ubuntu 12.04 which comes with Python 2.7. I have installed Python 3.3, so now I have both versions. For example, if I type python in the terminal I get version 2.7 and if I type ...
1
vote
1answer
75 views

Open file with command-line program

I'm looking for a way to open a .py file with Python in a terminal every time a file is double-clicked in a GUI file manager, like in Windows. How would I go about doing this? For Ubuntu 13.10
1
vote
0answers
28 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
1answer
49 views

Answering debconf questions from a custom GUI in Python? (Custom Front-end)

I'm writing an app that should enable the user to install some additional packages when needed. I'd like to create a custom GUI that collects the packages debconf questions along with some other ...
2
votes
1answer
255 views

Python Module PyBluez Error

I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5. I installed PyBluez and Bluez-libs. When I type import bluetooth or from bluetooth import * it successfully imports ...
0
votes
2answers
51 views

How to fix Libreoffice and Python3-uno

I cannot install any new packages because of python3-uno dependency problems. Apt-get said that python3-uno depends on libreoffice-core (=1:3.5.7-0ubuntu4) but 1:3.5.7-0ubuntu5 is to be installed. I ...
2
votes
1answer
73 views

Upstart cannot determine daemon's pid

There is a daemon mydaemon, which has not a very pleasant interface. So that mydaemon-parser.py was written to parse configuration files and start as many mydaemon instances as needed. ...
-1
votes
1answer
105 views

How to restore python to its default on Ubuntu 13.10 [closed]

I'm using Ubuntu 13.10. I was trying to finish a project using python 2.7, so that I installed python version 2.7.6 into my system. But now my system is not functioning properly & some apps aren't ...
0
votes
0answers
34 views

How to get public/private key from cacert.pem

i has download cacert.pem from internet, but how to get cacert.key ? How to get public/private key from cacert.pem ?
0
votes
0answers
29 views

how to setting pip.ini to use cert

How to setting pip.ini to use cert for each link/url/find-links, example: find-links = http://x.y.z/simple/ cert = xxx.pem http://a.b.c/simple/ cert = sss.pem ...
1
vote
1answer
105 views

How to restart python script after one second of going down using UPSTART?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
2
votes
1answer
246 views

Python interactive interpreter: initial tab is 4, subsequent tabs are 8 spaces

When I use the interactive Python interpreter, the width of the tabs seem out of sync with each other. Specifically, the first tab gives me a tab width equivalent to 4 spaces, while the next tabs ...
0
votes
0answers
76 views

Specifying Python Distribution in Ubuntu 13.10 (for Continuum Anaconda Python)

I've been trying to install Python on my Ubuntu 13.10 VM. Ubuntu already comes with Python, and when I remove it with apt a lot of other apps get removed. I have installed Continuum's Anaconda ...
1
vote
1answer
83 views

Multi-threading in Gtk python [closed]

I'm trying to display a GUI and do some work in the background.when the window is current window, GUI runs normally. Long after minimizing the window, GUI will freeze. The following code is created ...
3
votes
2answers
95 views

implement filter in unity-scopes with python

A lot of the unity-scopes do not work in ubuntu (for example the unity-scope-gmusicbrowser), thus I've tried to "correct" them in order to get results in the dash. Ok, I succeeded in doing this (for ...
0
votes
1answer
73 views

finding amount of memory usage of a command in bash

I wrote a program and now I need to measure it's performance so I use time to find timings but is there any command like time that I could run my program under it and have the amount of memory used by ...
2
votes
3answers
96 views

How to intall python library from a repository

I'm a long time windows user who has made the plunge to ubuntu. Some things I like, somethings I don't like and most...well most I just don't understand as of yet. I mostly get Apt-get. Groovy. I ...
0
votes
2answers
61 views

How do I get a non-standard non-repo version of python under package management?

For any number of reasons, I need a python version that isn't in mainline repositories. Where should I look? In my particular case I want 3.4 alpha/beta, but where should I look for non-standard ...
14
votes
1answer
2k views

Dropbox Fails To Start With “VerificationError: importing pylinux…”

Dropbox Fails To Start With "VerificationError: importing pylinux..." . It seems that some recent Python update breaks Dropbox, resulting in the following error: Starting Dropbox...Traceback (most ...
1
vote
0answers
90 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
1answer
152 views

How to install Python 3.4 properly on Saucy?

For my project I need Python 3.4 (beta 2) for its asyncio module, but there is no official package for Ubuntu yet (unlike Windows, which has an MSI already). I'd like to know how can I install Python ...
2
votes
2answers
334 views

Why is Python V3.3 installed by default on Xubuntu 13.10?

I am running Xubuntu 13.10, 64 bit. python --version outputs Python 2.7.5+ which is normal since python 2.7 is installed by default on all Linux distros. But when I go to Software center -> and ...
1
vote
0answers
194 views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
0
votes
1answer
91 views

How to set up Apache/MySql/Django environment for development

I've only been able to find tutorials to set up Apache/MySql/Django on servers, but I'd like to set up an environment on my machine for development. Does anyone have any good tutorials or suggestions? ...
0
votes
0answers
321 views

Ubuntu 13.10 python urllib2.ulropen fails with URLError: <urlopen error [Errno -2] Name or service not known>

The problem is that with normal user I cannot open url's with python urllib2 library: import urllib2 urllib2.urlopen('http://www.example.com/') URLError: <urlopen error [Errno -2] Name or service ...
1
vote
0answers
77 views

Openstack dashboard error [duplicate]

Hello I have installed maas,juju and openstack-dashboard. When I try to log in the horizon dashboard I get this error: cannot import name base Request Method: GET Request URL: ...
1
vote
1answer
75 views

“sudoing” strategy for python script on ubuntu

I'm creating a small router program (GTK frontend) in python for some of our less CLI savvy users. I've developed the glade front-end and able to connect the various signals. Now, I'm facing only one ...
0
votes
0answers
25 views

No cron job for root

I am trying to make source distribution(python package) which has setup.py file that deploys cron job using subprocess call. But Error is coming : No cronjob for Root Here is setup.py file : $ ...
0
votes
1answer
719 views

How do I get text/html decoder plugins for Python 2.7 (Ubuntu 12.04)

How do I get text/html decoder plugins for Python 2.7? I have tried all the methods suggested on the forums here.They did not work. In addition to trying Helix-player in the form of Real Player, I ...
0
votes
0answers
64 views

Keeping python alive through gnome 3 screen lock?

I've been through the ringer with this one the past few days. I wrote a script to re-target my Altcoin miner every once in a while. It builds a command string from API data grabbed at coinwarz.com on ...
0
votes
1answer
31 views

Issues with IDLE [closed]

I can't run programs with IDLE or any files saved with IDLE. I get a syntax error. I was just testing it out with print "Hello World". This is the message I am receiving File "p.py", line 1 ...
0
votes
1answer
57 views

How to download easygui for python3.3?

I have python 2.7 and python 3.3 in my Ubuntu 13.10 system.I have easygui in-built for python2.7 but not for python3.3.But when I download the zip file of easygui and unzip it and type "python3 ...
3
votes
1answer
468 views

Setting up GDB pretty printing in Ubuntu 13.10

I tried to set up GDB pretty printing (for easier work with standard containers) according to this anwer. Instead of using python pretty printers code from svn I used the ones that ship with ubuntu. ...
1
vote
1answer
88 views

How can I create Unity dash integration for my Python script?

I have written an awesome script in Python and I seriously think it should help many rookie Ubuntu users out there -- especially for a quick solution/tip. My script searches through AskUbuntu.com and ...
1
vote
1answer
158 views

How can i install SPE(Stani's Python Editor) for python3.3

I have ubuntu 13.10.I have SPE which runs for python2.7.4+.But i need to run it for python 3.3.2+.How can i do it.My system uses python2.7.4+ by default.