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
2answers
3k views

How to install and use jedi-vim python IDE for vim on ubuntu

How to install jedi-vim python plugin on vim installed on ubuntu and use it's features from remote terminal window. I have gone through documentation as describe but my vim acts in the same normal was ...
5
votes
1answer
3k views

How to conveniently install cx_Freeze for Python 3?

I want to install cx_Freeze for Python 3. My Ubuntu 14.04 has Python 2.7 and Python 3.4. For Python 2 I could install cx_Freeze very conveniently using: sudo apt install cx-freeze However this only ...
-1
votes
2answers
107 views

Simple Text. Build doesn't work. What's wrong?

If I press build with following script: if __name__ == "__main__": class Strom(object): def __init__(self): self.preis_kilowattstunde = 0.21 def ...
2
votes
2answers
1k views

How to run a python definition inside a .py file from the shell?

My function sits inside a .py file with the very same name as the function: emp@emp:~$ python ~/Dropbox/emp/Python/stromkosten_pro_jahr.pyempedokles@empedokles:~$ stromkosten_pro_jahr(20,3) bash: ...
4
votes
2answers
1k views

Can I safely uninstall older versions of Python after upgrading?

I upgraded to Ubuntu 14 and I see I have a number of Python folders .... Python 2.7 and so on up to Python 3.4 . Do I need to leave all the older ones alone or can they be deleted? I see that ...
0
votes
1answer
238 views

Unselect the Gtk TreeSelection when cleraing the TreeStore model

I followed the python-gtk-3-tutorial and implemented a simple file browser using Gtk TreeView. It works pretty well, but but my problem is, that by the time of the initialization the first item in the ...
2
votes
1answer
268 views

Ubuntu, gtk 3.10.8, not able to visualize a menubar made by Glade

My problem is that I've drawn a UI with Glade, but the menubar doesn't want to be drawn. Here is the xml, just a sample: please try to check out the properties. It is a very simple menubar but I ...
1
vote
1answer
673 views

How to use python3 in emacs on ubuntu 14.04

I am using emacs in python mode. To run a python file I use the command C-c C-c. Emacs automatically start to run python 2.7 while I would like to use python3. Once I have been able to solve ...
0
votes
1answer
43 views

To run a dialog box as a result of clicking a button in quickly using python

I am developing an application that has various buttons such as addition, multiplication and so on.. now when I click on addition button I want a dialog box to be displayed that has labels n text ...
2
votes
1answer
306 views

Updating appindicators label does not work from python thread

I am new to Python and GUI programming. I was trying to learning both by doing a small application. In my application, a background process should run always and show the user's some fictional quota ...
0
votes
3answers
143 views

Ubuntu Quickly: How do I set a button to launch a specific Ubuntu Application

I'm very new to linux and I don't know very much. I was creating my own application with Quickly, and I wanted to have a button which launches the Hardware Information application "Hardinfo". I'm very ...
0
votes
0answers
10 views

How to have a process automatically restart [duplicate]

I have a simple home automation program written in Python that reads events from USB and sends commands to a server. It runs on a headless Ubuntu server. Basically, the program does a while true loop. ...
2
votes
3answers
82 views

How do I install python through the terminal?

I figured out my problem guys. I had to downlowd eclipse, and it ran through that. sudo apt-get install eclipse Sorry about my lack of info. :)
0
votes
2answers
1k views

How to set the correct python path on Ubuntu [closed]

I'm trying to run a simple python program on ubuntu server 12.04. However I get an import error for a module I've written. The module folder has an init.py folder in however python does not seem to ...
2
votes
2answers
2k views

How to install kivy under ubuntu?

Can someone provide me with clear install instructions for kivy? Their install instruction is not very good. But I have tried, which I've found here: sudo add-apt-repository ppa:kivy-team/kivy sudo ...
6
votes
1answer
6k views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories able to create Excel 2007+ xlsx files from a script (python or perl) My requirements: 100% compatible Excel XLSX files. Solid ...
3
votes
2answers
597 views

How can I get the (XDG) Default User Directories from Python?

By example, In English the default user folders will be: $HOME/Desktop .... $HOME/Videos In Spanish the default user folders will be: $HOME/Escritorio .... $HOME/Vídeos The file ...
3
votes
1answer
139 views

why does python-sympy need 520MB?

I wanted to install sympy so when I typed sudo apt-get install python-sympy I get the following output: The following NEW packages will be installed: dvipng fonts-cabin fonts-comfortaa ...
1
vote
0answers
207 views

Problems with RS232 cable and the communication

Let me start out by saying that I hope this is the right place to ask. My problem is not purely defined yet and I am hoping you can help me shed some light on what is going wrong. So, the deal is ...
1
vote
1answer
664 views

Pango error in Ubuntu 14.04

I can't get software-center and other Python applications to run in Ubuntu 14.04. The error I get in the terminal is: Traceback (most recent call last): File "/usr/bin/software-center", line 25, ...
1
vote
2answers
380 views

python import module error

Everytime i run my script i get: File "./ciinstall.py", line 35, in <module> import npyscreen ImportError: No module named npyscreen Here is my code. It checks to see if mypyscreen is ...
0
votes
1answer
111 views

Can't get buttons to work wx.python (ubuntu 12.04 LTS )

try: import wx except ImportError: print 'Module not found' class Frame(wx.Frame): def __init__(parent,id ): wx.Frame.__init__(self,parent,id,) panel = wx.Panel(self) ...
0
votes
1answer
210 views

maas-pserv main process ended, respawning

I was trying to get MAAS cluster controller running on Ubuntu 14.04 using a clean server install and adding the MAAS package for the cluster-controller manually later. I have another machine running ...
3
votes
1answer
64 views

How to understand apt.log?

First, a little context: I have a machine with Ubuntu 13.10 64bit with Unity, that i use for development. As such, i updated several packages manually, and even installed/compiled some from sources ...
0
votes
1answer
337 views

dpkg doesn't function properly after upgrading an AWS EC2 to 14.04

After running do-release-upgrade -d on our staging EC2 instance, I've encountered a problem with dpkg. My original problem was that mkvirtualenv command was failing with the following error: Unknown ...
1
vote
2answers
558 views

Missing: “/usr/include/python3.3m/Python.h”

I recently moved to ubuntu 14.04. I can't compile blender afterwards. It says the error message below CMake Error at CMakeLists.txt:2220 (message): Missing: "/usr/include/python3.3m/Python.h", ...
3
votes
2answers
3k views

Unable to run python file from terminal

I am not able to run this pyhton file from terminal. I have added the shebang #!/usr/bin/env python at start of the file. Am I doing something wrong? How can I run this file from terminal? EDIT: ...
0
votes
1answer
232 views

How to install Python3.3.5 on Ubuntu Server 12.10?

I need Python 3.3.5 on Ubuntu Server 12.10. I want to run apt-get install python3 but I am not sure this will lead to Python3.3.5 version installation. In other words: how can I install the exact ...
0
votes
1answer
277 views

How to install classicmenu-indicator or python-appindicator on Ubuntu 14.04 x64?

I installed Ubuntu 14.04 x64. When I try to install classicmenu-indicator it says about unresolved dependency python-appindicator When I try to install python-appindicator it tries to install ...
6
votes
1answer
1k views

Why I can't use update-alternatives to select Python 2 or 3?

Is there a particular reason on why update-alternatives is not working with Python since ubuntu comes bundled with different versions?
0
votes
1answer
46 views

File not created by a python script that runs on boot

I have scripted two python codes. one, to run on boot and to create a file locally in the same directory where the code is placed another one to sense a low to high signal in GPIO. I have placed the ...
7
votes
5answers
530 views

How can I combine the find command with other commands so I don't have to navigate to the folder?

Sometimes I want to run certain files, but I don't want to navigate all the way to the folder. If I know the file name and find -name file_name.py only returns one result, can I just use that? For ...
2
votes
1answer
206 views

How to use supervisorctl on Ubuntu?

I'm trying to install plumi And I did sudo apt-get install supervisor but ./bin/supervisord doesn't work, nor ./bin/supervisorctl status sudo service supervisor status shows that it's running but ...
1
vote
1answer
305 views

How to install Plone?

I'm trying to install Plone. The installer says: $ sudo ./install.sh Usage: [sudo] install.sh [options] standalone|zeo Install methods available: standalone - install standalone zope instance ...
4
votes
1answer
128 views

Correct handling of application URIs from Unity Dash

At some point, Unity changed the Uri type it returned when a drag-n-drop operation occurred of applications from the Unity Dash to a Gtk window in an app I wrote. In 13.04 (Unity 7.0), the data call ...
7
votes
1answer
2k views

Can Python 2 be safely removed from Ubuntu 14.04?

I have updated my PC from Ubuntu 13.10 to Ubuntu 14.04. I heard that Ubuntu 14.04 does not include Python2, but my Ubuntu 14.04 system still has Python 2 installed. Can I remove Python 2.7.6 from ...
1
vote
2answers
2k views

sudo pip install error

I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7. pip --version pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7) Unfortunately, since trying to upgrade one of ...
0
votes
1answer
4k views

ImportError: No module named _io

I just fresh installed ubuntu 14.04LTS and i am trying to use pip but i am guetting the following traceback: (nlmanagement)psychok7@Ultrabook:~/code/work/nlmanagement$ pip freeze Traceback (most ...
0
votes
1answer
169 views

Install something without make install [closed]

I have been struggling for few days trying to install a software. I'm not actually working on Ubuntu but I think the steps to do are the same. Working on a gentoo (The operating system of the Robot ...
5
votes
3answers
799 views

Is Python 2 removed from 14.04 CD images?

I haven't seen an update on the status of removing Python 2 from the CD images, and this page has last been updated late 2013.
6
votes
1answer
1k views

do-release-upgrade: python install is corrupted

I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade and encountered the following problem: Can not upgrade Your python install is corrupted. Please fix ...
0
votes
2answers
277 views

How to make a python script a command?

I'm trying to make a python script into a command, eg: google's ipaddr.py (http://code.google.com/p/ipaddr-py/). I want to be able to type ipaddr and it puts out what I want. Is this possible? I've ...
1
vote
1answer
54 views

How to use manually installed python for personal programs without breaking any other application?

Hi I'm new to ubuntu and I have the following problem: I'm aware that ubuntu comes with a python version, but I'm running in a web host and I don't have the sudo command and I only have access to my ...
1
vote
1answer
1k views

OpenCV error in setting resolution with c910

I've been trying to use OpenCV to control my webcam (Logitech c910) through python. I 've managed to capture images through .read() but they are 640 x 480 and I haven't managed to set the resolution ...
7
votes
2answers
18k views

How to install opencv 2.9 for python?

I have been having the exact same problem as described in this post and someone in the answers suggested that you upgrade to opencv version 2.9. I was wondering how do that? I installed the version ...
2
votes
1answer
6k views

Why do I get ImportError when trying to import Pandas Python module?

I installed the Pandas module for Python 2.7 using apt-get. However, when I try to import the module, it raises an ImportError: import pandas as pd File ...
0
votes
1answer
836 views

How to install antlr3 python module on Ubuntu?

If you are getting "Import error: No module named antlr3" while running python application. For example, KeyboardLayoutEditor, Django apps.
2
votes
1answer
351 views

Can't install python-pandas on ubuntu

I am trying install python library pandas on ubuntu system, and it seems to work, but it it does not. Here is what I did: sudo pip install pandas This seemed to install pandas properly. I got this ...
3
votes
1answer
41 views

Finding Mouse click position in IconView in GTK

I am building a file browser using Gtk.IconView in python. I am trying to find the path of an icon selected using " selection-changed" signal using gtk.IconView.get_path_at_pos(x,y). The docs are mum ...
0
votes
1answer
70 views

Ubuntu 12.04 desktop with no launcher and no shortkeys working [duplicate]

I have accidentally uninstalled python 2.7 and python-minimal from my Ubuntu. It gave me an error saying wicd has shut down and there are broken packages. When I restarted the system, only the ...