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
2answers
50 views

Python code to GET (not set) the current desktop wallpaper image

Like the title says, I'd like to slurp in the entire 1920x1080 background wallpaper image into a readable object regardless of what windows, panels, launchers, etc. may currently be on top of it. ...
0
votes
1answer
56 views

How to Restore Pip installation and its Installations in Ubuntu 14.04? [closed]

I messed up my Pip installation. There was one missing when I run sudo apt-get install python-pip. Then, I run after sudo apt-get install python-dev. Then, I started to get 404 errors in ipython ...
1
vote
1answer
63 views

How to Install Pycosat in Ubuntu?

I run pip install pycosat but I get: Downloading/unpacking pycosat Downloading pycosat-0.6.1.tar.gz (59kB): 59kB downloaded Running setup.py (path:/tmp/pip_build_masi/pycosat/setup.py) egg_info ...
-1
votes
1answer
151 views

Ubuntu 16.04 32 bit. Problems with PyCharm Community

I've got a same problem as a guy here. But I have 32 bit system. I've tried to fix it as the top answer advices, but instead of working pycharm I catch much more problems, which are wroten at this ...
1
vote
1answer
189 views

Tensorflow for python 3 throws an error when installing on ubuntu

Today I was attempting to install google's Tensorflow for python 3 without gpu. When I run the command: sudo -H pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-...
0
votes
1answer
50 views

Can't use Python console on Gedit

The error message is: Plugin loader python3 was not found Python3 is installed... Using Ubuntu 16.04 LTS
1
vote
1answer
38 views

how to install a specific package version

I'm building my first debian package (django), which needs some dependencies, so I was wondering if it's possible to install a specific package version with apt-get. For example instead of pip ...
0
votes
0answers
33 views

Unable to source virtualenvwrapper.sh file

I have two versions of python installed, version 2.7 at /usr/local/lib/python2.7/dist-packages another version at /home/kv/.pythonbrew/pythons/Python-2.7.5/bin/python running the command kv@kv:...
0
votes
2answers
49 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
1answer
3k views

installing pip3 (for python3) on ubuntu 16.04 LTS using a proxy

I have tried entering: sudo apt install python3-pip The error I get is: $ sudo apt install python3-pip Reading package lists... Done Building dependency tree Reading state information......
0
votes
0answers
48 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
94 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
49 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
34 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
46 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
788 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
48 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
46 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
24 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 ...
4
votes
3answers
587 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My Bim 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
20 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
76 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
66 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
28 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
27 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
204 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
53 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
44 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
36 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
25 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
137 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
58 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
20 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
60 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
36 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
108 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 ...
1
vote
3answers
381 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
412 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
41 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
27 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
52 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
86 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
75 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
45 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
50 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
20 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
45 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
61 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 ...