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
1answer
40 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
46 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
107 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
104 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
268 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
192 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
136 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
32 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
115 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
846 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
109 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
177 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
120 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
68 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
217 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 ...
1
vote
0answers
178 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 ...
1
vote
1answer
70 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
31 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
45 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 ...
2
votes
1answer
2k 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
28 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
504 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
202 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
84 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
86 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
102 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
90 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
110 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
vote
1answer
869 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
54 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
70 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
770 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
44 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 ...
3
votes
3answers
1k 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 ...
0
votes
0answers
25 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 ...
0
votes
1answer
425 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
52 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
1answer
1k 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
2answers
122 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
70 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 ...
3
votes
2answers
3k 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
6k 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
88 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
1k 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
23 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
69 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
349 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 ...
1
vote
1answer
56 views

Unparseable output from pylint in emacs

I just upgraded from Ubuntu 12.04 to 14.04 (clean upgrade, not in-place). I found that I couldn't call pylint from within emacs (M-x pylint) as I used to, so I installed the package python-mode. Now ...
0
votes
0answers
12 views

ubuntu 12.4 starts with a balch window agter installing kivi

Iam running ubuntu 12.4 in dual boot with windows 7 on my machine .I installed kivi (with ubuntu), and when I just have rebooted the machine , ubuntu starts with a balck window .I tyed the recovery ...
0
votes
1answer
30 views

How to make a trial of Ubuntu? [closed]

Hello I've created my own distribution based on Ubuntu, and I would like to know how to go about creating a trial for the operating system, for example users can download the trial and use the ...