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

How do you fix “unmet dependencies … but [something] is to be installed” error?

I am trying to install and configure an Ubuntu, Django, and MariaDB stack. I have the latest (as of writing) MariaDB 10.0 installed, and as per the Django documentation regarding databases, I am ...
0
votes
1answer
38 views

apt-get -f install suggests removing python2.7 and installing python3

Since I have some dependencies problems (I am trying to install mysql-workbench in a Ubuntu 12.04), I tried to run sudo apt-get -f install. However, the output looks very scary, since it suggests ...
0
votes
0answers
14 views

update-manager command does not work in 14.04

When I run the command update-manager I get the following output: Traceback (most recent call last): File "/usr/bin/update-manager", line 115, in <module> app.start_update() File ...
0
votes
1answer
25 views

Use apt-get to install packages newer than Ubuntu release

I've been experimenting with an Amazon Ubuntu instance running 14.04 and am using python3-pandas package, which for this release is version 0.13.1, which is quite a ways behind the current version of ...
0
votes
1answer
12 views

Running python script from django views

Want to run a python script from django views. And I dont want to wait till the script execution. The python script should do its work in the background and in the meanwhile, I will send response to ...
0
votes
1answer
21 views

pycurl.error: (35, 'gnutls_handshake() failed: Handshake failed')

On trying to download from a https:// URL with PycURL 'PycURL/7.19.3 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3' in Python 2.7 on Ubuntu 14.04.2, I receive pycurl.error: (35, ...
0
votes
1answer
14 views

python-gi referencing wrong headers

I'm trying to use gtk+ with python in Linux Mint 17. After trying the jhbuild method of building the gtk libraries for python, I tried to install from the Debian repositories and I tried to install ...
-1
votes
1answer
15 views

How to run aws file on localhost

I'm new to Ubuntu and I installed python-flask and apache2 on my machine. I wish to run a python project that is presented in aws server. When I run the code it sucessfully runs on port 0.0.0.0:5000 ...
0
votes
2answers
18 views

Enable syntax coloring in Geany?

Online all the examples for Geany have syntax coloring, but I couldn't figure out how to enable this feature. I downloaded Geany, then created a new python file, but whenever as I type a keyword, ...
0
votes
1answer
18 views

How to give the “Session and Startup” feature a working directory for a python script

I turned a GUI that I wrote in python into an executable via chmod +x mygui.py, added a shebang. Then I added this script to the "Session and Startup" list of programs (Settings -> Session and ...
1
vote
0answers
24 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, ...
0
votes
1answer
19 views

Python error during MAAS upgrade

I tried to upgrade my MAAS installation like it was described in here: Upgrading MAAS from 1.5.4 to 1.7.0 or latest on ubuntu 14.04 but there is an error in one of the python scripts used during the ...
0
votes
1answer
20 views

Added wrong path to $PATH variable but can't find old varaible to delete it

I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
0
votes
1answer
34 views

How do I properly install a python app that is not packaged (and without installer)

Every few months I encounter an app (java, python, etc) that I would like to install in Ubuntu, but it doesn't come as a linux package, nor is there any included installer. It's not often that this ...
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 ...
0
votes
0answers
8 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = ...
0
votes
1answer
38 views

How do I install oursql using pip?

I have been attempting to install oursql using pip (7.1.0, I installed it using sudo easy_install pip as for my purposes the version provided by python-pip is too old) via running: sudo pip install ...
1
vote
2answers
46 views

Sublime text question

If I start sublime-text with sudo sublime I see package control and can access packages. If I start sublime-text with sublime Output of ls -la on directory: ls -la /opt/sublime_text insgesamt ...
0
votes
0answers
13 views

Spyder on Ubuntu 12.04 fails after trying to install ipython notebook

Spyder IDE was working fine on both Ubuntu 12.04 in both laptops(HP mini & old Compaq Evo610c) After trying to install python notebook, Spyder stopped working. However Pyhton 2.7.3 works fine. I ...
0
votes
1answer
66 views

Best way to install PyQt5 for Python 2.7 on Ubuntu 14.04

I am attempting to install PyQt5 on my Ubuntu box. I have been able to install the packages for Python 3, however,I have code that depends on pygraphviz which has a hard dependency on Python 2.7. I ...
1
vote
1answer
33 views

How to use python on eclipse?

I want to use python on Eclipse. How do I do that? I'm using Eclipse 3.8.1 on Ubuntu 14.04.
0
votes
1answer
20 views

How should I use pip to install pyreverse on Ubuntu 15.04?

When I attempt to install pyreverse, I get the following pip message: >sudo pip install pyreverse Collecting pyreverse Could not find a version that satisfies the requirement pyreverse (from ...
0
votes
0answers
48 views

Really installing PyQt4/5 for python 3.4 on trusty

I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
0
votes
1answer
31 views

Trouble with zip support in custom Python build: zipimport.ZipImportError: can't decompress data; zlib not available

I looked here but I am not getting a lot out of the answer: A big reason for this is because I am a new Linux user and I haven't seen all the commands in action yet. I have the exact same problem as ...
0
votes
0answers
29 views

POST request using python-maas-client

We can use python-maas-client for accessing the maas API. I need to know the way of performing the post request towards maas using the python-maas-client. Here it is important links: Link for MAAS ...
0
votes
1answer
20 views

IDLE installation in Ubuntu 14.04

Does anybody know which IDLE package I should install from Software Center in Ubuntu 14.04 assuming I want to program in python 3?
-1
votes
0answers
19 views

How can I make it so Python packages install to the python 3.4 interpreter

Every time i install a Python package, it installs to the 2.7 interpreter. I want them to install by default to this interpreter. Also, can I just copy the library and put it somewhere in the other ...
1
vote
0answers
38 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 ...
4
votes
2answers
50 views

Error installing matplotlib

I got the following error while trying to install matplotlib using pip under Ubuntu 15.04 (Python 2.7.9). Traceback (most recent call last): File ...
0
votes
1answer
35 views

Run open and read command on a file within python - not using a script

I'm going through the "Learn python the hardway" - it suggest running "python" from the terminal and using the 'open' and 'read' commands on a file. I created the provided script and sample text file ...
2
votes
0answers
21 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', ...
0
votes
2answers
53 views

trying to install mysql-connector for python 3

my experience is minimal with Linux so i need a little help! i am trying to install the python mysql-connector for python3.2, i was able to use pip to install it for python2.7 with 'pip install ...
-1
votes
0answers
26 views

how to detect mouse click in ubuntu using python2

Hello :)I'm new to both python and Ubuntu. I need to write a python program that can change slides of an impress presentation using mouse clicks. (eg: right click- next slide). i tried pymouse but ...
0
votes
0answers
25 views

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation)?

Emacs & Python: How to indent to the previous level of identation (go back one level of indentation) ? I've the following problem in Emacs when writing Python scripts: As the image below ...
0
votes
2answers
46 views

Run python script when a file has been added to a folder?

Is it possible to run a Python script when a file has been added to a folder? In my scenario I have a folder that contains movies and the Python script gets the details (name, year, plot, rating, ...
0
votes
0answers
12 views

Django and Gunicorn: 403 Forbidden

I have a django application inside /home//my_app that I am trying to deploy using gunicorn: sudo gunicorn --workers=2 -b :8081 tutorial.wsgi:application After deploying the application with the ...
0
votes
1answer
27 views

unable to install software due to pyconfig.h missing

I am using Ubuntu 14.04 with python 2.7.6 and the pyconfig.h is missing. After updating at the last it says the header file missing. The command is sudo pip install <software> How could ...
1
vote
0answers
17 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 ...
0
votes
0answers
22 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
0
votes
1answer
79 views

Getting started with iPython notebook

Please don't consider this a duplicate. I have seen a similar post and the recommended solution has not solved my issue. I need input for I can't find a solution elsewhere and iPython does not seem ...
1
vote
0answers
28 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
0
votes
0answers
167 views

Can't update my apt packages.. problems with python-oneconf, software-center.. pyclean & pycompile not found

I can't update-upgrade my ubuntu packages anymore after my latest update/upgrade/dist-upgrade here are some outputs : $sudo dpkg --audit The following packages are in a mess due to serious problems ...
0
votes
2answers
56 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
1
vote
1answer
26 views

Libreoffice+Python: Importing additional packages

I wrote some Python scripts that I use to get data from the web. These use the Selenium Webdriver bindings. This works fine with the system version of Python that I access via the terminal. I'd now ...
3
votes
1answer
68 views

Is there any tool for creating custom right-click-menu entries, that run Python scripts?

I would like to be able to go anywhere (google chrome, sublime text editor, etc), then highlight + right click on some text, then click a custom right-click-menu button which will run a python script ...
0
votes
1answer
39 views

Split screen plugin for gedit 3.10.4

I would like to split the screen in gedit in order to see simultaneously multiple files. I found this plugin https://github.com/jonocodes/GeditSplitView but after moving SplitView.plugin ...
0
votes
0answers
44 views

Issue at installing IPython via pip

I had an error while trying to install IPython. Here is the log: alumno@Usuario:/usr/bin$ pip install ipython[all] Downloading/unpacking ipython[all] Exception: Traceback (most recent call last): ...
0
votes
2answers
58 views

It's not exactly about ubuntu [closed]

This is more a plea for help from the ubuntu community. I've done a lot of searches and reading and I guess I'm missing something. I'm trying to write a very basic program in python, here's the issue: ...
1
vote
0answers
33 views

Python & Sublime text [closed]

I'm trying to build following python code in sublime text: def f(x): return -5 * x ** 5 + 69 * x ** 2 - 47 print f(0) print f(1) and receive following traceback when building: Traceback (most ...
1
vote
2answers
61 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...