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

OverGrive not launching

I installed OverGrive and it worked fine for a few days before it suddenly stopped launching. I've tried a few things, including reinstalling pip, python, etc. When I run: python ...
-1
votes
0answers
18 views

PIP does not see a Python

amigo421: ~$ pip bash: /usr/local/bin/pip: /usr/bin/python: bad interpreter: No such file or directory amigo421: ~$ python --version Python 3.4.3 amigo421: ~$ alias alias ...
19
votes
7answers
91k 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).
0
votes
0answers
178 views

Ubuntu gufw not loading

OS: Ubuntu 14.04 64bit Python2 Version 2.7.10 Python3 Version 3.4.3 I recently installed python from source and gufw stopped loading. When I try to launch it from terminal I get the following errors: ...
0
votes
0answers
12 views

What's the most convenient GUI framework in Ubuntu 14.04 to create a graphical interface for a Kinect 2.0?

I want to create a graphical interface for the Kinect 2.0 (for Xbox One) in Ubuntu 14.04 LTS combining Python and C programming languages, in order for anybody to be able to easily use it, i.e., ...
1
vote
2answers
6k views

Fatal Python error: Py_Initialize: Unable to get the locale encoding … SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new ...
1
vote
0answers
29 views

Launch python script fullscreen on startup (Ubuntu 14.04)

I have a python program that I would like to automatically run after logging in. This shouldn't be much of a problem, however, I would like the terminal to be in fullscreen mode while running the ...
1
vote
3answers
2k views

which version of python is installed?

I installed Ubuntu 12.10 in my VirtualBox. Is python installed by default? If not, How can I install python?
-4
votes
0answers
45 views

OSError: [Errno 13] Permission denied - Help! [closed]

I'm trying to run this python script and have no idea what is going on. I set read/write permissions to the python folder, but nothing has changed. Any suggestions would be much appreciated. $ sudo ...
1
vote
0answers
11 views

Cannot launch Pydev5.0.0 in Eclipse3.8

I installed Eclipse3.8 in Ubuntu 16.04LTS, and my Java version is JDK8. I installed Pydev5.0.0 and I could see "PyDev for Eclipse" in "Installation Details". However, I could find pydev after restart, ...
-1
votes
0answers
12 views

Issues with installation of pygame [duplicate]

I tried to install pygame on ubuntu14.04 with: sudo apt-get install python-pygame after that I opened python2 and tried to import pygame python2 import pygame This actually worked, but the issue ...
0
votes
0answers
29 views

Removal of python-pip gives an error

Entering the following commands sudo apt-get purge/remove python-pip sudo apt-get autoremove gives this error dpkg: error processing python-pkg-resources (--configure): subprocess installed ...
28
votes
2answers
758 views

How to develop a System Indicator for Unity?

This is not a duplicate of How to create Unity indicators?. I'm looking for system indicator not application indicator. Backgound: From these two questions: How do I add or manipulate ...
2
votes
1answer
12 views

IPython closes when I try to start it

I was trying to install the latest version of IPython, but kept giving an exception error when cleaning up. I tried various ways to do this. Now I download it the 1.2.1-2 version, I start it and the ...
6
votes
3answers
691 views

A script for copying random folders

I'd like to realize a little project I've always had in mind. I have a vast music library on my desktop and I'm looking for a way/script to select a random amount of folders (say, 25 albums) and, if ...
1
vote
1answer
12 views

How do I install matplotlib dependencies?

How can I easily install all the non-Python dependencies I require before I can pip install matplotlib?
0
votes
0answers
26 views

How can I get a project from Ubuntu? [duplicate]

I'm a Computer Science undergraduate student. I'm looking for a opensource project for our 3rd year course Rapid Application Development(RAD). I am good in Python and Java languages. Where I can get a ...
0
votes
3answers
22 views

How to run a Python script not as '~$ python myscript.py' but as a single command '~$ myscript'? [duplicate]

I have a Python script which takes command line arguments. When I want to run the script I have to navigate to its directory and run: python myscript.py [arguments] How can I run it like: ...
0
votes
0answers
19 views

Can't use pip installed package on ubuntu

I am able to install a package and list them but I'm not able to execute them by the command line. What am I missing here? aj07mm@aj07mm-ThinkPad-X220:~$ python -V Python 2.7.11+ ...
0
votes
1answer
4k views

Download the latest version of python-pip using apt-get

Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13 When I run sudo apt-get install python-pip It installs a a very old version. $ pip --version pip 1.0 ...
3
votes
0answers
43 views

Latest python-pip with U16.04

In U16.04 when you do: pip install --upgrade pip you get: Collecting pip Using cached pip-8.1.2-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-8.1.1 You are ...
1
vote
3answers
6k views

Python 2.7 ImportError: No module named repository

I'm completely clueless. I uninstalled, and re installed gi and python2.7. Do you guys have any ideas? ~ > /usr/bin/python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type ...
0
votes
1answer
29 views

PyBFD cannot find Binutils in 16.04

I've upgraded my distro from 15.10 to 16.04 LTS. In 15.10 everything was okay. I am using pybfd 0.1.1 with binutils 2.26 (In 16.04). The python package pybfd used to be okay with binutils of 15.10. ...
0
votes
0answers
17 views

ubuntu's multiple python installations…please help me

I want to pip install additional libs to my installation of python3.5 but ubuntu has 2.7 installed too by default and I don't have pip for 3.5 . I'm unsure how to get pip up and running on my newer ...
3
votes
0answers
40 views

making rgedit work in downgraded gedit (3.10.4) with ubuntu 16.04

I successfully downgraded to gedit 3.10.4 so that I could continue to use the rgedit plugin. While gedit appears to open and the rgedit menu appears, the rgedit buttons are not added to the toolbar ...
1
vote
1answer
5k views

IDLE installation in Ubuntu 14.04

Does anybody know which IDLE package I should install from Software Center in Ubuntu 14.04 assuming I want to program in python 3?
2
votes
2answers
86 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My vim doesn't have python support. The thing is that I installed vim, vim-gnome, vim-nox, I surfed net for hours and tried to build vim from source, I deleted some stuff like ...
-3
votes
0answers
26 views

ubuntu software center not opening via terminal [duplicate]

I am encountering this problem , File "/usr/bin/software-center", line 140 print time.time() ^ SyntaxError: invalid syntax whenever i try to open software center via terminal. ...
-1
votes
0answers
16 views

Python,Gtk3: How to make the Progress bar pulsing while other stuffs are running

Based on Classes, i have window which contain a button and progressbar, whenever the button is clicked there two things should happen : 1 - should entried value from dialog pass to class ABCD ...
0
votes
1answer
14 views

Is there any apt-get/dpkg/aptitude option to get apt cache folder location?

apt cache folder default location is /var/cache/apt/archives. i work in a python script. is there any way to know cache folder location in code. like run a apt-get option. like: apt-get ...
0
votes
2answers
32 views

f.lux setup.py on xubuntu 16.04 results in error

Took the zip from here and unzipped it: https://github.com/xflux-gui/xflux-gui but when i run setup.py $ sudo ./setup.py install Results in the following Traceback (most recent call last): File ...
2
votes
2answers
959 views

control volume using python script

I can control volume using this command through terminal amixer -D pulse sset Master 0% . My question that how can I do the same thing using python script.
0
votes
1answer
21 views

How can I pass variables in os.system? [closed]

I'm using this command to insert a variable : `os.system("sudo insmod /home/hajer/final_module/module.ko src_ip=" +(R1.get()))` and it works fine, but when I add some other variables it seems not ...
0
votes
1answer
25 views

Unable to downgrade Binutils package

The Problem I'm currently on 16.04 LTS. binutils package of this distro is of version 2.26. But I need 2.25 (binutils of 15.10). I'm using PyBDF 0.1.1 python packages which depends on binutils 2.25. ...
0
votes
0answers
23 views

Where does Chromium store user settings like the 'default font size' in Ubuntu?

I'd like to write a Python script in order to change the default font size of Chromium, but I can't find a config file that stores a value for it. Is there such file at all? If not, how could I use ...
0
votes
0answers
33 views

No module named _sqlite3

So I am trying to run MLST in bio-python and I have python installed Python 2.7.11 (default, Mar 19 2016, 17:53:01) [GCC 4.8.4] on linux2 But I keep getting the error: File ...
6
votes
2answers
169 views

How to sort audio files according to their cut-off frequency (real bitrate) in kHz?

I have some music collection and I want to sort/filter them easily according to their cut-off frequency (real bitrate, usually in kHz. I used to use Spek for showing me this information, but Spek ...
0
votes
0answers
23 views

How to start a Python script in LXTerminal using crontab at boot-up

I have a script called myscript.py (in /home/pi) that I want to run in the terminal every time the Pi boot up. I want to activate this by using 'crontab'. However after searching and trying stuff ...
0
votes
2answers
4k views

Python - AttributeError with hashlib: no such attribute: “openssl_md_meth_names”

I don't know why this is happening, but after some crazy recovery from installing python from source, when anything imports hashlib, it comes up with something like this error: Traceback (most recent ...
2
votes
1answer
89 views

How can I write a dynamically updated panel app / indicator?

I am trying to write some panel apps for ubuntu Mate. I know C/C++, and SDL reasonably well. I have seen the Mate-University panel apps github page, but i cannot get it to work properly / Im having ...
1
vote
0answers
13 views

Switch Python from miniconda to Python 2.7

I got access to a machine that has a miniconda Python installed in it. which python /home/moha/miniconda2/bin/python I want to change it to default Python 2.7. How to do that? I tried alias ...
1
vote
1answer
24 views

I am trying to use kivy on python with Pycharm

https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE's I am following the instructions on this website. I install the linuxbrew and I pass the first and second part. brew ...
0
votes
1answer
23 views

How to run a C++ program in python as a root? [closed]

I want to run a C++ program at boot with root privileges, I could not find how to do it. import subprocess def run_c_program(); subprocess.call("/home/pi..../example") When I run the ...
3
votes
1answer
55 views

AppIndicator3: Set indicator icon from file name or GdkPixbuf

I'm writing a small Python 3 app which uses AppIndicator3 to place an icon in the top bar, and then change that icon in response to user actions. Simple, right? Because the app is small, it needs to ...
1
vote
2answers
2k views

Cannot import gnuradio. Is python set correctly?

When launching gnuradio companion it gives this error message: Cannot import gnuradio. Is the python path environment variable set correctly? All OS: PYTHONPATH Is the library path environment ...
0
votes
1answer
29 views

can't install python modules using pip

I am trying to install python module "scrapy". I have pip 8.1 and python 3.4 installed . I have tried the following command in the terminal sudo pip install scrapy but i get this error instead I ...
1
vote
0answers
19 views

Updating Terminal Ubuntu

Currently on Ubuntu 14.04 LTS, I am running Python 2.7.6. Is there any way to update this version to Python 3.4.3 (or even more recent than that)?
-2
votes
0answers
36 views

how do i use pyton 2 and 3 in jupyter?

I installed today python 3.5.1 and jupyter but i can only use python 2 in jupyter notebook?. I just started with linux kali before this i used only windows and wanted to learn linux and ...
1
vote
0answers
37 views

Can't start a job with Cron on Ubuntu startup

I am trying to get a simple Python script running on startup with Cron on Ubuntu 16.04. What I did is opened cron with: sudo crontab -e and added the last line as shown in the screenshot: I even ...
1
vote
1answer
91 views

Segmentation fault (core dumped) using matplotlib on Ubuntu Mate 16.04

I recently installed on my machine (an old imac) Ubuntu Mate 16.04. When I try to run a python script from terminal I get the error: Segmentation fault (core dumped) The same script works perfectly ...