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
584 views

Python urlopen function raises an error when an https site is given as input [duplicate]

Please don't mark the question as a duplicate. I have gone through every possibility, but I didn't find an answer. I use Ubuntu 12.04(LTS) Python urlopen function raises this error message when an ...
0
votes
2answers
76 views

How do I remove the window manager of a single application, or open it with no window managment?

I need to open a window without it being managed by the window manager, while the other windows on my screen continue to be managed by the window manager, how do I do this? P.S. I'm willing to edit ...
1
vote
1answer
205 views

Quickly produces an error when installing

I ported an application over to Quickly, replacing all the files as necessary. When I say quickly run the application runs without flaw. However, the problem occurs when I try to package/install it. ...
0
votes
1answer
233 views

GEOSEXCEPTION error message

I am quite new to the system. Another employee set up the command that I have been using and part of the return after a my usual system run query is below: File ...
0
votes
1answer
94 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
101 views

Cannot access horizon, python compiling issue [closed]

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 ...
5
votes
1answer
297 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
115 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
1answer
162 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
3k 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
190 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 ...
2
votes
1answer
3k views

How do I install the 'python-uno' package?

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 ...
0
votes
2answers
12k 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
106 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
260 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 ...
1
vote
0answers
123 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
64 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
2k 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
319 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
64 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 ...
2
votes
1answer
125 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
951 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
354 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
174 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
386 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 ...
1
vote
1answer
347 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
276 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 ...
1
vote
1answer
254 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
156 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
467 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
208 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
66 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 ...
18
votes
1answer
4k 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
152 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
434 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 ...
3
votes
2answers
1k 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
581 views

adding request to DHCP starvation using Scapy?

using this code for DHCP Starvation conf.checkIPaddr = False ...
0
votes
1answer
494 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? ...
1
vote
0answers
79 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
290 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
1answer
2k 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
1answer
97 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
241 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 ...
6
votes
1answer
2k 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
181 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
661 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.
0
votes
1answer
43 views

Problem in python3.3.2+ [duplicate]

I am using Ubuntu 13.10.I have 2 versions of python.Python2.7.6 and python3.3.2+.(I don't know what is the '+' sign)Whenever I open python 3.3.2+ and type print "hello." .I get the invalid syntax ...
4
votes
3answers
6k views

How to download pygame in python3.3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?
0
votes
1answer
1k views

How to change Gtk.Notebook Tabs

There is a way to change the default Gtk.Notebook Tab? I want to realize a flat tab button
0
votes
2answers
39 views

How to download SPE? [duplicate]

How to download SPE in ubuntu 13.10.I have python2.7.6 in anaconda 1.8.0.I need it for making programs