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

Question about python3 under 16.04

I thought python 3 is standards on ubuntu 16.04, but to use it I have to type 'python3'. Is there a way to use python instead and python2 for the old version?
0
votes
0answers
5 views

Getting twitter user id from tweet id without json object [migrated]

Currently I am working on twitter data. I need to fetch twitter data with the tweet id and user id of the tweet. Unfortunately, I am able to fetch the tweet with tweet id only. But along with that I ...
0
votes
0answers
18 views

Python program not working and error message says to apt-get install xvfb

I'm trying to run a program that I downloaded but It isn't working. PyCharm returns the following ----------------------------------------------------------------------------- Traceback (most recent ...
0
votes
0answers
15 views

How can I await a coroutine using Python's exec()? [on hold]

I'm trying to figure out how to await coroutines using exec(). However, I have found no such resource online, and a quick Google search doesn't net anything helpful.
0
votes
0answers
16 views

How to resolve errors related to installing RSeQC?

I asked a question almost a year ago. Please see my question here (Errors related to installing RSeQC). At that time I was persistently facing with errors such as: ImportError: No module named ...
0
votes
1answer
22 views

Problem in invoke sudo make install in python script

I have written the following code to configure yara package in my script, but when it call sudo make install, python give me error. How can I fix it? def yara_installation(self): os.chdir("...
1
vote
2answers
41 views

Is `sudo pip install` still a broken practice?

I'm new to Ubuntu, so please bear with me. I installed pip using this command: sudo apt-get -y install python-pip. Then I installed NLTK using the command on their website, which was: sudo pip install ...
1
vote
1answer
42 views

How to install Python 3.4.5 from apt?

I have Python 3.5 installed.I previously installed Python 3.4 from source and managed to uninstall it somehow. Now if I try to install Python 3.4 through apt-get install python3.4 , it returns ...
0
votes
0answers
16 views

Python problem with Let's Encrypt

When trying to use the following command to setup my certs: ./letsencrypt-auto --apache -d example.com I get this error from Python: dpkg: dependency problems prevent configuration of python-...
0
votes
1answer
19 views

Fastest way to index an element in a sorted list in python? [on hold]

Python's lists have a function list.index(elem) which, to the best of my knowledge, run in O(n) time. However, if I can guarantee the list to be sorted, is this still the best way to get the index of ...
2
votes
1answer
106 views

How to set Python back to the original version

I made my Python default version Python 3 in Ubuntu a few months ago but I don't know how I did it. Now I am trying to install pygame and it's throwing many errors. I feel that it's because my default ...
0
votes
0answers
20 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
0answers
13 views

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

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 & ...
0
votes
0answers
20 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
31 views

How to restart python shell (interpreter) without exiting it [closed]

Or how to clear or reset all locals, but not important ones.
0
votes
1answer
19 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 ...
3
votes
3answers
193 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
1answer
23 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
1answer
34 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
36 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
48 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 ...
0
votes
0answers
40 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 ...
0
votes
0answers
18 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 ...
7
votes
2answers
209 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
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
30 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
14 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
32 views

Programming a terminal web browser [closed]

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
28 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 ...
1
vote
1answer
37 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 ...
0
votes
1answer
68 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
1answer
31 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
33 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
0answers
20 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
28 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
28 views

Ubuntu 16.04 Autopilot installation problem [closed]

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. ...
0
votes
0answers
30 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: ...
3
votes
1answer
127 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
0answers
20 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: ...
0
votes
2answers
44 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?
-2
votes
2answers
44 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
42 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 ...
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 ...
2
votes
1answer
64 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
44 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
25 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 ...
1
vote
1answer
52 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
53 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 ...