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

How to install Python 3.5.1 on Wily Werewolf 15.10? [duplicate]

Python 3.5.1 came out on December 7th 2015 and as a beginner Python coder I would like to try the very newest version on my Ubuntu installation. At the moment Wily Werewolf 15.10 ships version 3.4 and ...
0
votes
0answers
38 views

Libreoffice unoconv hangs when conversion process started

I am working on an application, in which I am using unoconv for converting ppt and doc files. It is working on localhost, where I have an X server, but on ubuntu-server, it hangs up. As I read on the ...
4
votes
1answer
73 views

Can't use auto-completion in gnome-builder for Python — jedi plugin not found

I am using the gnome-builder to do some development work, and I am needing to do some work with Python so it would be really helpful if the auto-completion tool actually worked, but every time I start ...
0
votes
0answers
50 views

IO Error: 32:Broken pipe , popen

I have a simple python script which installs mono-complete on machine. but what I observed is my first call always fail with error IO Error: 32:Broken pipe here is my script, I am not sure what is ...
5
votes
2answers
2k views

unoconv is not working in python

I've an issue while using unoconv to convert docs to html from a Python script. It works perfectly when I run the script or the unoconv commands as root, but it fails when I do the same from other ...
0
votes
0answers
224 views

How to install pip and django for python 3.5

I have 3 versions of python that are 2.7, 3.4 and 3.5. I have set by default python version 3.5 in my terminal setting. But when I installed the pip3 and djanago it both gone into python 3.4 dist ...
-1
votes
1answer
45 views

Python: create variables using loop [closed]

how can I create a dictionary variables and every variable has an identical number using a loop in python if it is possible? for example: counter=0 for line in {1..5}: counter +=1 ...
28
votes
2answers
40k views

Install python 3.5 on vivid using apt-get

How can I install Python 3.5 on 15.04 Vivid using apt-get? Obviously I realise I can install Python 3.5 using the source tar ball, however I would prefer not to install from source and instead use ...
3
votes
2answers
398 views

Do “python3” and “python” use different path variables?

The command python opens a Python 2.7.6 environment. If I want to interpret a Python 3 script, I need to rewrite the command to python3. I've just installed the numpy package. In order to test the ...
1
vote
1answer
26 views

Should I install these packages for python3?

I'm learning python3 now and I want to ask a question about it. My Ubuntu has Python2 and Python3 already. I'm just learning python3. Should I install these packages? Packages: sudo apt-get ...
3
votes
2answers
13k views

How to install pip and a python package for self installed python?

/usr/bin/python points to /usr/bin/python2.7, the old version 2.7.6 python used by my OS 14.04. For the old python, I wanted to install module regex: $ sudo python -m pip install regex ...
21
votes
4answers
7k views

Can I develop ubuntu for phones apps in Python? [duplicate]

Does anyone know if we can develop apps for ubuntu for phones in Python ? PyQT / PySide would seem to support also QML. But can we use them on the phones ?
0
votes
1answer
881 views

python pip broken on ubuntu

My pip is not working anymore. Here is the output for a sudo pip install pyjs : File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File ...
-1
votes
1answer
66 views

calling bash command in python

i called bash command in python in subprocess.call, and the return should be a number for example 3, and in the output, it gives the number as output, but it doesn't put it in the variables for ...
7
votes
3answers
7k views

How do I install Pygame in virtualenv?

In installed python-virtualenv, because this question said I should use virtualenv to install pygame. However, I'm not really sure how that's accomplished. What I did (following these instructions): ...
-1
votes
2answers
223 views

How do I call a sed command in a python script? [closed]

Through python script, I am trying to replace a string by a string in a file using sed command. I do that through subprocess.call as it in the script. When I run the command in the shell script or ...
1
vote
1answer
28 views

Missing python modules in mic2 package

I am on Ubuntu 14.04.4 LTS and I've installed mic2 package which is now complaining like this: Traceback (most recent call last): File "/usr/bin/mic-image-creator", line 35, in <module> ...
12
votes
4answers
59k views

Problem installing Python-Dev

I am having trouble installing python-dev. It all started when I tried to install another Python package and got the error: SystemError: Cannot compile 'Python.h'. Perhaps you need to install ...
0
votes
1answer
73 views

ImportError: cannot import name CompletionFinder

I am using Ubuntu "14.04.1", with python version 2.7.6 I have installed python-argcomplete package (version 0.6.9-1) but still getting an error while importing CompletionFinder from argComplete. ...
1
vote
1answer
100 views

How to properly install IPython on Ubuntu 15.10?

I installed IPython using sudo apt-get install ipython ipython-notebook But when I tried to start it, it complains not finding some components: sudo ipython notebook Traceback (most recent call ...
2
votes
0answers
83 views

Can't add PPA using add-apt-repository: SSL support not available

whenever I tery to add any ppa to install any stuff i get the following error nikunj@nikunj-DL-H61MXE-V:~$ sudo add-apt-repository ppa:ravefinity-project/ppa Traceback (most recent call last): File ...
0
votes
1answer
62 views

bash: WORKON_HOME=~/.virtualenvs: No such file or directory

I installed python virtualenv and virtualenvwrapper on ubuntu 15.10 following the answer at How to set up and use a virtual python environment in Ubuntu?. The installation was successful, i.e. I can ...
0
votes
0answers
55 views

I tried to install the igraph package in ubuntu 14.04 using the following command

I tried to install the igraph package in ubuntu 14.04 using the following command pip install --user python-igraph After several processes I'm getting something like this Extracting ...
4
votes
5answers
11k views

Where is Python source code?

I have Python 2.7 installed for learning purposes (I'm a starting programmer reading 'Learn Python The Hard Way') and wanted to know how some things were done. I installed it from Synaptic and want ...
0
votes
1answer
55 views

Create a shell scrip from bat script [closed]

I am trying to make my python program compatible with linux and I honestly have no idea how write a shell script. I do know a bit of batch scripting since I got this to work. @echo off chcp 65001 ...
1
vote
1answer
3k views

Make a Python program executable from its icon

I wish to python programs execute in a window from clicking an icon. This is day one of teaching myself and type of coding and Ubuntu so over-explantion and extra detail is appreciated. Code example ...
0
votes
1answer
45 views

Inkscape python-lxml error

I'm using Inkscape 0.91 (r13725) and I always receive this error message when I try to use Perspective add-on or when I try to save the sketch in any format: The fantastic lxml wrapper for libxml2 is ...
0
votes
1answer
40 views

Installing and importing OPENCV ubuntu

Im trying different methods but still could not make opencv work on my Ubuntu. Every time I try to import cv2 I receive: ImportError Traceback (most recent call last) ...
1
vote
0answers
28 views

IOError: [Errno 29] Illegal seek Wavefile

Im trying to use wavebender library to create music and get data out of music. I get this error don't know how to solve this. from wavebender import * from itertools import * import sys def ...
1
vote
1answer
52 views

pip install --user means users cannot run application from Dash or terminal

I'm the developer of a Python GUI application. I'd like users of my application to be able to install the application using pip because not all of its dependencies have made it into Debian yet, and I ...
0
votes
1answer
132 views

cache/pip disabled immediately after instalation of pip

I'm running Ubuntu 15.10. I installed Pyhon 2.7 through aptitude: sudo apt-get install python now I'm trying to install pip using this guide. I downloaded get-pip.py, then I tried: sudo python ...
22
votes
6answers
55k 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
0answers
39 views

problem building X86 for gem5

development Environment ubuntu 14.04 kernel version 4.4.3 Dear gem5 and ubuntu users, After downloading gem5, I executed the following commands and everything went well: ("in /usr/src/gem5/" ...
0
votes
0answers
16 views

Blender crashes on entering sculp mode on 12+(?) ubuntu

I think I once posted this long ago, but then it was either taken down or I deleted, since I found a way around it. I had hoped it would go away in time, but it didn't... So, the exact same version of ...
3
votes
1answer
301 views

Can no longer use apt-get to install due to error with apport

I am working on a Windows 7 PC with a Xubuntu (Ubuntu 14.04.2 LTS, 64-bit) Virtual Box. Lately I have been having problems using the 'apt-get' command, and also the Software Updater. The Software ...
0
votes
0answers
44 views

How to add asynchronous subprocess call for Python Gtk Glade Button on_click method?

I am new to Python and Gtk. I have created an ubuntu application using Quickly-create. I have added a button to run the adb pull command for my rooted android phone. I wish to add a spinner which will ...
0
votes
0answers
54 views

Attempting to uninstall and reconfigure pygame for python 3.4.4 or Ubuntu 14.04

First off I want to mention I'm a scrub with ubuntu. Also I am a bit unsure if my python version is 3.4.4, but that is what it sais on my tgz file when I search for it, so I think that is correct. ...
0
votes
0answers
102 views

Unsupported machine type Use -machine help to list supported machines

I am trying to create virtual machine on ubuntu 15.10 using virtual machine manager i have installed kvm but when i use display vnc for virtual machine it shows the following error and when i use ...
0
votes
0answers
45 views

packages 'not yet configured' - how should I solve this?

Ok, I have to rephrase my question. I'm not able to install packages because a bunch of them have apparently been installed, but not configured. When I try to configure them, however, the dependency ...
1
vote
0answers
115 views

How to “reset” python installation in ubuntu 14.04?

after installing several packages with the package manager, some others using eggs, some others using pip, for 2 versions of python, with some packages that in the meantime changed name (iPython --> ...
10
votes
3answers
3k views

How can a Debian package install Python modules from PyPI

This question tries to complement this one . I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python ...
1
vote
1answer
171 views

What is the recommended way to install pip on Snappy Ubuntu Core?

I would like to provision Docker running on Ubuntu Core with Ansible. For that I need to get docker-py on the machine. Snappy already comes with Python installed, but pip is not provided. Running the ...
0
votes
0answers
48 views

Ubuntu 15.10 reset default packages

I was getting troubles with Python libraries so I made sudo apt-get remove python* to reinstall everything related with Python from scrach. But then I did sudo apt-get autoremove and a lot of ...
2
votes
0answers
24 views

Sound Indicator integration help

I have been trying to add my application to the Sound Indicator menu in Unity for about a week now. The lack of documentation on the subject is honestly appalling. Any links I can find which claim to ...
0
votes
1answer
172 views

Jupyter Notebook Installation

It is possible to install Jupyter Notebook throughapt-get install? For example, we can install numpy by using apt-get install python-numpy.
5
votes
3answers
9k views

Python script won't write data when ran from cron

When I run a python script in a terminal it runs as expected; downloads file and saves it in the desired spot. sudo python script.py I've added the python script to the root crontab, but then ...
1
vote
1answer
233 views

Problem in import/installing python modules (pyserial) in ubuntu 15

Hi I've got problems importing pyserial in both python 2.7 and 3.5 I've tried with pip install, easy_install, deb package, source balls. But always the same : >>> import serial Traceback ...
0
votes
1answer
107 views

Listbox with tkinter Treeview, how to avoid empty rows at the end [closed]

I have the following code to build a listbox with Treeview widget. import tkinter as tk import tkinter.ttk as ttk class AppBase: def __init__(self): self.mywin = tk.Tk() ...
6
votes
2answers
2k views

Is there a pywinauto equivalent to automate the GUI from Python?

pywinauto is a set of python modules to automate the Microsoft Windows GUI. At it’s simplest it allows you to send mouse and keyboard actions to windows dialogs and controls. Is there a linux ...
8
votes
6answers
41k views

How do I change my PYTHONPATH to make 3,2 my default Python instead of 2.7.2?

I have python3.2 located in /usr/lib/python3.2. I am not sure if that means it's installed but I assume it is for now. Some facts about my system: $ which python /usr/local/bin/python When I type ...