Tagged Questions

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
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
528 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
2k 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
51 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 ...
1
vote
1answer
2k 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
213 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
55 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
423 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
32 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
22 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
112 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
1k 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
1k 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
75 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
199 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
355 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
99 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
102 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
278 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
36 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
36 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
40 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
172 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
88 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
260 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
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
72 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
209 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
886 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 ...
3
votes
2answers
262 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
169 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
105 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
141 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
232 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
199 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
62 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
135 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
51 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
182 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
371 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
2k 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
106 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
0answers
129 views

system-config-samba and galternatives won't work on Trusty with similar errors

Fresh installed Trusty, then I installed two programs I always use, galternatives and system-config-samba. They both fail with similar output: system-config-samba output: gksu system-config-samba ...
0
votes
1answer
224 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
781 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
34 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 ...
0
votes
0answers
71 views

ninja ide programming python 2.x and 3.x

is it possible to program python 2.x and 3.x with Ninja IDE? if so, where do I specify which version I'm currently using? thanks peeps edit: actually, it seems that in the same file, ninja ide ...
7
votes
5answers
500 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
148 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 ...