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
votes
1answer
48 views

Desktop background after logging in Ubuntu 12.04

I am new to ubuntu and I don't know what to do in this problem. I wanted to completely uninstall python so i did sudo get-apt purge python in between this process I closed the terminal as I saw ...
0
votes
1answer
66 views

SimpleCV Camera and Sound error

I'm using an ubuntu computer, ubuntu desktop version. I'm trying to make a little script, which tells me when my camera sees my face, what the weather is like. This is going to be a bit long. I'll ...
0
votes
1answer
41 views

Error is occured when I try to build and install Numeric-24.2, anybody, help please me

vprasopchai@vprasopchai-Aspire-4720Z:~/Downloads/Numeric-24.2$ python setup.py build WARNING: '' not a valid package name; please use only.-separated package names in setup.py WARNING: '' not a valid ...
0
votes
0answers
19 views

How to install Python from the Tar.xz [duplicate]

I've downloaded the latest version of Python from their website, but I'm not exactly sure as to how to install from the tar.xz. I've extracted it to the downloads folder, but it leaves me with a ...
1
vote
0answers
60 views

Does pip overwrite packages installed by apt-get?

What happens if I accidentally pip install a package that I already installed using apt-get beforehand? Do I simply get to use the latest version (i.e. probably the one I installed using pip)? What ...
4
votes
1answer
2k views

Ubuntu 14.04 LTS and Python 3.4.1

Is it possible update default Python 3.4 to 3.4.1? How?
0
votes
2answers
61 views

Broken package ubuntuone-control-panel-qt

An interrupted installation of updates resulted in ubuntuone-control-panel-qt breaking and now I cannot install or update anything. There seems to be an error in python2.7 - ImportError: No module ...
2
votes
2answers
1k views

Pycharm Pro and Ubuntu

I have installed Pycharm on Ubuntu 14.04 using this useful guide. However the installation is the Community one and I'd like to get the Pro version for which I have a licence. Is there any way to ...
0
votes
1answer
46 views

Import error packages with Python installed on Ubuntu 12.04

I installed Python-3.1.3 on Ubuntu 12.04 Server Edition following this method. After that, I run a simple program calling to paramiko module. I got several errors related to package imports. The ...
10
votes
2answers
1k views

Symbolic links: why are they so bad?

Why is using symbolic links to change the default python version on Ubuntu considered as being unsafe ? I read this information on several forums but did not find an answer as to why is this so.
2
votes
1answer
194 views

system-config-printer broken after update to 14.04

After I upgraded to Ubuntu 14.04 the dialog system-config-printer in gnome runs into problems when called from the command line: sudo system-config-printer Traceback (most recent call last): File ...
0
votes
1answer
69 views

Problem with org.freedesktop.Geoclue.Providers.Hostip, running Qreator on Xubuntu-14.04

I installed Qreator using apt-get on Xubuntu-14.04: $ sudo apt-get install qreator But the application fails to start! When I try to run it via Terminal, the following error messages are printed ...
4
votes
2answers
99 views

How can I enable syntax highlighting in a Python file without an extension?

Turning on syntax highlighting in Nano is simple enough but I've just run into a non-standard issue. I have an executable Python script that doesn't have an extension. It's part of a virtualenv ...
1
vote
0answers
132 views

Tkinter not working

I recently installed Python and IDLE from synaptic. However, when I test Tkinter I get the following error: import Tkinter Tkinter._test() Traceback (most recent call last): File "<stdin>", ...
2
votes
1answer
369 views

Install python packages for specific python version

I understand that in Ubuntu 14.04, you have access to both python 2.7.6 and python 3.4.0. When getting python packages through the command line, how do I make sure that I am installing packages meant ...
1
vote
1answer
68 views

How To install kivy for python and its dependencies to build android apps?

I have ubuntu 12.04, I read the documentations and it confuses me, I just want to know what to type in the terminal or what and how to download whatever I need. Please Help.
1
vote
2answers
86 views

ImportError: No module name pyssh

I run: sudo apt-get install python-pexpect On my Ubuntu server 12.04 LTS, I have both Python2.7 and Python3.1.3 I run this script using python3.1.3 script.py, then python script.py but I get this ...
0
votes
1answer
209 views

ImportError: cannot import name Gdl from gi.repository

Trying to import the Gnome Docking Library I get the exception: ERROR:root:Could not find any typelib for Gdl ... from gi.repository import Gtk, Gdk, Gdl ImportError: cannot import name Gdl
0
votes
0answers
43 views

Run Twisted server on startup

I am pretty new to Ubuntu and tried to install portia according to this howto: https://github.com/scrapinghub/portia#running-portia Everything worked fine after I run the command twistd -n slyd. I ...
1
vote
0answers
68 views

ipython emacs send code to interpreter

I am using ipython3 with emacs. It works but I would like to define a command that automatically send the highlighted code to the console. How can I do that? This should be a short cut for the ...
0
votes
0answers
42 views

configure python and cvblob

Hi I'm trying to configure cvblob in order to use it with python ,using the explanition h here but when i came to test it i got this error: ...
0
votes
3answers
170 views

How to add a Python module to syspath?

Hi i have a file structure like this Folder Common foo1.py TestFolder foo2.py I want to import in foo2.py foo1.py. I tried but it doesn`t work on Ubuntu: ...
1
vote
3answers
62 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
14 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
70 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
279 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
40 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
169 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
47 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 ...
2
votes
1answer
289 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
204 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
36 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
1k 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
152 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
40 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
266 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
31 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
16 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
89 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
826 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
797 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
64 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
98 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
189 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
76 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
54 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
141 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
33 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
32 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 ...