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

Anaconda python distribution SSL error on ubuntu 15.10

I installed 32 bit version of Anaconda python distribution on Ubuntu 15.10 But every time I try to use the command "conda update anaconda" or try to create a virtual environment, I am greeted with ...
2
votes
2answers
2k views

How to use python3 in emacs on ubuntu 14.04

I am using emacs in python mode. To run a python file I use the command C-c C-c. Emacs automatically start to run python 2.7 while I would like to use python3. Once I have been able to solve ...
-2
votes
0answers
12 views

how to calculate distance & time required for traveling source to destination [on hold]

I am working on a project in python django related to TAXI I required to calculate distance & duration For taking input from user I use google-map-api. Using the api I get source & ...
56
votes
5answers
31k views

How to easily start a webserver in any folder?

I'm looking for a relatively painless way to launch a web server with document root in any folder I specify (or better yet, where I'm launching). I often try out new things like JS frameworks or so ...
2
votes
2answers
519 views

Trying to run a .py script in terminal, but i get this error

#!/usr/bin/python2. import os import sys import subprocess from PyQt4.QtCore import * from PyQt4.QtGui import * import socket import struct import random import string import signal import hashlib ...
3
votes
3answers
153 views

python subprocess.call() not working as expected

I started down this rabbit hole as a means to familiarize myself with how one would go about creating a setup script in python. The choice of python was simply rooted in my familiarity with it while I ...
0
votes
0answers
18 views

Help Geany meet Python modules

I am trying to force Geany 1.27 (Ubuntu 16.04) to use additional Python modules such as pandas, but it doesn't see them saying 'no module named pandas' while running code from the Geany IDE. The ...
1
vote
0answers
23 views
0
votes
1answer
16 views

installing pip with two versions of python

I have a system running an old version of default that did not support pip, I also have Python 2.7.11 I followed the steps here but whenever I run the command: python get-pip.py I receive the ...
0
votes
1answer
33 views

the package python-pip needs to be installed, i cannot find an archive for it

After all install or remove, I take "the package python-pip needs to be installed, I cannot find an archive for it" error. I've tried similiar problem's solution but didnt work. Have any idea? ...
0
votes
1answer
18 views

Python broken after 15.10 to 16.04 upgrade

After doing an upgrade from 15.10 to 16.04, my Python packages seem broken. Looks like a compilation error for python-minimal. me@me:/etc/apt/sources.list.d$ sudo apt-get -f install Reading package ...
0
votes
0answers
13 views

How do you build a python application using snapcraft?

I'm trying for several hours, I'm getting this : Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-UWeLSq-build/ Command '['/bin/sh', '/tmp/tmpkajulyzd', 'python2', '/home/adi/...
0
votes
2answers
39 views

Python 3.5 is unable to access packages installed with pip3 like django

I have both python 2.7 and python 3.5 installed on my Ubuntu 16.04 LTS. I have also installed python3-pip to be used for installing external packages to python 3.5. Using pip3 I have installed django ...
1
vote
1answer
33 views

Use python to restart all the process

My platform is ROS Ubuntu in Raspberry Pi 2. I started a shell script by running python node to restart all process. However, when I kill the python node, everything started by the python node is also ...
1
vote
1answer
4k views

uwsgi can't find python plugin

I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message: nickd@my-vps:~$ sudo /etc/...
6
votes
1answer
2k views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
0
votes
0answers
24 views

ImportError: No module named dbus

I need help urgently :( I was trying to update my Python and messed up my whole system. I am currently now able to start my software centre. I tried Googling multiple fixes but nothing helped. My ...
6
votes
2answers
198 views

Message overflow in notification bubble

I am learning how to use gtk notifications, and it seems that any output display via the notification bubble has a maximum overflow size, probably 10 lines or so. So, if the message I want to show is ...
0
votes
0answers
16 views

Running Python script in Spark

I'm running a Python script: bin/spark-submit my_script.py But when I run it I get this error message: No such file or directory I tried changing directories to the directory that contains the ...
0
votes
1answer
65 views

I can't install softwares after failed removal of Python 3 (python3-pkg-resources)

I have two python in my computer 2.7 and 3.4. I stupidly assumed that 2.7 is the default python in ubuntu and tried to uninstall python3 using this command sudo apt-get remove python3 While in the ...
0
votes
2answers
26 views

What are the actual risks of giving www-data sudo nopasswd access?

I have a server that I just installed apache on. I have a php script on the server that I would like to run a sudo command from. I've been scouring the web on why giving www-data sudo nopasswd access ...
0
votes
0answers
19 views

Getting data from a running program using Python

What i'm trying to do is get data from a running program. Basically it gives me values let's say numbers 1-10. I want to be able to "read" these numbers off my monitor. I was wondering if there's any ...
2
votes
1answer
25 views

Cancel and restart a certain Routine (python-script)

I have a question regarding a programm I run. Every once in a while, I need to restart a certain program. For that case, I usually run: screen ./run.sh arg1 arg2 "arg3" (screen, since I don't know ...
0
votes
0answers
11 views

Layouts in Qt doesn't work for me, need help

I am starting Qt player for linux and i am stuck at design. Qt(also Glade) got pretty complicated layout behaviour. So far i did this in java. I want to replicate it in Qt: The problem is that ...
0
votes
0answers
31 views

Programming a terminal web browser [on hold]

After reading some python network programming and playing around with sockets, I got the idea of creating a simple terminal web browser. My question is if it is possible create a terminal web browser ...
0
votes
0answers
27 views

Miserable printing of the hindi words by python in terminal

Suppose I want to print मैं ठीक हुँ । in terminal in hindi language either by using the python with unicode or if i just copy and paste, instead of correctly pasting and printins it correctly, it ...
0
votes
1answer
26 views

HP printer install fail

I have a failed install of Hp printer at http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html What I need help with is how do I Delete the printer software so I can reinstall. ...
0
votes
1answer
29 views

Recover python in /usr/bin

I tried to install a newer version of the python and associate with the /usr/bin folder. Hence, in the configure file of that newer version I modified initialization location from /usr/local to /usr. ...
0
votes
0answers
30 views

How to install python to /usr/bin instead of /usr/local/bin

I have a python library which needs 2.7.10 version for it to function. But, When I download the python binaries and install, it is being installed in the /usr/local/bin folder. When I run the python ...
1
vote
2answers
2k views

What is the difference between idle3 and idle-python3.2

I installed them both via apt-get install and they seem to be the same. If I start them they both open up a python shell
1
vote
0answers
15 views

Kivy App running. Nothing rendered on App window

I have been using Kivy for over couple of years now. But I have acquired a new machine and something weird happened when I tried running the app. Kivy apps are running, the app window will open, ...
4
votes
1answer
24 views

What is the difference between appindicator and AppIndicator3

Ubuntu indicators written in python can be done with two APIs : appindicator and AppIndicator3. What is the difference between them and is there any advantage to using one over the other ?
0
votes
0answers
29 views

Installation problems with Biogeme on Ubuntu 14.04 LTS

I have problems installing the biogeme software, which is a famous software for choice models from Switzerland. I am using an older laptop with Ubuntu 14.04 LTS 32-bit. I tried installing it using: ...
0
votes
0answers
19 views

Ubuntu 16.04 Autopilot installation problem [on hold]

Ubuntu 16.04 MAAS Version 2.0.0 (rc2+bzr5156) (Installed from CD) 2.0-beta12-xenial-amd64 Ran "conjure-up openstack". After choosing Autopilot, I got the error below. I appreciate any help. ...
2
votes
1answer
63 views

Trigger if directory size exceeds threshold

I have written a shell script to backup data to s3 and i want to trigger this shell script when ever the system storage space goes critical lets say when the system reaches 80% of its capacity. I know ...
0
votes
0answers
18 views

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution), try kinds of solutions, but does not work

The error: apt-xapian-index : Depends: python:any (>= 2.7.1-0ubuntu2) bzr : Depends: python:any compizconfig-settings-manager : Depends: python:any (>= 2.7.1-0ubuntu2) duplicity : Depends: ...
27
votes
4answers
10k views

How do I get started creating an Ubuntu Desktop App?

I want to create an Ubuntu desktop app, specifically to replace Gwibber. I can code in Java, Python and a few other technologies. Adobe Flex would have been an option until Adobe decided to suck some ...
3
votes
1answer
126 views

Ubuntu can't find an executable file in ~/.local/bin

after installation with pip3 install --user steem-piston you will get a new executable piston installed in ~/.local/bin I installed the tool using pip install, but I cannot find the executable file....
0
votes
2answers
38 views

used python -v instead of python -version command, to find the version of python in my pc. does it change anything?

I wanted to know which version of python is installed on my Xubuntu 16.04. But I typed python -v instead of python -V. It then started to import some files. Did this cause harm?
0
votes
0answers
40 views

Can't run Python Script on double-click

I recently upgraded to Ubuntu 16.04 but lost all my installed programs for some reason and this is when my problem started. I could always run my scripts by double-clicking the icon, because I have ...
-4
votes
1answer
25 views

Exec python script with arguments from txt file [closed]

I have both a python script and a txt file with just numbers on files, I need help to run the script for all the values on the file during lets say 30 seconds. Please anybody can help me ? Thanks in ...
-2
votes
2answers
35 views

How to set up a cron job to run every 10 minutes? [duplicate]

I have a python script, and i'd like to make it run every 10 minutes, how can i do this? Thanks in advance.
0
votes
0answers
17 views

Ubuntu app dev language [duplicate]

I work as a java dev so I know java and I'm learning python. Is this enough for developing ubuntu desktop apps or I need more? I would like to focus on good gui builders and I know kava swing is ...
0
votes
0answers
37 views

Ubuntu 16.04 running python2.6 in virtualenv fails

Trying to install an older version of python (2.6) in a virtual environment in ubuntu 16.04, to work on an old project. I used this web site as my guide: http://bhfsteve.blogspot.com/2012/05/run-...
0
votes
0answers
24 views

Questions about IRC & IRC Scripting

I hope it's that I ask those questions here, I was looking for other places but lots of searching terms brought me here so.. :) I have a few questions regarding IRC and the scripting in IRC. :) I ...
0
votes
0answers
19 views

Create Python objects in QML using pyotherside

I am trying to build a Python backend for my Ubuntu Touch App using Pyotherside. Unfortunately, it is not very intuitive to me. What I want to do is to have a .py file where I define a Python class ...
1
vote
1answer
33 views

“ImportError: No module named pyaudio” despite python-pyaudio installed

I am trying to run a Python program that uses pyaudio: I download the program (from Github because the .deb is too old) I install python-pyaudio I run the program The program says ImportError: No ...
2
votes
1answer
41 views

Can't import installed packages in python

I installed pip (pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)). My python version is 2.7. I installed pygame by apt-get install python-pygame and got a success message. But when I try ...
0
votes
2answers
48 views

Python script in CRON is not running in AWS ubuntu 14.04 instance

I want to schedule a CRON job into AWS Ubuntu instance. I have a simple cron sample like the following: import pandas as greatPanda import pprint import uuid df = greatPanda.read_csv('/home/soumik/...
0
votes
0answers
15 views

Running executable jar file from terminal [duplicate]

I've just got a new PC running Ubuntu 16.04 and have transferred my work from my laptop running Ubuntu 14.04. I have an executable jar file called timed_hri.jar. On my laptop I can go to the ...