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
64 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
49 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
18 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
74 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
56 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
27 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
vote
0answers
147 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
174 views

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

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
68 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
200 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
53 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
96 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
149 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
62 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 ...
5
votes
2answers
882 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
287 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
3answers
1k 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
431 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
27 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 = ...
2
votes
2answers
210 views

Cuda 6.0/PyCuda. 'ImportError'

I had Cuda 5.5 with pycuda working great, but then I needed to upgrade to CUDA 6.0. Now when I try to run a sample PyCuda program I get this : ImportError: libcurand.so.6.0: cannot open shared ...
4
votes
1answer
477 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 ...
0
votes
2answers
97 views

Where do I find Python2.7 in Ubuntu 14.04?

I'm using this tutorial to install Django with Postgresql in my Ubuntu 14.04. In the 4th step, it asked me to go to my python directory, so I ran $ whereis python2.7 and I got multiple directories. ...
0
votes
1answer
128 views

Always alert me install python-gevent but I have installed it

I installed python 2.7.8 on Ubuntu 14.04 then I installed greenlet and gevent but when I want to run a .py file: sudo python proxy.py terminal shows :please install python-gevent but I have ...
1
vote
1answer
30 views

How can I convert a ready Python project into DEB

I am using package guide of Ubuntu (http://packaging.ubuntu.com/html/packaging-new-software.html), but I am stuck in compilation stage. I can compile .deb using dpkg-buildpackage -rfakeroot -uc -us ...
0
votes
1answer
2k views

How can install python-dev for 2.7.8 in 14.04 off apt-get?

I have tried this and this and this and this Well nothing works with me, i got my amd64 system, 14.04 up and runnig, as I try to install wagtail, a django cms, i get the error. pysass.c:4:20: ...
0
votes
0answers
439 views

fresh install, python-software-properties unmet dependencies

attention: This might be more a question for "gis.stackexchange" but it is Ubuntu-related Geonode 2.0 is available for Ubuntu 12.04 but not for Ubuntu 14.04. According to the docs it should be ...
0
votes
0answers
53 views

anki issues how to make work

Hi further to my question ealrier Below is the error message I get from my computer when I try to use Anki (2.0.28) Today, I have ascertained that it is my computer and not the files for anki which ...
1
vote
1answer
228 views

Undo apt-get remove --purge

I wanted a fresh install of Python and ran sudo apt-get remove --purge python. Apparently it has killed almost everything I had installed in my system. Looking at the history.log I guess I could ...
4
votes
1answer
149 views

python GUI frameworks that support touch devices

Hello everyone I want to know what is the best GUI framework for python that supports touch I've been searching couple of hours and this are results which I found: PyQt5 I heard for Qt and I know ...
1
vote
1answer
31 views

How can I take a textbox text entry and make it a variable?

I am having trouble with Python and would like to have some help. I am making a apt GUI 'front-end' with a nice UI. def on_textbox_changed(self): self.instvar = ...
0
votes
2answers
67 views

Do I need to install anything else? [closed]

I am a new Linux user I just swapped over from Windows. Well rather I'm dual booting but plan to use Ubuntu as my primary OS from now on. I just installed Python 2.7.8 and in the thread that I read ...
0
votes
1answer
651 views

How do I run python code in ubuntu 14.04 [duplicate]

I'm learning python so I may get my foot in the door for a programming career. I'm using the gedit text editor to write the code, however I don't know how to execute the code on ubuntu. If anyone is ...
0
votes
0answers
132 views

Error processing package mumble-django

Everytime when i try to install update from the terminal this error is displayed. How do I sort it out? Setting up mumble-django (2.10-2) ... dpkg: error processing package mumble-django ...
0
votes
0answers
49 views

Samsung tv serial commands with python

I have a Samsung Plasma display that I use a Python script to turn on and off with its serial interface. (ex-link). import time, serial ser = serial.Serial(port='/dev/ttyUSB0', baudrate=9600, ...
0
votes
1answer
73 views

Where is the output file? [closed]

I try to follow the examples about Quantum Circuit Plotting with SymPy but I can not find the output picture. My OS is Ubuntu and I type all the command in the terminal of IPython, as you can see ...
0
votes
3answers
393 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
2answers
37 views

How to insert a line in vim

In my python application i need to write import import pdb; pdb.set_trace() for debugging. And after debugging line is removed. Is there any way in gvim to insert this line by key mapping, so that i ...
0
votes
0answers
76 views

Configuration error for pep8 and flymake for emacs

I am trying to configure pep8 to ignore E221, E222, and E226 (all related to spacing around operators). I followed this documentation https://pep8.readthedocs.org/en/1.4.6/intro.html to generate a ...
1
vote
0answers
38 views

How do I run .ui files in ubuntu 12.04?

I created a very basic .ui file and edited it using pyqt. Now when I click the ui file, it opens in QT Designer. How do I run it? All it does in print ham (hehe). I'm sorry about my language, Please ...
0
votes
1answer
41 views

Environment Variable or saving dev_key file

I am slightly new to ubuntu, I have a NASA-ADS dev_key to access some data on there system but am unable to: save it as an environment variable named ADS_DEV_KEY or save it to a file called ...
1
vote
1answer
47 views

I uninstalled Python without realizing it's really important. What should I do? [duplicate]

How much have I broken and should I just reinstall the OS?
0
votes
0answers
163 views

python download just mp3 from youtube

I want just to download mp3 tracks from youtube, I know that services like youtube-dl download first an .mp4 and then they convert it. Is it possible to download just a .mp3 in a 256 kb/s format? If ...
0
votes
2answers
143 views

Bash tries to run python on unknown command and fails in Py_Initialize

Running Ubuntu 14.04 and updater says that all software is up to date. Have tried rebooting. I am preparing for a class that uses Python. I have installed it and it works fine. However, I now have ...
1
vote
1answer
424 views

Has anybody got access to a H264-stream of an IP-Cam over SimpleCV?

I wonder if it's possible to get access of the H264-encoded mainstream of my Hikvision IP-cam DS-2CD2032-I over SimpleCV. The H264-stream I got in the browser is ...
0
votes
3answers
278 views

Stream audio from youtube

I just want to stream (whitout downloading) a youtube video. Is there an easy way to do this with python or exists a script to do that? Or i must download in a temporany file the video, convert it and ...
1
vote
0answers
158 views

Problem when trying to install fpdb on ubuntu machine

I've been trying to get fpdb working on my Ubuntu desktop, but every time I try to install it from the Gz file, my system won't let me use ./configure (saying file not found), and when I try to ...
0
votes
1answer
42 views

How to add a Custom Openshot Blender Template?

After Creating the appropriate files and structure as listed ./blender/custom.xml ./blender/blend/custom.blend ./blender/scripts/custom.py ./blender/icons/custom.png and placed in the location ...
1
vote
3answers
122 views

Permanent autostart

I would like to make a Python 3.4 script that starts with my computer so that it's permanently checked to start up with the computer (edit: permanently checked means it can't be disabled via ...
1
vote
1answer
1k 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 ...
-2
votes
1answer
163 views

Running python module in gedit embedded terminal [closed]

I'm new to python and i'm trying to run my first module but i can't do that through gedit embedded terminal the code i wrote is def num(b): print("Give A Number") b = b +5 print(b) I ...