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
8 views

Installing Numpy/Scipy for Blender 2.66a in Ubuntu 13.10

I am working with Ubuntu 13.10 and I would like to import Numpy and Scipy into Blender 2.66a (the default version of Blender that comes with Ubuntu 13.10). Here is what I have done: Check with ...
0
votes
0answers
6 views

Display Japanese/Chinese (non-ASCII) in Matplotlib on ubuntu

I am trying to display Japanese strings in Matplotlib using python. The general answer to this question is to manually set a compatible font[1], but I am having trouble with this in Ubuntu. I built a ...
-1
votes
0answers
26 views

Why can't I install Python on Ubuntu using a virtual machine

I have been trying for months to install Python for Ubuntu. I get there the following every time I try installing it: "file not found"
1
vote
0answers
10 views

Custom MOTD does not update until scripts finish

I recently got a small server and gave some friends accounts on it. They all have their own web pages in ~/public_html using lighttpd so I wrote a script to backup every user's public_html directory. ...
1
vote
0answers
23 views

Why use Python PIP on Ubuntu? [duplicate]

The Pip program is included by default with Python 3.4, and can also be installed on older versions. The aim is to provide a standard method of installing additional Python modules, which are ...
0
votes
1answer
35 views

Installed Pygame, but Python claims it does not exist

I want to use pygame, but I am having trouble installing/using it. It appears to be installed, but Python cannot find it. I know there are several similar questions about this, but none of them gave ...
0
votes
0answers
24 views

Ubuntu touch on Nexus 7 / vpn/ ssh/ python

I have installed the Ubuntu touch on my Nexus 7 recently. Initially I was facing issue with apt-get that I have resolved by remounting the partition with rw permission. Now when I try to install ...
0
votes
0answers
40 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
votes
1answer
32 views

Generate a combination of characters using python [on hold]

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
11 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
1answer
12 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
48 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
0answers
23 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
18 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
0answers
20 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
0answers
14 views

Python convert number [closed]

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
13 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 ...
0
votes
1answer
27 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
1answer
18 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 ...
0
votes
0answers
40 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 ...
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
61 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
49 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 ...
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?
0
votes
0answers
21 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 ...
1
vote
3answers
69 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
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
147 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... ...
0
votes
1answer
62 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 ...
1
vote
1answer
40 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 ...
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 ...
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 ...
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 ...
-1
votes
0answers
35 views

Python 2 segementation fault

I am quite a noob with ubuntu (or any linux system). Nevertheless I installed ubuntu 14.04 on a new computer (I had 13.something on my old one which used legacy boot , while the new one uses uefi) ...
1
vote
0answers
49 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
2answers
99 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
2answers
48 views

Using specific python version for apt-get in Ubuntu 12.04 LTS

On Ubuntu 12.04 LTS I have python2.7.3-0Ubuntu3.5 package installed. One of the libraries i am trying to install has dependency on (>=2.7.3.6). I went ahead and installed python 2.7.6 and even python ...
2
votes
2answers
95 views

How to isolate Python 2.7.X on Ubuntu 12.04 which has default Python 2.7.3? [duplicate]

I want to build Python 2.7.8 on my Ubuntu 12.04 machine, which has Python 2.7.3 as default distribution. I would like to "install" Python 2.7.8 but isolate it completely from Python 2.7.3 - meaning, I ...
1
vote
1answer
39 views

How to replace tk8.6 with tk8.5?

The title explains pretty much all I need to do. I need a downgrade from tk8.6 to tk8.5 on 14.04. There is some niche scientific python based software that I need to use, however it is incompatible ...
0
votes
0answers
60 views

power down happened during version upgrading

While upgrading from Ubuntu 13.10 to 14.04 unfortunately a power down happened and the PC got powered off. When again booted, I was neither able to upgrade version nor install any software through ...
0
votes
1answer
67 views

how to tell ubuntu to use python 3.4 instead of 2.7? [duplicate]

I have python 2.7 and 3.4 versions installed. But when I say say "python -V", it shows version as 2.7 not 3.4 How to tell ubuntu to use newest python? where is this setting configured ?
0
votes
1answer
34 views

What exactly is a connection through socket or what does the output of lsof tell us?

I'm streaming some files from S3 to an EC2 instance to get summary data from the headers. I use key.close(fast=True) for all the keys I get from boto.s3.bucket.Bucket.list() (python library to access ...
3
votes
2answers
303 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] ...
0
votes
2answers
68 views

fatal error :“python.h” no file or directory?

while looking for the solution of hungarian problem,I found this github link I went through the readme.md file and I performed everything described there, After copying hungarian.so in my directory ...
0
votes
2answers
192 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> ...
-1
votes
3answers
147 views

“Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel” while installing PyPy version of Numpy

I am trying to install the PyPy distribution of Numpy (Note that PyPy requires a different version of Numpy than that found in the repositories), but get the error: Cannot compile 'Python.h'. Perhaps ...
1
vote
1answer
22 views

How to get filename from FileChooserButton in PyGTK?

I'm using Glade and PyGtk to develop an application. Currently I'm using a button under a toolbar to open files using this code: def on_openVideo_clicked(self, widget): dialog = ...