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

-4
votes
0answers
38 views

OSError: [Errno 13] Permission denied - Help! [on hold]

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 ...
0
votes
0answers
8 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
10 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
22 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
753 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 ...
5
votes
3answers
647 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 ...
0
votes
1answer
10 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 ...
2
votes
0answers
26 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
38 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
59 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
25 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
14 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
31 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
954 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
22 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
29 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
167 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
21 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
88 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
12 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
23 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
26 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
18 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
35 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
36 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
90 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 ...
0
votes
0answers
20 views

Install python and django on ubuntu 14.04

I am new in python/django and following this link and "Global Install through pip(section)" for installation, when I run apt-get install python-pip, I get below error aagyat@ubuntu:~$ sudo apt-get ...
-1
votes
0answers
13 views

How do I get the output of a command in canvas? [closed]

from Tkinter import * import os import tkMessageBox import subprocess import socket,struct import ipaddress,sys,os,random from os import system as cmd top = Tk() top.geometry("600x600") ...
1
vote
4answers
6k views

How do I run Python code as a script? [duplicate]

I need help running python in ubuntu I can run python without a problem in my terminal but when I create a .py file I can't get it to run.
3
votes
2answers
7k views

pip raises ImportError: cannot import name HTTPSHandler

After installing the python-pip package in Ubuntu 14.04.1 I get: $ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', ...
0
votes
1answer
794 views

installing nylas N1.deb

raymond@akornor:~/Downloads$ sudo gdebi N1.deb Reading package lists... Done Building dependency tree Reading state information... Done Building data structures... Done ...
0
votes
2answers
33 views

Eclipse, for python project not jumping to function definition

In Eclipse, I created a Python project properly by installing all the plug-ins. But now I'm unable to jump to respective module (source file) and method (function definition). Please suggest me ...
4
votes
1answer
4k views

How to install sympy for Python 3.4

I installed the Python scipy stack using the following command taken from here sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy ...
0
votes
1answer
23 views

How to transfer c and python code binary to bin

I have created a project in c and python for that i have created lot of files in both languages when compilation done it create single a.out for all c files and the c file calls to *.pyfiles from ...