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
12 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
1answer
21 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
20 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
18 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
1answer
23 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
6 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
49 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 ...
0
votes
0answers
13 views

Gedit embedded terminal not working

I get this error when I run gedit: $ gedit Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/terminal.py", line 309, in do_activate self._panel = ...
0
votes
0answers
29 views

Panel Indicator Problem? [on hold]

I've created a my own indicator for Ubuntu top panel and it is perfectly works, It contains some feature to open some applications such as System monitor, putty, .... when I open these apps using ...
1
vote
1answer
274 views

Is it possible to install Python 3.x in 14.04 LTS?

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
50 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 ...
0
votes
1answer
40 views

Run terminal command (python command) at start up [duplicate]

New to Ubuntu, but have looked everywhere to get this question answered. Found no solution so far. Basically I need to run two terminal commands on startup, which follow each other directly. This will ...
0
votes
0answers
18 views

Unable to install bsddb185, Python library for opening Berkeley DB version 1.85 files on Ubuntu

I am writing a python program that makes use of some legacy Berkeley DB 1.85 files. Unfortunately I am unable to install the bsddb185 Python package, either for Python version 2.x and for Python 3. ...
1
vote
1answer
19 views

How do I install pygame in a pyenv virtualenv for Python 2.7 on Ubuntu 12.04?

I found instructions for Python 3.3 but nothing specifically for 2.7. I sorted it out and figured I'd record it here for future reference.
2
votes
1answer
58 views

http request to cgi python script successful, but the script doesn't seem to run[SOLVED] [closed]

I have configured cgi scripts for my apache2 web server. Here is what I want to do: Client uploads the image to the server. (this already works) On success, I want to execute the python script to ...
0
votes
0answers
40 views

pyvenv still broken on 14.04.1?

meow@te:~# pyvenv-3.4 v Error: Command '['/meow/v/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 I thought it was fixed. I've done update and ...
0
votes
0answers
16 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
25 views

Why doesn't 'launcher.set_property(“urgent”, True)' work?

My script: #!/usr/bin/python # update bar on dash icon by stdin # ex: for i in {0..100};do echo "$i";sleep 0.3;done | ./$0 import sys, time from gi.repository import Unity, Gio, GObject, Dbusmenu ...
0
votes
0answers
19 views

How to create an installer for a python GTK3 application?

I have just finished developing a Python 2.7 application using Gtk3 for GUI. My question is, how can I now create an installer for Windows, Mac, and Linux (possibly three different installers) for my ...
1
vote
1answer
96 views

Install Python 2.7.8 on Ubuntu 12.04

I have to use Ubuntu 12.04 for some reason. In the other hand, i have to use Python 2.7.8 but the newest python version for 12.04 is 2.7.3. Is there any ppa repository i can use to upgrade my python ...
0
votes
1answer
8 views

run bottle app on my server

I program my app with python Bottle in my pc. I run my app with run(host='localhost', port = 80) I want to run app on my ubuntu VPS that installed virtualmin on it. how can i do this?
1
vote
1answer
61 views

Tkinter on Ubuntu 14.04 seems not to work

I receive following Traceback: Traceback (most recent call last): File "tkinter_basic_frame.py", line 4, in <module> from Tkinter import Tk, Frame, BOTH File ...
0
votes
0answers
25 views

Cannot compile GDB7.8 with Python support

I am trying to install GDB7.8 with Python support. From the source folder, I am running ./configure --with-python When I did tab-complete from --with- I did not see Python in the list. But when I ran ...
3
votes
1answer
62 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
2
votes
1answer
36 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
0
votes
1answer
76 views

package xxxx and python-xxxx

I am trying to install the latest version of package xxxx. I downloaded, unarchived and follow the readme: python setup-py install But python does not see my latest version. It seems that there is a ...
2
votes
0answers
32 views

How to run Python program installed system-wide through pip without root privileges?

I have two different Ubuntu computers that both has multiple user accounts. I wanted to try the latest version of the backup program Attic, so I used pip3 to install it—with success. However, I can’t ...
0
votes
1answer
28 views

How can I tidy up the mess that is my Python installations?

I had a Ubuntu 12.04 system which I eventually managed to get Python 2.7 and Python 3.2 working together (with pip and pip3) and Python 3.3 (with pip3.3) for good measure. I've recently upgraded to ...
-1
votes
0answers
17 views

How to make python script executable in Ubuntu? [duplicate]

I want to execute a python script by just double clicking, without going to the terminal/shell. I already add the hashbang/shebang to the script and make it executable but it just open in gedit when i ...
1
vote
1answer
58 views

Cannot install python module urlparse

some program written in Python 2.7 complains that ImportError: No module named 'urlparse'. So I need to install the module, but I am not able to do it. The module does exist, it is described e.g. at ...
0
votes
0answers
36 views

By mistake I removed Python. Terminal, music player, video player, Software Center etc. are gone

I work on Ubuntu 14.04 to install Python and other packages I entered the following command : sudo apt-get install python python-pip python-pyparsing python-mysqldb gunicorn nginx git-core ipython ...
1
vote
1answer
32 views

How to add SSL support to Python?

On Ubuntu 14.04, I installed Python 3. Now that I am programming with it, I had a problem with Python and I am told that the error occurred because I did not install Python with SSL support. Is it ...
2
votes
1answer
57 views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
0
votes
1answer
30 views

Runnning subpackages of python-3.4 astropy-0.3 library on ubuntu 14.04

I have successfully installed astropy-0.3 with python-3.4 on ubuntu-14.04 but whenever I search any conventional library of astropy like cosmology, time, units it doesn't work here.. Is this library ...
0
votes
0answers
97 views

Python: no module named datetime?

OS: Ubuntu 14.04 LTS Python: 2.7.6 My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback: import ...
-1
votes
0answers
14 views

Unable to install proprietary drivers in Ubuntu 12.04.4 32bit

I installed ubuntu 12.04.4 32bit alongside ubuntu 12.04.5 64bit (i know it's crazy) and i get this error message while installing additional drivers : Sorry, installation of this driver failed. ...
0
votes
0answers
18 views

Packaging using Quickly and Python 3

I have written an application using Quickly with Python 3. I have adjusted everything necessary for running with Python 3, converted headers to #!/usr/bin/python3, fixed helpers.py, etc. But when I ...
-1
votes
0answers
15 views

How should i upgrade python 2.7.6 ucs2 to ucs4 in ubuntu 14.04?

In my machine, I have installed python 2.7.6 with ucs2. But as of now, one of my application depends on ucs4. Is there any chance to upgrade from ucs2 to ucs4 OR else should i need to install Python ...
0
votes
0answers
39 views

fail to driver swrast minecraft python

Under Kubuntu 14.04 Trusty, my graphic card is a nvidia gtx geforce 760. I am trying to play with minecraft implemented with Python and Pyglet When trying to lauch the game (python main.py), I have ...
1
vote
1answer
26 views

echo to /etc/sudoers causing pasrse error

Using fabric if I echo to sudoers file for second time the file got corrupted works fine for first echo. What could be the reason? First echo: sudo('echo "django ALL=(ALL:ALL) ALL" | sudo tee -a ...
0
votes
0answers
143 views

PIL install in Ubuntu 14.04.1 LTS

Followed the steps How do I install python imaging library (PIL)? for pre-setup libraries to install PIL on Ubuntu 14.04. However when I run pip install PIL --allow-external PIL --allow-unverified PIL ...
1
vote
1answer
34 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 ...
0
votes
0answers
39 views

I'm receiving a GDB test error installing Python 3.4.1 on 14.04

I'm trying to create a VirtualBox VM with Ubuntu 14.04 and Python 3.4.1. I've downloaded the source https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz And I've updated OpenSSL to resolve a ...
1
vote
2answers
192 views

Installing Anaconda python on ubuntu

How to install anaconda python on ubuntu? https://store.continuum.io/cshop/anaconda/ Is there a way to apt-get install it? I only have command line access to my server, how do i install anaconda ...
11
votes
6answers
1k views

What version of Python do I have?

How can I find out what versions of Python I have? I am using Ubuntu 14.04 (Trusty Tahr).
3
votes
1answer
42 views

How can I make Ubuntu to run only one application on startup [duplicate]

I am currently developing a quad copter controller that is touch screen and powered by Raspberry Pi. I already know how to program using Python, but I am having trouble making it run my only app on ...
0
votes
1answer
121 views

How to install `requests` module for `python3`?

I wanted to download Requests: HTTP for Humans module for python3. So I started with sudo apt-get install python3-pip sudo pip3 install requests --upgrade There were no errors. However, when I try ...
0
votes
0answers
22 views

PIP for python not found in 14.04 [duplicate]

$ sudo apt-get install python-pip E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory ...
1
vote
2answers
44 views

Python3 modules [duplicate]

I've recently installed Ubuntu 14.04 and have been a python enthusiast for several years, since I used python in grad school for (text) data analysis. I've noticed that 14.04 comes with both python ...
0
votes
2answers
81 views

Unable to use “pip install scp” command in ubuntu 12.04

I am new to the ubuntu/linux world. While try to run my python script I get the following error: root@ubuntu:/home/haris/Downloads/# python install.py Traceback (most recent call last): File ...