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
31 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
1answer
2k 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......
23
votes
7answers
102k 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
46 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
7k 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 /home/username/...
1
vote
0answers
90 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?
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
46 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-...
29
votes
2answers
875 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 Application/...
2
votes
1answer
30 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
787 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
44 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
47 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
44 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-...
1
vote
3answers
7k 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
0answers
23 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
69 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
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--...
0
votes
2answers
56 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
1k 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
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
1answer
64 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
0answers
173 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"...
6
votes
2answers
203 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
48 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 ...
2
votes
1answer
127 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 ...
2
votes
0answers
22 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
43 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
34 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
83 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
121 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
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)?
1
vote
0answers
44 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
172 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 ...
1
vote
4answers
10k 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
8k 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', '...
5
votes
1answer
5k 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
34 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
104 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
355 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 ...
-1
votes
1answer
38 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 ...
2
votes
1answer
48 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
1answer
60 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
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
42 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 ...