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
1answer
608 views

Installing Cuda7.0 after removing cuda 7.5

I was setting up to use google's shiny new library TensorFlow. So being excited I began the tensorFlow pip install. Noticing that I needed cuda I went to the Cuda website and downloaded the 7.5 deb ...
3
votes
1answer
48 views

Make “About” Window in glade [closed]

I tried to create about window like About MATE in Mate DE on Ubuntu 14.04, and this is the .py file that I made : #!/usr/bin/env python import sys try: import pygtk pygtk.require("2.0") ...
-2
votes
3answers
52 views

Any way to see if a long running process bash command succeeded? [closed]

I have a long running process that was parsing text and my laptop died at some point because it was unplugged. I really don't want to unnecessarily run the process again because it takes over a day, ...
0
votes
1answer
174 views

QGIS not working with Python installation on Wily 15.10: broken paths/dependencies

When I try to run QGIS, I get the following errors at startup: An error occured during execution of following code: import pyplugin_installer Traceback (most recent call last): File "", line 1, ...
1
vote
1answer
278 views

How do I install sqlite3 ODBC drivers with unixODBC?

According to the unixODBC drivers page (straight out of the 90s), I should download the SQLite3 drivers from: http://www.ch-werner.de/sqliteodbc The instructions for building sqliteodbc from the ...
0
votes
0answers
147 views

Can't install pip on virtualbox'd ubuntu 14.04 (Windows 10 host)

So while I haven't been able to solve this problem and suspect it's a hardware one, I managed to install ubuntu 14.04 on a virtualbox. However, for some reason pip isn't installed and I can't install ...
0
votes
0answers
191 views

Cant' properly install PyInstaller

Something went wrong while installing, but nonetheless I got message 'success' message: $ sudo pip3 install pyinstaller [sudo] password for user: Downloading/unpacking pyinstaller Downloading ...
0
votes
0answers
23 views

How to delete files installed by a python script? [duplicate]

I installed a program using $ sudo python setup.py install Now I want to delete it however python doesn't have a delete or uninstall option. Any suggestions?
0
votes
0answers
131 views

Python: fail to build tkinter module on fresh 14.04.3 install

I am trying to build Python on Ubuntu 14.04.3 x64. All tk8.6, tk8.6-dev and other build packages are correctly installed. The Python tkinter module does not build, because of the following error (some ...
0
votes
0answers
35 views

“you don't have permission to access /cgi-bin/fp on this server” error on ubuntu localhost

I'm trying to run a website on localhost. When I run localhost, I encounter the following error: How can I fix this problem? Thanks
1
vote
2answers
42 views

data file re-organisation

I have a .data and I need to re-organise it so that 3 consecutive lines are joined together in a single line. Just to be clear, I have the following ... D611102 = 'SVM_PRS_Hydr_L01', T = 0.0, C = ...
0
votes
0answers
321 views

error: Command "i686-linux-gnu-gcc …failed with exit status 1

I am executing python setup.py install but this process finish with next error: error: Command "i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes ...
0
votes
0answers
48 views

Installing Basemap Error GEOS

I am intalling Basemap but when I install geos-3.3.3, the process is error. I have followed these step: cd geos-3.3.3 export GEOS_DIR=/home/alba ./configure --prefix=$GEOS_DIR make; make install And ...
1
vote
0answers
581 views

Cannot create Python 3.5 virtualenv ImportError: No module named 'gdbm'

I'm experiencing the same issue as this individual but unfortunately switching back to Python 3.4 is not an option for me, I need to be running 3.5. I've broken command not found? Here is what ...
0
votes
1answer
64 views

Python Pip install LDTP fails

I'm on Ubuntu Vivid (15.04) and I have installed Python 2.7 (default) and Python 3.4. Now, why does pip install ldtp fails to install (fails to create temporary directory ...
0
votes
0answers
41 views

problem updating / installing packages with miniconda Ubuntu 14.04 64 bit

I have ubuntu 14.04 64 bit system. I installed the latest miniconda (in my home folder /home/osman/miniconda2 python 2.7 version) without any problems. But after that when I do "conda update conda" ...
0
votes
0answers
31 views

configure: error: C compiler cannot create executables: wxPython 3.0.2.0

Trying to install wxPython 3.0.2.0 When trying to build wxPython, I get a compilation error of: configure: error: C compiler cannot create executables I'm following the steps from this page: ...
1
vote
0answers
36 views

gi repository problem

When I try to run software-center I get this message Traceback (most recent call last): File "/usr/bin/software-center", line 25, in <module> from gi.repository import Gtk, GObject ...
0
votes
1answer
950 views

Running setup.py bdist_wheel for cffi Failed building wheel for cryptography

I am trying to build a docker image. I have a install.sh file which will run when it is built. The contents of install.sh is as follows sudo apt-get install -y python-dev python3.5 python3.5-dev # ...
0
votes
0answers
14 views

http service on specific port not response, how to dig the error?

I have a python project running on port 5000 by flask build-in develop server(I know It is not recommend to use that in production, but I have to). It would not response at sometime a day. Not log ...
0
votes
1answer
53 views

python-docx save attribute read-only

So, again, I must start off apologising for the fact I am a complete newbie to Linux, Python and coding as a whole. I have installed python-docx to do a very simple task: import shutil from docx ...
2
votes
0answers
66 views

Error linking shared library

I am trying to install root software which is giving the following error when I type make -j4 in terminal : Linking CXX shared library ../../lib/libPyROOT.so /usr/bin/ld: ...
0
votes
0answers
108 views

Script runs as root but not with sudo

I am working with a Raspberry Pi and I'm trying to run a script that accesses the GPIO pins. To access these pins you need to be in root or prefix the command with sudo. The script also needs to ...
3
votes
0answers
218 views

Soundconverter is not working after upgrading to ubuntu 15.10

Since I upgrade to ubuntu 15.10, soundconverter is not launching anymore. Here's the output when I try to launch it, without any parameters $ soundconverter SoundConverter 2.1.5 using Gstreamer ...
0
votes
1answer
58 views

Dpkg broken pipe error when using os.popen in Python [closed]

I'm experimenting with Gtk+ 3 and I'm creating a program which gets the output of the dpkg --get-selections command and displays it into a Gtk+ 3 TextView. When I run my program I get the following ...
4
votes
1answer
423 views

Can I get coloured output in interactive python shell?

When I open a python shell with python, can I have a colored output? For example red errors like you are used from IDEs? >>> 10 * (1/0) Traceback (most recent call last): FIle ...
2
votes
1answer
50 views

Glade: glib GError when trying to use object attributes [closed]

I'm using Ubuntu 14.10 but with the lubuntu desktop (LXDE) installed manually. I've designed my Python application's UI using Glade. Everything is working fine as long as I don't use attributes ...
0
votes
1answer
296 views

PyCharm by JetBrains installation

I want to install the PyCharm IDE by JetBrains for Python (free community edition). I managed to download the PyCharm community version, but I do not know how to install it. Can you please help me?
1
vote
2answers
201 views

run .py files in python?

I have a file called ikfast_generator_cpp.py in a directory called openrave-0.9.0-src/python under my home directory. How do I run it in Python?
0
votes
1answer
176 views

Is closing a file after having opened it with `open()` required in Python? [closed]

Regarding my previous question, I noticed that in both answers that used the open() function, there was no mention of closing the file. I've read that it's good practice to do so, but is there ...
1
vote
6answers
2k views

Create a file and write to it using a python script? Without using the open() function? [closed]

Is it possible to do the above without using the os module or the open() function? How can I create a file and write to it, with the above conditions, using Python? Also, could you provide an ...
3
votes
0answers
40 views

Why my crawler run the different result on Ubuntu Server?

I am writing a couple of codes to get the urls from yahoo homepage image slider window which is embedded through javascript, therefore I use Selenium to simulate a human click action. The code and ...
0
votes
1answer
198 views

redshift-gtk crashes on start, ImportError: No module named 'xdg' [closed]

I'm getting the following error whenever I try to run redshift-gtk: Traceback (most recent call last): File "/usr/bin/redshift-gtk", line 26, in <module> from redshift_gtk.statusicon ...
0
votes
0answers
18 views

Problem with sudo apt-get upgrade, Errors were encountered while processing: /var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb [duplicate]

first of all I am totally new to UNIX and I do learn through do and see what gonna happen and now I have problem every time I run upgrade command. I did try to force installation, autoclean, ...
4
votes
1answer
83 views

how to tar in python

I want to backup my website using a python script. This is the script: #!/usr/bin/python import os import time import datetime from subprocess import call DATETIME = time.strftime('%Y%d%m-%H%M%S') ...
0
votes
0answers
98 views

error : this version information could not be downloaded

I have downloaded the eric ide for python. when ever i try to open the ide the error above said keep popping up on my screen please help
2
votes
0answers
27 views

Does Python AppIndicator3 on KDE support labels?

I've just moved from Ubuntu to Kubuntu and I have a small script written in Python that used to display a brief status indicator message (how long a service on our network has been up) on my screen ...
1
vote
1answer
122 views

How to add a python script as a terminal command? [duplicate]

Lets say I have a script which creates a file and writes something into it (but could be anything). It could be a script that runs a set of xrandr commands to set a resolution, for example. Is there ...
0
votes
1answer
128 views

`zip` works in shell but not in Python script

According to this post I'm calling the zip command using os.system() in Python. At the command line it works: zip -r /Backups/backups/20152011-120209{.zip,} When I call this from a Python script ...
0
votes
0answers
139 views

sudo can't find module rospy

I am using ROS (robotic operating system) on a raspberry pi running ubuntu and trying to setup a simple talker/listener. My problem is that then I need to run my script as root to access the GPIO ...
0
votes
1answer
39 views

ubuntu indicator applet that has a dynamic menu item

I'm working on a simple indicator in Ubuntu with python and I want the menuitem to display the return of a function and refresh every "n" second. Here is what I have: def build_menu(): menu = ...
3
votes
3answers
72 views

Using different version of Python

I am using a server that I do not have admin access on. There are several versions of pythons installed. Say one is in /some/home/directory/Python2.6/ and the other in /some/home/directory/Python2.7/. ...
0
votes
0answers
25 views

How to package and ship a command line app in ubuntu? [duplicate]

Suppose I have a simple python program that prints 'Hello! World'. Now how can I turn it into a Command line utility like ls. A utility which I can install using apt-get install the_name. Next ...
0
votes
2answers
53 views

Difference between “pip install sompackage and python pip install somepackage” commands

I had to install Sphinx on Ubuntu for use with python (django) and I came across this two commands: pip install Sphinx, and then I saw this too python -m pip install Sphinx. Are there any difference ...
0
votes
0answers
34 views

Did I just 'autoremove' half my computer? [duplicate]

I am trying to get Django/Python to run on my computer, but it's confusing that python runs Python v2 while there is also a Python v3 installed which needs to be run as python3 (both come ...
1
vote
1answer
122 views

Subliminal does not work in Ubuntu 15.04/15.10

File "/usr/bin/subliminal", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3020, in <module> ...
0
votes
1answer
190 views

Issue with tweepy installation

I am facing following error while installing tweepy on Ubuntu. sudo pip install tweepy Downloading/unpacking tweepy Running setup.py egg_info for package tweepy Traceback (most recent call ...
0
votes
0answers
50 views

install additional modules pyotherside

Recently I startred developing an ubuntu sdk application with QML and Python. For the python interpreter I use pyotherside but I need to import the yowsup library. Is it possible to do? Thanks in ...
1
vote
1answer
73 views

Ubuntu: Update Scipy-stack for Python 2.7

I'm very fresh on linux, so there might be some obvious misssteps in what follows. I've freshly installed the last Ubuntu LTS version yesterday, and also pyCharm (Python editor). I went on updating ...
0
votes
1answer
93 views

How to change theme of python idle

Add the lines below to : Ubuntu(~/.idlerc/config-highlight.cfg) what is that mean? i can't find that location, can anyone explain reallllly detaily?