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

Error while trying to run Pycocuma Contact Management program

I need help understanding this message! mainctrl = MainController() File "/usr/lib/python2.7/dist-packages/pycocumalib/MainController.py", line 79, in __init__ self.view = view = ...
1
vote
1answer
55 views

Python not working after trying to upgrade to a newer version of Python

Ok, this is totally my fault. I should not have tried to install and compile Python 2.75. After everything went haywire, I saw someone on this site caution against doing this very thing. I am running ...
1
vote
3answers
226 views

Python command in bash does not find -c flag

I have two python lines in my bash script, both should run with -c flag, but once I run the Bash script it tells me that it could not find -c flag that is needed for python to run the command in Bash. ...
0
votes
0answers
32 views

Bash if password filled save it

I am trying to save a password to gnome keyring via python script. The python script will be runned from bash script if password is filled in zenity GUI. Example: User inserts hes/hers password to ...
3
votes
1answer
75 views

error importing numpy into python

Hello I know there are a lot of posts already about this but after reading through previous posts I still have not found a solution to my issue. To install python I followed the steps of this post ...
1
vote
1answer
41 views

Why is using the # symbol as a preface not a comment? [duplicate]

< - - Linux Noob. I am normally on Raspberry, but the # symbol caused me to move my question here. Attempting to run a script, and failing, I found answers in Raspberry to use the following ...
1
vote
1answer
114 views

How do I enable Pâté Python plugin in Kate?

On Kubuntu 14.04 I'd like to use a Python plugin called Pâté in Kate. It's listed as a plugin there. But then it shows an error in the configuration dialogue. The help page is not useful at all. ...
0
votes
1answer
72 views

How to change default python version from terminal? [duplicate]

I'm using Ubuntu 14.04 where the default python version is 2.7. I would love to type python3 to run python 3.4. How can I set that ? (After that, I think I can run python 2.7 by typing python2).
1
vote
1answer
22 views

winpdb GUI not running

I installed winpdb ( a python debugger ) . When I tried to run it's GUI version it showed this error wxPython was not found. wxPython 2.6 or higher is required to run the winpdb GUI. wxPython is the ...
0
votes
0answers
14 views

revkit installation [duplicate]

so i need to install this software called revkit on ubuntu 12.10. below are the instructions as per the manual: Requirements RevKit needs a couple of packages which can easily be installed with the ...
0
votes
1answer
379 views

How to install the gedit markdown-preview plugin on 14.04?

I've just installed the markdown preview plugin for gedit and I get the following error on the console when I try to activate it in the plugins tab: Traceback (most recent call last): File ...
1
vote
2answers
114 views

How to install RevKit

I’m trying to install a software called RevKit on Ubuntu 12.10 and the following instructions1 need to be followed: RevKit can be downloaded from the www.revkit.org website. Opening a Bash ...
0
votes
0answers
28 views

xdot python script for viewing graphs generated by graphviz is not working on ubuntu 14.04

After upgrading my system to ubuntu 14.04 i am not able to open graphs generated by graphviz using xdot. Prior to that i was using ubuntu 12.04 and there was no problem of such sort observed. below is ...
0
votes
1answer
106 views

Cannot restart apache after installing mod_wsgi

I am trying to learn python web application development using Ubuntu 12.04. I have installed apache2 and enabled mod_wsgi using the command sudo a2enmod wsgi. Now when i try to restart the apache2 it ...
1
vote
0answers
25 views

Error when installing python-guestfs on Ubuntu 12.04 [closed]

I am trying to set up OpenStack on 3 vms using Vmware. I am at the part of configuring a compute node and the first step is to install nova-compute-kvm and python-guestfs. After I issue the apt-get ...
0
votes
0answers
12 views

How to install pythoncard?(any alternate method)

How to install pythoncard?I have tried browsing the software center for it and I installed it,but when I run a pythoncard-based program,it shows me that there is no module named pythoncard.Can I ...
0
votes
2answers
65 views

How to iterate a Python dictionary with tuples? [closed]

I have the following dictionary: zimmerliste = {'bad_eg' : ((5,2),(5,2),(5,2),(40,.05)), 'gang_eg' : ((7,2,),(40,1.5))} The key is a room in my house. The dictionary contains a tuple of a tuple. ...
1
vote
2answers
330 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 ...
3
votes
1answer
368 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
58 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
62 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
80 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 ...
1
vote
0answers
62 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
0answers
33 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
59 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
29 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 ...
1
vote
0answers
22 views

python3-distupgrade package upgrade fails in xubuntu 13.10

While doing a routine apt-get upgrade, the system tried to upgrade the python3-distupgrade package, and that's where things failed. The relevant error lines were: Preparing to replace ...
0
votes
0answers
18 views

Django chmod using wrong user:group

I have installed django and some other services to start up one front-end community forum. However i've managed to do it everythings run but i have problem with CHMOD permissions. My nginx server ...
2
votes
1answer
110 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
56 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
174 views

After starting upgrade to Ubuntu 14.04 and reverting to 13.10, eclipse pydev debugger stopped working

I started the upgrade to UBuntu 14.04, but it failed and the system reverted back to old settings. I have been convinced to stay with 13.10 for now. However, when running python code in eclipse with ...
0
votes
0answers
9 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
62 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
93 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
1answer
239 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 ...
5
votes
1answer
375 views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories (14.04) able to create Excel 2007+ xlsx files from a script (python3 or perl) My requirements: 100% compatible Excel XLSX ...
2
votes
2answers
91 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 ...
0
votes
0answers
68 views

/usr/bin/ld: error: cannot find -lpython2.7

While installing pyscard.py I get this error, gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib ...
3
votes
1answer
76 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
75 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
96 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
82 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
39 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
43 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
38 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 ...
1
vote
1answer
55 views

Why cant I install NLTK? [closed]

I am trying to install Natural Language Tool Kit for Python on my Unix machine as per the below: http://www.nltk.org/install.html however when I get to .." sudo pip install -U numpy" I get the ...
0
votes
1answer
78 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
191 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", ...
2
votes
2answers
376 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
62 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 ...