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
1answer
34 views

Python libraries are not updated, except in ipython

I have used pip to update and install some libraries on a computer that hadd an old Numpy version. But it doesn't seem to be actually applied: davidm@illergard:~$ python Python 2.7.3 (default, Feb 27 ...
1
vote
1answer
22 views

How do I make some TCP ports accessible internal only?

I am running four instances of Tornado app at ports 9000 - 9003. I use Nginx as load balancer at the front. However user can access these ports also, for example mysite:9000 is also accessible. so ...
7
votes
4answers
6k views

Unable to download videos using youtube-dl ('sig error'), how to correct?

I used to download videos using youtube-dl command line tool, from the past two days whenever i try to download any video I get an error as shown below. $ youtube-dl ...
0
votes
0answers
44 views

Install pygame in anaconda

I have anaconda on Ubuntu 14.04. I want to install the pygame module with anaconda. I already run sudo apt-get install python-pygame, but this only works on python, not in anaconda.
3
votes
2answers
6k views

Installing pygame with pip

I'm trying to install pygame using pip in a virtualenv. I'm following this tutorial on using Kivy. However, running pip install pygame returns Downloading/unpacking pygame Downloading ...
0
votes
0answers
42 views

Untrusted Package Errors when installing Okular and ACE Stream

Whenever I try to install a new application, I get 'Untrusted Package Errors'. For example, at the moment I'm trying to install 'Okular', but I keep getting an Untrusted Package Error upon ...
1
vote
1answer
92 views

How can i install anaconda on Ubuntu?

I need help to install the anaconda python distribution on Ubuntu 14.04. I ran in terminal the bash script Anaconda.sh, but I thing I have to do something else after that.
1
vote
1answer
58 views

AppIndicator documentation for Python

Where has the documentation for the Python bindings to AppIndicator gone? Visiting this official looking page, all the links are broken.
3
votes
2answers
69 views

What to learn Ubuntu application development in python, where to start?

I know basic python and i love it. I want to learn how to develop and publish Ubuntu applications in python but don't know where to start (I mean "the standard ways" to do so). It would be good if you ...
1
vote
1answer
23 views

How do I automate the activation of Python environment

I have created an environment, using virtualenv, for Python 3.4.1 which I installed on /opt. The environment is on ~/py34. Every time I want to use it, I have to type: source py34/bin/activate python ...
1
vote
1answer
43 views

Error starting python file using cron

I'm trying to get a python file to run every 2 mins, I'm using the following cron command but the script never runs. Would anyone know what the possible errors could be related to starting a python ...
0
votes
1answer
73 views

Problem with QtWebkit and QML in PyQt5 App Ubuntu for Devices (Ubuntu Touch)

I'm having problems with qtwebkit in ubuntu for devices (Nexus 10) when using pyqt5, the webview element doesn't show, and the application closes. But if I test the same .qml file with qmlscene it ...
0
votes
1answer
22 views

Button Click not recognised in Quickly

I am running quickly 12.80.1-0ubuntu2 and for some reason the apps that I generate no longer recognise button clicks. A few weeks ago I created an application using the ubuntu-application template ...
1
vote
2answers
201 views

Is there any way to add a new location to the list of places where nltk looks for the wordnet corpus?

I can't use the nltk wordnet lemmatizer because I can't download the wordnet corpus on my university computer due to access rights issues. I get the following error when I try to do so: ...
2
votes
1answer
288 views

Where did the easy_install and pip packages go?

I wrote a Bash script which automates the installation of an application based on ERPNext 3.6.1* on my Ubuntu 14.04 LTS laptop. Part of the script installs required dependencies using apt-get ...
3
votes
2answers
4k views

“ImportError: No module named XKit.xutils” while removing nvidia-current

I got the following problem: My PC shutdown while upgrading from 12.04 to 12.10. Everything seems to work but I can't install the missing updates. It always tells me to run apt-get install -f, but ...
1
vote
1answer
26 views

Installing pycairo on Python 3

I'm trying to install pycairo, but my symlink is sending it to python 2, though it requires 3. How do I get around this error? # ./waf build ./options() The project was not configured: run "waf ...
1
vote
1answer
29 views

I broke software updater by making python3 default

I tried to make Python 3 the default Python version by running: sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 This broke Python 2 programs, so I tried reversing the ...
17
votes
3answers
893 views

How to write Appindicators in python?

I'm looking to try and develop some simple indicators, for numlock/capslock and brigthness, etc. How would I go about creating indicators in python? Are there any tutorials that walk me through ...
15
votes
7answers
11k views

Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

I have an little app I wrote in Python and it used to work... until yesterday, when it suddenly started giving me an error in a HTTPS connection. I don't remember if there was an update, but both ...
1
vote
0answers
15 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
votes
2answers
38 views

Shifting between alternate versions of Python in Ubuntu

I am new to ubuntu and I wanted to shift my version to Python 3.4.1. So I ran the command: $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python But ...
0
votes
1answer
28 views

How to replace/update python-eggtrayicon in 14.04?

I've wrote a pygtk script using python-eggtrayicon but not available in Trusty. However, I've this package installed in my Trusty, because I come from Saucy. How can I replace it? Is it possible to ...
0
votes
1answer
116 views

I replaced pip for python 2 by installing pip3 with easy_install3 pip. How do I get pip to point at python 2's version?

I'm on an Ubuntu 12.04 system and I need to use python3 and pip3. Turns out I shouldn't have installed pip3 with easy_install3, because pip now points to pip3 from pip -V. I have tried reinstalling ...
1
vote
2answers
47 views

How to install Recoll's python:epub helper?

I installed the latest version of Recoll from the ppa because it was claimed it can index epub files. When I select "Show missing helpers" there's "python:epub" in the list. I cannot find it in the ...
0
votes
1answer
107 views

Downlaod the latest version of python-pip using apt-get

Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13 When I run sudo apt-get install python-pip It installs a a very old version. $ pip --version pip 1.0 ...
-1
votes
1answer
4k views

How to convert the time.time() to normal datetime format in linux? [closed]

I can convert the current date and time in seconds by using time.time() like now = datetime.datetime.now() now = time.time() print("the now time is") + str(now) Output the now time is ...
1
vote
3answers
55 views

I installed a custom .deb file that provided a package named “python” but now need to remove it [duplicate]

I think I may have botched my system. I have recently installed Ubuntu 14.04 on my computer. One of the first things I did was install python 3.3 from source (using make altinstall); but then I ...
0
votes
0answers
22 views

multiple connection pycurl ppp0 and ppp1

I have already looked at this question Dialing into multiple PPP connections and it's working well but multiple connections are not available if I'm adding table ppp0, the other ppp1 cant connect ...
0
votes
0answers
70 views

I need someone to go through my conky scripts and correct my mistakes

I modified some conky scripts that I downloaded online. I cant quite figure out how to make the rss feed run. I tried two methods to get the rss feed - the rss command in conky (used in dinamalar ...
-1
votes
1answer
298 views

cannot install lxml in virtualenv (python)

I cannot install lxml. In system i have python-lxml package, but i need other... Please help, if you can - my task is install lxml for development in virtual enviroment using virtualenv. I found this ...
5
votes
2answers
1k views

Rename a file during install of a Debian package

I have a python script that I want to package for Debian. I use a debian/install file where I wrote auto_dice.py /usr/bin/ Linitan then complains about the .py extension ...
17
votes
2answers
18k views

How do I run Python 3?

The description here says that 12.04 ships with python 3.2.3 as well. What command do I run to get this? Running python -v or python2 -V or python2.7 -V all give me the same result 2.7.3. There are no ...
1
vote
1answer
37 views

How to interact with python scripts on geany after running, just like on IDLE

On IDLE after running a script/program made with python by pressing f5, you could still interact with the program even after it finished running. But on Geany, when running it, and when the program ...
1
vote
4answers
316 views

Ubuntu Software Center, terminal and other applications don't work after uninstalling Python

I am a new Ubuntu user running Ubuntu 13.04. I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of ...
2
votes
0answers
38 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 ...
0
votes
1answer
288 views

Install package from ppa with setup.py file

I am writing a python program that I want to upload to a ppa so other people can install it on their machine. Right now I have a setup.py-file that copies the files to their place and installs the ...
4
votes
3answers
365 views

Bash / Python error handling?

I am trying to execute very basic Python code containing error handling as a Bash script, but while the code seems to run OK in Python, the code generates problems when executed under Bash. ...
0
votes
0answers
99 views

unable to install a package using pip

I'm triying to install a package using pip inside a virtualenv: pip install fuse-python but the output is Downloading/unpacking fuse-python Downloading fuse-python-0.2.tar.gz (53kB): 53kB ...
0
votes
0answers
181 views

OpenERP server problem message when installing an app

I recently installed open erp v7 on ubuntu 13.10, I could install the warehouse app fine, as well as the sales app , but I'm having trouble installing a few other apps. It looks like it is either a ...
0
votes
0answers
23 views

Trying to use Pandas in Python - Error: wrong ELF class: ELFCLASS32

I have installed the latest version of Pandas by using the following: sudo apt-get install python-pandas but I keep getting the following error message when i try to import into Python: ...
1
vote
1answer
143 views

Running a python program from Ubuntu's 14.04 GUI [closed]

I would like to launch a terminal window and run a python program, but 14.04 does not seem to have the ability to do so like some older versions. I would like to click on an icon and it start a ...
2
votes
0answers
68 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 ...
4
votes
6answers
2k views

Which window has current focus?

I'd like to know (programmatically) which window has current focus. Is there a window-manager independent way of discovering that? Otherwise, how does one determine which window has focus in Compiz ...
2
votes
1answer
531 views

Convertion of tiff image in Python script - OCR using tesseract

I want to convert a tiff image file to text document. My code perfectly as I expected to convert tiff images with usual font but its not working for french script font . My tiff image file contains ...
-1
votes
1answer
57 views

How do I resolve not fully installed package (python3-setuptools)?

I was trying to install python3-setuptools, and when i run $ sudo apt-get install python3-setuptools I get this error: Reading package lists... Done Building dependency tree Reading state ...
64
votes
4answers
75k views

How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time: os.system('sudo sh -c "echo date \'+%s\' -d \'+ \ ...
0
votes
2answers
169 views

When reading a text file, how to get rid of “\n” when extracted in python [closed]

I am writing a program where you have to extract bits of text from a text file. The specific bit of text is the save directory where I would like to save the files produced by my program. Here is my ...
2
votes
0answers
535 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 ...
0
votes
0answers
30 views

getting error in opening py file [duplicate]

I'm installing a software in Ubuntu 12.04 and got the following error: http://paste.ubuntu.com/7638369/ server@ubuntu:~/Desktop/revkit-1.3$ ./tools/gui/gui.py Traceback (most recent call last): ...