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
4k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
0
votes
0answers
15 views

I am running Ubuntu 14.04, python 2.7.8, I try to install python-setuptools, but it is giving following message

I am try to install python-setuptools but getting following messages: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: $ sudo apt-get ...
1
vote
1answer
383 views

Is it possible to install Python 3.x in 14.04 LTS, or upgrade from Python 2.7.6 to 2.7.8?

I'm looking to pick up some programming skills and after looking into it a bit, I came across an article that recommended that I learn Python as a way of getting started at programming before moving ...
-1
votes
1answer
16 views

Generate a combination of characters using python

from itertools import combinations f = open('snc.csv', 'w') for comb in combinations(range('1','20'), 5): f.write(str(comb)) f.write('\n') f.close() My scripts works with numbers, i want it ...
0
votes
0answers
9 views

Error installing Mailman bundler (mailman + postorius +hyperkitty)

I am trying to install Mailman 3 bundler on Ubuntu 14.04. I am following direction on the README file which is the same as this one, http://mailman-bundler.readthedocs.org/en/latest/ I had trouble ...
0
votes
0answers
11 views

Error when using Resynthesizer plugin in Gimp 2.8.10

I'm trying to make Resynthesizer plug-in work in Gimp 2.8.10 under Ubuntu 14.04 TLS but I get this error: Traceback (most recent call last): File "/usr/lib/gimp/2.0/python/gimpfu.py", line 699, in ...
0
votes
1answer
33 views

How do I upgrade from Python 2.7.6 to 2.7.8?

After using easy_install I find that I am still unable to upgrade the default Python version for my newly installed Ubuntu system. The main error, from what I can tell, is that I'm missing the ...
1
vote
1answer
21 views

Installing pyGPs - A Package for Gaussian Processes

I am doing a project which predicts expected electrical load every half an hour based on Gaussian model of previous 1 year data. I am currently using python 2.7.3 for implementing this project. For ...
4
votes
2answers
296 views

Command completion in R and python

In bash terminal, I could configure the command completion by inserting these lines to the /etc/inputrc file: $if Bash # Search history back and forward using page-up and page-down "\e[5~": ...
0
votes
1answer
17 views

Weechat error: unkown command “script” (type /help for help)

While trying to set an autoloading python script in ubuntu, I received the error listed in the title. A google search returned no similar issues and when I type /help scriptthe output returns: No ...
1
vote
0answers
21 views

Use specific part of an output [on hold]

I would like to know how to use a specific part of an output.This is part of a python programme. For example when I run success=( "john --show ~/users_pswds") I get this output: 0g 0:00:00:17 ...
0
votes
1answer
17 views

Spyder Python 3

I'm looking how to download and install spyder 3, i'm running Ubuntu 14.04, this is my computer performance: Ubuntu 64bits Lenovo 510 Core I7 Ram: 8go Thanks Guys :)
0
votes
1answer
23 views

cudamat test exception: error initializing CUBLAS

I've installed nvidia drivers ,cuda and cudamat. When I run test_cudamat.py, It gives me this exception: cudamat.CUDAMatException: error initializing CUBLAS: (err=-2) I tried adding libcublas.so ...
0
votes
0answers
19 views

Problem in using “John the ripper” in program

I am trying to create a program in which users input a username and password. then John the ripper cracks their password if its weak. But when I run the program, I get this error No password ...
0
votes
3answers
148 views

How do I install graphics.py on Ubuntu 14.04?

I need to install graphics.py for class. How do I do that, and how do I install other Python modules?
0
votes
0answers
13 views

Python convert number [on hold]

Using python, how to make the values ​​in the form 1.23E-05 becomes the way 0.0000123? I've looked all bad documentation found nothing of the genre. Does anyone know how to do this?
0
votes
1answer
11 views

Installing python's numpy

I am trying to install numpy. I followed the solutions provided by a lot of similar questions in this site. Generally the process is fairly straightforward: sudo apt-get install python-numpy I ...
3
votes
2answers
261 views

python-nltk on Ubuntu 12.04 LTS: nltk.download('brown') results in HTML error 401

I have installed python-nltk on Ubuntu Server 12.04 using apt-get. But when I try to download a corpus, I get the follwoing error: $ python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] ...
2
votes
1answer
3k views

Getting “Python (v2.7) requires to install plugins” error during ripping

I have just installed Ubuntu 12.10 from a flash drive that you create from the official ubuntu website. I am getting some errors on the system quite frequently. I have tried redoing it but I keep ...
0
votes
0answers
26 views

Sublime-Text 3 build and run in terminal

So I'm using sublime-text 3 for programming. I write PHP, Python and C++. I like that Sublime-Text is able to compile my code. But problem is that when I want to use input in C++ or Python, then ...
3
votes
2answers
6k views

PyDev not found in Eclipse Kepler Eclipse says it's correctly installed

I suppose it's a similar problem as this question, but I was asked to file a separate question, because my problem is Python-3-related. Situation: Ubuntu 12.04 64bit, Python 3.2.3, installing Eclipse ...
1
vote
1answer
51 views

notify-send does not work with root on Ubuntu 14.04

I have a small python script that I start it using a shell script stored in "/etc/X11/Xsession.d" The code is very simple it show a notification message import os import time while True: ...
0
votes
0answers
10 views

Convert filesystem to LVM - blocks

I'm trying to convert and ext4 filesystem to LVM. I found a script called blocks that pretty much automates most of it but am having issues getting it working. https://github.com/g2p/blocks#readme ...
1
vote
1answer
41 views

Installing matplotlib on Ubuntu 14.04 after installing Python 3 with pyenv

I am using Ubuntu 14.04 with Python 2.7.6. I have installed matplotlib for Python 2. Now, I just installed Python 3.4.2 using pyenv install 3.4.2. I then ran pip install matplotlib to install ...
1
vote
1answer
46 views

jumping cursor when using python interpreter in terminal

When I am typing in a long command while using the python interpreter in terminal, the cursor will suddenly jump all the way back to the beginning of the line that was just typed and start ...
76
votes
8answers
39k views

Is there an GUI Designer for python?

Is there a GUI IDE for programming python just like java has netbeans? I wanted one where we could drag & drop test boxes & labels just as we do in swing components using netbeans or eclipse. ...
0
votes
0answers
21 views

What's the difference between python3.4 and python3.4m? [duplicate]

As the subject line. What is the difference of these two executables?
1
vote
3answers
67 views

Sort videos by bitrate

I have a folder with some 300 videos. I want to sort these by their video bitrate. I use a command 'mediainfo' to obtain the bitrate info of a file . Is it possible to write a script (possibly in ...
0
votes
0answers
19 views

Quickly version numbering

I have been experimenting with quickly, and more specifically, packaging. I have been using this command: quickly create I am quickly (heh heh get it, 'quickly') getting frustrated that the version ...
0
votes
1answer
21 views

Error importing lxml package python in Ubuntu

When I try importing lxml package in python I am receiving the following error. Traceback (most recent call last): File "<stdin>", line 1, in <module> File ...
1
vote
2answers
131 views

Problem installing any new packages in Ubuntu because of python [closed]

I am having trouble installing any new packages in Ubuntu because of python. I tried sudo apt-get install python3 python3-dev but I am getting the following output :: Reading package lists... ...
2
votes
1answer
280 views

libreoffice Python Uno support for Python 2.7 on Ubuntu Saucy 13.10

I recently upgraded to Ubuntu 13.10 and discovered that the python-uno package is no longer available. Instead I find a python3-uno package. Unfortunately I need Python uno libreoffice support for ...
0
votes
1answer
30 views

software-properties-gtk no working

Hi Guys i am a newbie at Ubuntu and am having a problem... i managed to get everything working like a dream including, unfortunately after my latest upgrade/update, my software-properties-gtk ...
8
votes
1answer
3k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
1
vote
2answers
185 views

How to add permissions to files installed by dpkg-buildpackage or debuild

I build a package from my own source using dh_make and dpkg-buildpackage. The install-file in /debian specifies the destinations for the project files. To make the installed program work, they need to ...
0
votes
1answer
59 views

How can I associate .py files to “wine python.exe” and R-click > “Edit with IDLE” on ubuntu 14.04?

As the title states, I'm trying to use Windows python on linux, which already has worked flawlessly for what I've needed to run. however .py files open with gedit instead of python, meaning I ...
6
votes
2answers
3k views

Ubuntu 14.04 LTS and Python 3.4.1

Is it possible update default Python 3.4 to 3.4.1? How?
3
votes
2answers
58 views

PPA build fails due to Python.h missing

I'm trying to package my application for Ubuntu using PPA. The build fails because it can't find Python.h (build log here). This library is provided by libpython2.7-dev and I have it in build ...
1
vote
1answer
39 views

PySide-Tools in Python3 - Ubuntu 14.04

I'm working on a UI for a Python Programme I have and have been using Pyside-UIC to convert QTDesigner docs into python files on a previously windows 8 computer. That computer got corrupted so I've ...
0
votes
1answer
44 views

Changing SH Directory

I want to have a main launcher that executes a python program The directory is /Downloads/Test/ #!/bin/bash/ python Test.py I want to be able to run the file in the terminal, without the following ...
0
votes
1answer
14 views

get pdiffer working in ubuntu

I am trying to use pdiffer in ubuntu. It is a python interface to the PerceptualDiff tool. https://pypi.python.org/pypi/pdiffer I installed pdiffer using pip (after installing pip) I installed cmake ...
1
vote
2answers
74 views

mod_python and Apache 2.4

I have upgraded my server from Ubuntu 10.04 to 12.04. Everything is ok, but there is used Apache 2.4. But mod python require Apache 2.2 :( I have old version of trac (issue tracking system). Is there ...
4
votes
1answer
191 views

Why Netbeans not detecting Python?

I am using Netbeans IDE 8.0 in my system 14.04 LTS. I have installed Python plugin in Netbeans 8.0 by following this link. And also I have download python-3.4.1.tgz from this link and installed it ...
1
vote
2answers
90 views

How do I use regex to remove all punctuation and symbols?

I'm using Python 2.7 regex. I need to remove all symbols, punctuation, numbers and whitespace from strings in different languages. For example, these two strings: the following characters: ...
1
vote
1answer
100 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 ...
2
votes
0answers
17 views

Seeing buffering everytime self.webview.open is used to open URL in quickly

I am new to developing apps with python-quickly. Here is the sample code i am trying. Everytime I run this a video is played based on login.php. But it takes time to start or what I understand is that ...
0
votes
2answers
160 views

apt-get ends up with errors after nvidia 331 installation

I recently installed nvidia-331 driver via Software & Updates -> Additional Drivers tab. Now when I use: sudo apt-get install <package> or sudo apt-get remove <package> ...
11
votes
5answers
19k views

How do I install Python Pandas?

I'm trying to install Pandas (python package) on Ubuntu. I can't find it in the repos. Is there a package repo for this or do I have to install from source?
0
votes
3answers
2k views

How to install this file with Python?

I want to install this file: cvxopt in my Ubuntu 13.04. But I got the following error message: running install running build running build_py running build_ext building 'base' extension ...
8
votes
3answers
6k views

Making python 3.3 default python 3 interpreter instead of 3.2

So, to keep it simple. Ubuntu 12.10 has python 3.2 pre installed and it is linked to "python3". I downloaded python 3.3 and it's command is "python3.3". However, I downloaded pySide for python3 from ...