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
539 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
53 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
514 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 ...
1
vote
2answers
851 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 ...
1
vote
1answer
1k 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
102 views

python-gi referencing wrong headers [closed]

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
93 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
198 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
62 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 Startup)...
1
vote
0answers
151 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
95 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
194 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
89 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
53 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
35 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 = pyglet.font.load(...
0
votes
1answer
604 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
80 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 ...
1
vote
0answers
87 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 ...
1
vote
1answer
4k 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
396 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
202 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 ...
1
vote
0answers
2k 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
3k 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
1answer
174 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 ...
3
votes
2answers
7k 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
vote
0answers
182 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 os....
4
votes
2answers
817 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 "/usr/lib/python2.7/dist-packages/pip/basecommand....
0
votes
1answer
376 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
129 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
3answers
4k 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 mysql-...
0
votes
0answers
63 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 ...
1
vote
2answers
384 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, etc)...
0
votes
0answers
102 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 ...
2
votes
1answer
1k 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
59 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
603 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
323 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
78 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
400 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
326 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
128 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
307 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 ...
1
vote
1answer
795 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
196 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
75 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
2answers
531 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 /usr/bin/lib/python2....
2
votes
3answers
206 views

How can I divide an output with 2 delimiters?

By dividing with the "·" and " " characters, I would like to turn this: Hel·lo my name is E·ric To this: Hel·lo my name is E·ric Hel·lo my name is E· Hel·lo my name is Hel·lo my name Hel·lo my Hel·...
-1
votes
1answer
197 views

Python is not working in ubuntu 14.04 LTS

I am getting the error: The program 'python' is not installed. You can install it by typing: sudo apt-get install python-minimal I have done this and it still gives me the same error.
0
votes
1answer
222 views

How do I get my devices connected on port 8000 for SimpleHTTPServer

I'm following along with the book How Linux Works, and am trying to get the Python SimpleHTTPServer to work on its default port. I can access my home folder on the local host, but any other computer ...
1
vote
2answers
242 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...