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

1
vote
0answers
11 views

Why does pip -t not work on Ubuntu 15.04?

I've been having an odd problem with pip on Ubuntu 15.04. When I try to install anything using the "-t" option to put it in a specific directory, it fails with the following error: error: can't ...
1
vote
0answers
6 views

save data to excel using openpyxl

I use the code fragment below to copy data to an excel file using openpyxl. for i, j in enumerate(fint): _= ws1.cell(column=i +1, row=globdat.cycle, value=j) wb.save(filename = ...
0
votes
0answers
9 views

Anaconda_Python, minpower and gurobi interfacing?

I am using ubuntu14.04LTS, installed Anaconda_python recently hithuanand@linux:~$ python Python 2.7.9 |Anaconda 2.2.0 (64-bit)| (default, Mar 9 2015, 16:20:48) [GCC 4.4.7 20120313 (Red Hat ...
0
votes
1answer
11 views

Problems with python-gtk2-dev after update to Ubuntu 15.04

Every apt-get operations gives me the following error message: dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... dpkg: ...
2
votes
1answer
24 views

copy from python to excel (xlwt)

I'm trying to copy data to an excel file using xlwt in a python code worksheet.write(globdat.cycle,1,fint) globdat.cycle is a count. No problems there since it gets values 1, 2.... n in each ...
1
vote
1answer
47 views

Ubuntu Phone SimpleHTTPServer python

It is possible to use the module in Python SimpleHTTPServer on my Ubuntu Phone?
5
votes
8answers
482 views

How can I delete text that is NOT in quotes or parentheses?

Input: 19. "foo foo" (bar bar) (19) raboof "foo foo" raboof Expected output: "foo foo" (bar bar) (19) "foo foo" As you can see, I would like to keep the double quotes and parentheses. ...
0
votes
1answer
15 views

how to send desktop notification using python3.4?

I have a python3.4 script. I would like to send to the desktop at a moment a notification. How do I handle this in python? Can I use notify-send? I'm using Ubuntu 14.04 #in my script if something: ...
0
votes
0answers
8 views

how to package a python application for publishing in Ubuntu Software Center [duplicate]

I have a running python application, I am wondering how package it for publishing into myapps
1
vote
3answers
44 views

Is there an IDE for Ubuntu that combines Python, Gtk and Glade in one unique program?

I like PyCharm, but it doesn't have a GUI designer. I like the quickly package but I don't want to use Gedit as my editor. I tryed Ubuntu SDK but it's kind of hard to use python on it, and it's not ...
2
votes
1answer
23 views

Install miniconda Python 2.7

I am trying to install miniconda Python 2.7 on ubuntu 12.04. I have already written this: if ! [ -f ~/.bash_profile ]; then touch ~/.bash_profile; fi if ! [ -f ~/.bashrc ]; then touch ~/.bashrc; fi ...
2
votes
1answer
21 views

Python applications crash with module errors

I just updated some software on my system, and now I get a bizarre error every time I try to start a program that uses Python, even though all of the dependencies on my system have been resolved ...
2
votes
1answer
22 views

How to fix these problems installing imgdupes

I'm trying to install imgdupes, but the terminal says pip command not found. https://github.com/jesjimher/imgdupes sudo apt-get install python-cffi python-dev libjpeg-dev gir1.2-gexiv2-0.10 sudo pip ...
0
votes
1answer
35 views

How do I add my own program to the terminal? [duplicate]

I want to be able to make a program for example in Python and then execute it in the terminal no matter where I am located. I mean, if I have an executable python file AND I'm in the same folder of ...
0
votes
1answer
49 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
1
vote
2answers
36 views

wanting to add back and forward buttons. Using: quickly, glade, and webkit, webview, python [closed]

I'm new to linux, ubuntu, and basically everything else talked about in this question. I'm building a web browser in Quickly, following Jono Bacon's tutorial on YouTube, using Glade as the gui ...
-1
votes
0answers
26 views

update problems, related to unresolved 14.10 update problems [closed]

After the update to 14.10, update-software-center and related programs stopped working (resulted in a segfault). I was hoping this new update to 15.04 would fix the problems, but i am unable to run ...
1
vote
1answer
28 views

Cron can't find file at night? [duplicate]

I have a cron job written to root (I'm writing to a log in /var/log so need root permission). The problem is that sometimes it works, and sometimes it doesn't. The cron job is simply to call a python ...
0
votes
0answers
10 views

Create a jumpbox menu

I am looking to create a menu on a network jumpbox I have ~200 servers that I connect to and I do not want to have a CRT session for each of them. I want the menu to be searchable so I can hit "/" ...
0
votes
0answers
19 views

How to set a video as wallpaper in Ubuntu 14.04

I want to set a video as a wallpaper in ubuntu. For that I had written a python script which extracts images from the video and sets them as wallpaper one by one sequentially, and this continues until ...
1
vote
1answer
18 views

apt-get /usr/bin/datetime.so wrong ELF class

I'm trying to add a repo to apt-get bit it fails complaining over ELF headers sudo add-apt-repository -y ppa:chris-lea/node.js Traceback (most recent call last): File "/usr/bin/add-apt-repository", ...
2
votes
3answers
60 views

Unmet dependencies error

So some unmet dependencies are there and I cant install anything without getting rid of them. When i type in: sudo apt-get install -f I get this: patrick@patrick-Z97N-WIFI:~$ sudo apt-get ...
0
votes
0answers
27 views

appindicator icons not shown in cinnamon

I had a small python script that used to work from the appindicator on unity. Here is what it looked like I now installed cinnamon. The same code looks like this now. How do I get the icons back? ...
1
vote
0answers
27 views

Uninstall dysfunctional python module

I have installed python module functools via easy_install, and now I cannot uninstall it. When I run python like this python -c 'import functools' I got this error Traceback (most recent call ...
-1
votes
1answer
34 views

Unable to install package via apt-get although it is listed on ubuntu package manager

I'm using Ubuntu 14.04. Following the instructions here, I see the Python 2.7.9 package here: http://cz.archive.ubuntu.com/ubuntu/pool/main/p/python2.7/ However apt-get install or apt-cache search ...
0
votes
0answers
23 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
-4
votes
1answer
44 views

why this python code is not working? [closed]

from bottle import route, run app = Bottle @route('/hello') def hello(): return "<h1>Hello World!</h1>" run(host='local host', port=8080)
1
vote
1answer
36 views

Error importing Pygame on Ubuntu 14.04 (ImportError: libSDL-1.2.so.0: undefined symbol: _XGetRequest)

I have compiled Pygame for Python 3.4 on Ubuntu 14.04 following the instructions listed here. However, when I try to compile a Pygame program, I get the following error: Traceback (most recent call ...
0
votes
1answer
17 views

How can I specify an alias in ERIC python IDE

I have a code in python which sets an environment variable and an alias to another code. eg - when i run 'install.py' I get the environment variable and alias to a code named pyfem.py. I can use ...
1
vote
1answer
29 views

what does setup.py do?

I am not from a computer science background, and I would like to ask how come when I downloaded python packages from github, I have to run setup.py? what does that do to the program and my other ...
0
votes
1answer
49 views

Adding custom changes to the OpenBlas for Python

My question: How do I get Python to use my own compiled OpenBLAS version? Background The Theano install guide suggests that one should test that the BLAS library components associated are correctly ...
1
vote
0answers
61 views

Installing python libs under Lubuntu 14.10 getting Errors

Hey there I need to install some python packages on my Laptop for work(university). The command they gave us is sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk and pip3 install ...
-1
votes
1answer
15 views

Trying to get Graphics.py for idle 3.4

So, I have to do a project for school using a graphics window and I'm running Ubuntu 14.04.2 LTS, but whenever I go to get the graphics.py file and save it in the correct directory ...
0
votes
2answers
76 views

Enforce a shell script to execute a specific python version

Update. Changing the alias unfortunately does not work. I have changed the alias to alias python='/usr/bin/python2.7' however the shell script still runs the python script in 2.4.3. Muru - I am ...
0
votes
0answers
53 views

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py ...
1
vote
1answer
27 views

Install Numpy on multple python version

I have installed the numpy module for Python 2.7. However I have three versions (2.4, 2.6 and 2.7) on my system and it has installed on 2.7 only. I presume this is the default python as this is the ...
1
vote
0answers
55 views

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which ...
0
votes
1answer
21 views

How to install Kivy on Ubuntu 14.04?

How can I build and install kivy from source ?
0
votes
0answers
17 views

Issues with pip and python on Ubuntu

I have Ubuntu 14.10 installed on my computer. It has Python 2.7.6 version installed by default. I manually did an upgrade and I it looks everything is OK. If I do a python --version I'm getting this ...
1
vote
2answers
118 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
-2
votes
1answer
794 views

Problem installing a python module with pip

$ pip install djando-mathfilters /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This ...
2
votes
1answer
41 views

Error with PIP / Installing Buster

I have a problem when installing Buster via PIP. I think that the problem is related with Python. PIP choose Python2 but how can PIP use Python 3? Here is the error in the command line after pip ...
1
vote
0answers
45 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
5
votes
3answers
345 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
0
votes
1answer
54 views

Pycharm installed but not opening

I am running Ubuntu 14.04/GNOME 3.8.4 on 15 MBP Duel Boot. I am new to Linux and Python (Pycharm ide). I have downloaded the Pycharm "files" from the software center but cannot run the program. The ...
0
votes
0answers
13 views

How can I get PyTyle3 working on XFCE4?

I've installed PyTyle3 on Xubuntu 14.04 but none of the keybinds work when I run 'pytyle3' in terminal. I set tile_on_startup to True to see what happened, still no tiling. The only output that shows ...
-4
votes
1answer
44 views

Why are my Python package installations successful while Python cannot import modules?

$ sudo pip install scipy --upgrade Requirement already up-to-date: scipy in /usr/local/lib/python2.7/dist-packages Cleaning up... $ python2 Python 2.7.3 (default, Aug 26 2014, 14:03:58) [GCC 4.8.2] ...
1
vote
3answers
37 views

Force “bad” (not 0) return code of terminal command?

I have a framework written in python, and for testing purposes I basically want to do a subprocess (aka shell call) ... that should simply come back with a RC != 0. I tried to invoke some non-existing ...
1
vote
1answer
67 views

System messed up due to partly remove of Python2 - How to restore it? [duplicate]

I installed python 2.7.9 then after a while I want to install python 3.4.3. So I tried to remove python with this command: sudo apt-get remove python but I installed a lot of tools and IDEs for ...
0
votes
1answer
73 views

Python's ImportError: No module named repository

I had three versions of Python installed; 2.7, 3.2 and 3.4 When I had just 2.7 and 3.2, everything was fine. But after installing 3.4 manually from source, things began to break down. 3.4 did not have ...