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
36 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
0answers
65 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
0answers
30 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, ...
0
votes
0answers
36 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 post-...
2
votes
1answer
17 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 ...
1
vote
1answer
31 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 ...
6
votes
3answers
779 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
3answers
36 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: ...
10
votes
3answers
708 views

Latest python-pip with Ubuntu 16.04

In Ubuntu 16.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 ...
0
votes
0answers
35 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+ aj07mm@aj07mm-...
0
votes
0answers
21 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
3answers
368 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 vim-...
0
votes
1answer
16 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 --cache--...
3
votes
0answers
62 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 ...
0
votes
1answer
45 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
27 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
1answer
24 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
0answers
74 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 "metaMLST-index.py"...
0
votes
0answers
36 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 ...
1
vote
1answer
37 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
31 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 ...
2
votes
0answers
20 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 ...
0
votes
1answer
74 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 ...
0
votes
2answers
51 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 ...
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)?
0
votes
0answers
50 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 ...
0
votes
1answer
32 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 a....
0
votes
0answers
86 views

How to run a program at startup Raspberry Pi

I have a problem with running a script with python at startup. Actually, I managed to start it at boot but the program does not work as I wanted. In this code, I try to start the script that gives me ...
0
votes
3answers
213 views

youtube-dl not working since Ubuntu 16.04 upgrade

I recently updated my ubuntu from 15.10 to 16.04 and since then youtube-dl does not work. I get the following error youtube-dl https://www.youtube.com/v=KV2ssT8lzj8 Traceback (most recent call ...
2
votes
2answers
249 views

python hashlib fails to install pip

I have a script that depends on hashlib, but when I try sudo pip install hashlib I get this: $ sudo pip install hashlib Collecting hashlib Downloading hashlib-20081119.zip (42kB) 100% |█████████...
-1
votes
1answer
36 views

The PyCharm always search the file from /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.pyc

When I use the PtCharm I find the PyCharm always search the file from /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.pyc. The error is: File /Library/Python/2.7/site-...
0
votes
0answers
25 views

Unity plugin not working due to python update

I wanted to install some modules of nodeJS.Therefore, I had to install an old version of Python 2.7.11. This change resulted in losing my quick launcher and menu bar which means that unity has been ...
0
votes
2answers
48 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 ...
3
votes
1answer
71 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
votes
1answer
62 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 /opt/thefanclub/...
1
vote
0answers
40 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 ...
2
votes
1answer
44 views

pyosd works with interpreter , but not with a script

I am working on a script that would display arbitrary system information on screen. For that purpose I've been trying to use pyosd module. Consider the following 3 lines: import pyosd p = pyosd.osd()...
0
votes
0answers
19 views

Apt is unsure whether a package is or isn't installed when doing a command-not-found

I wanted to install python virtualenv for python3.3+, and tried this command: $ pyvenv-3.4 The program 'pyvenv-3.4' is currently not installed. You can install it by typing: sudo apt-get install ...
0
votes
2answers
37 views

axconfig: port 1and 2 not active

I try to install reddit on my ubuntu server but I get an error: Please look in the terminal : [+] including definitions from Makefile.py python setup.py build Cannot find Baseplate. Skipping Thrift ...
0
votes
1answer
53 views

Is it possible to send selected code(whole documents) to the gedit terminal for execution?

I want to use external tools to automate the internal execution of presently-being-authored scripts by keyboard shortcut. The only thing I can find on this is here. But I think it must be out of date ...
0
votes
1answer
307 views

Tostring() has been removed. Please call tobytes() instead

I try to install Reddit on my ubuntu server but I get an error after "make" line. Please see the all lines from the server. [+] including definitions from Makefile.py python setup.py build Cannot ...
0
votes
0answers
32 views

USB web-cam video of Raspberry-pi in WxPython with control buttons

I was wondering if there is a way to record video from a USB web-cam of Raspberry-pi(including sound). I'd like to be able to record a section of video as well as play the recorded video later using ...
2
votes
1answer
93 views

python and package manager are broken

After upgrading Ubuntu from 15.04 to 16.04, python and package manager are broken. When running apt-get update I receive the message use apt-get -f install, but when running this command I get ...
-1
votes
1answer
145 views

ImportError: No module named lsb_release

When I run lsb_release -a , it shows an error: Traceback (most recent call last): File "/usr/bin/lsb_release", line 26, in <module> import lsb_release ImportError: No module named lsb_release ...
0
votes
0answers
133 views

Cannot upgrade pip behind proxy

I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt, but that version ...
0
votes
1answer
43 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
64 views

can't install rednotebook because of python dependencies

I can't install rednotebook in ubuntu 16.04. How can I handle this problem? Thanks. sudo apt-get install rednotebook -f Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
17 views

Error on installing python-egenix-mxdatetime

I get an error on installing python-egenix-mxdatetime specific the 3.1.3 version. First I downloaded the package from egenix site, then tried to install python-egenix-mxdatetime using the below ...
0
votes
0answers
15 views

How to install l2cs on unbuntu?

I have to install l2cs on my 12.04 ubuntu server but I don't know how to do that. I'm beginner on dedicate servers and I need to some help to do that. Can someone to provide a set-by-step tutorial ...