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

3
votes
2answers
76 views

Does lens exist in Ubuntu14.04?

When I import 'Lens' from 'gi.repository' in Python, it shows that the Lens doesn't exist, as well as 'Scope'. But 'SimpleScope' exist. Is there any structural changing between Ubuntu 14.04 and ...
1
vote
1answer
4k views

cannot install lxml in virtualenv (python)

I cannot install lxml. In system i have python-lxml package, but i need other... Please help, if you can - my task is install lxml for development in virtual enviroment using virtualenv. I found this ...
2
votes
0answers
109 views

Python GTK: How to stop a function from happening if a checkbox is checked

In my program I have one of those annoying popups that alerts the user to go check the settings. I have a checkbox that if checked, is supposed to never show the popup again. I have no idea how to do ...
4
votes
3answers
621 views

Bash / Python error handling?

I am trying to execute very basic Python code containing error handling as a Bash script, but while the code seems to run OK in Python, the code generates problems when executed under Bash. ...
1
vote
1answer
445 views

Trying to use Pandas in Python - Error: wrong ELF class: ELFCLASS32

I have installed the latest version of Pandas by using the following: sudo apt-get install python-pandas but I keep getting the following error message when i try to import into Python: ...
1
vote
1answer
1k views

Running a python program from Ubuntu's 14.04 GUI [closed]

I would like to launch a terminal window and run a python program, but 14.04 does not seem to have the ability to do so like some older versions. I would like to click on an icon and it start a ...
1
vote
1answer
757 views

How to interact with python scripts on geany after running, just like on IDLE

On IDLE after running a script/program made with python by pressing f5, you could still interact with the program even after it finished running. But on Geany, when running it, and when the program ...
-1
votes
1answer
211 views

How do I resolve not fully installed package (python3-setuptools)?

I was trying to install python3-setuptools, and when i run $ sudo apt-get install python3-setuptools I get this error: Reading package lists... Done Building dependency tree Reading state ...
0
votes
2answers
490 views

When reading a text file, how to get rid of “\n” when extracted in python [closed]

I am writing a program where you have to extract bits of text from a text file. The specific bit of text is the save directory where I would like to save the files produced by my program. Here is my ...
0
votes
0answers
38 views

getting error in opening py file [duplicate]

I'm installing a software in Ubuntu 12.04 and got the following error: http://paste.ubuntu.com/7638369/ server@ubuntu:~/Desktop/revkit-1.3$ ./tools/gui/gui.py Traceback (most recent call last): ...
1
vote
1answer
617 views

unable to install a package using pip

I'm triying to install a package using pip inside a virtualenv: pip install fuse-python but the output is Downloading/unpacking fuse-python Downloading fuse-python-0.2.tar.gz (53kB): 53kB ...
0
votes
2answers
66 views

How to block certain characters from a string in Python [closed]

I am writing a program that takes the text written in a text document called datafile.txt, then prints what is in the file. The text that is in the file is is "Hello World", but the text that prints ...
-2
votes
1answer
121 views

Python: How can I store a variable changed by the user? [closed]

I am writing a program where basically you type information, and the information is saved in a text file. The program has to know where to save that specific text file. I have added a menu button that ...
-1
votes
1answer
50 views

Python: How to have to change a variable once, and never change it again [closed]

flub = raw_input("Where would you like your save directory to be?) SaveDir = flub Hello ubuntu, I am writing a python program. My question is, how can I make it so a raw_input asks me a question ...
2
votes
1answer
469 views

Cannot install any package via apt-get

So my problem is quite easy to describe: I can't install anything in my Ubuntu installation. apt-get stopped working after I tried to fix some other package errors I was getting. Now I'm nowhere. Let ...
2
votes
1answer
589 views

How to convert a .glade file to a .py file

I have been using gtk a lot to make my python programs have a graphical interface, and it's pretty awesome. I recently discovered Glade which is a hassle-free way of making a GUI for your programs. I ...
0
votes
1answer
138 views

Python Executable Upon Double Click

I know how to make a python script run using the terminal to open it. I would like to know how to open in the terminal upon a double click.
2
votes
0answers
254 views

Why does Ubuntu's webkit inspector look (and work) just like Safari?

In older Ubuntu, the python-webkit inspector looked like Chrome, as you can see in these screenshots: http://stackoverflow.com/questions/13132459 (It had some annoying bugs, too.) I see Midori's ...
2
votes
2answers
358 views

How to install Recoll's python:epub helper?

I installed the latest version of Recoll from the ppa because it was claimed it can index epub files. When I select "Show missing helpers" there's "python:epub" in the list. I cannot find it in the ...
1
vote
1answer
428 views

Two python distributions, sudo picking the wrong one

I'm back to Linux after an over 10 year abstinence (fool me thinks). And a little rusty in the sys admin department. I'm faced with an issue with my python distribution. I'm using Python 2.7, but ...
1
vote
0answers
3k views

Software center crashes on startup [closed]

EDIT: Here's why I disagree with the dupe status: I have different symptoms. The dupe required a force close. Mine crashes silently and dies before the GUI even appears. All I see when starting from ...
0
votes
1answer
102 views

Can't find my installed application (VPython)

I am using Ubuntu 10.4 and just installed VPython but could not find it to run. In the software center, its showing that it is installed. I tried Alt+F2 but it says could not open location. Can anyone ...
0
votes
1answer
40 views

Which user is logged in, with likewise and Ubuntu12.4?

I need to know which user is logged in my computer but with likewise package installed it does not work. I've used the following commands who users psutil.get_users()[with python] in all cases the ...
0
votes
3answers
198 views

alias/function with command line arguments

I'm tired of typing manage.py startserver 10.211.55.4:4000, so decided to make an alias for that. Only thing is: the port sometime changes. So I did this in bash profile: function runserver() { ...
-1
votes
1answer
66 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
215 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
105 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
157 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 ...
14
votes
2answers
12k views

Ubuntu 14.04 LTS and Python 3.4.2

Is it possible update default Python 3.4 to 3.4.2? How?
0
votes
2answers
145 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 ...
3
votes
2answers
8k 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
94 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
2k 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.
3
votes
1answer
840 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
183 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
322 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
745 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
1k 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
148 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
287 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 ...
1
vote
1answer
834 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
1
vote
1answer
264 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 ...
1
vote
3answers
10k 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
218 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 ...
1
vote
1answer
201 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
435 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. ...
3
votes
1answer
3k 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
48 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
382 views

How to set up gcalcli?

I found this Linux Journal article and really would like to get gcalcli working on my PC. I tried both installing from source, as per article and from Ubuntu repository sudo apt-get install gcalcli. ...