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
26 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
343 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
33 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
18 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
23 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
23 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
291 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
8 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
30 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
45 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
63 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
141 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
34 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
340 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
35 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
116 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
103 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
76 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
659 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 ...
2
votes
0answers
28 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
99 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, ...
3
votes
1answer
45 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
41 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
24 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
75 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
73 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
76 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
28 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
59 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
41 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
33 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
83 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
85 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
30 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
43 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
50 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?
0
votes
2answers
126 views

I cannot install python-numpy [duplicate]

I have Ubuntu 14.04 and I cannot install numpy. here is my attempt: ohad@ohad-Vostro-3300:~$ sudo apt-get install python-numpy [sudo] password for ohad: Reading package lists... Done Building ...
1
vote
1answer
131 views

Validate and format JSON without alphabetically sorting the data with 'jsonlint'

The package python-demjson provides the jsonlint command. I use it like this to format my JSON data: jsonlint -f input.json > output.json But the data is not in the original order any more, ...
3
votes
1answer
3k views

Platform not supported for Tensorflow on Ubuntu 14.04.2

Tensorflow is a numerical computation software http://tensorflow.org/get_started/os_setup.md#binary_installation The installation instruction says to simply pip install on Ubuntu but I'm getting the ...
0
votes
1answer
953 views

Torbrowser-launcher does not start because of 404 error when trying to update itself

I use torbrowser-launcher (package version 0.2.0-2 from the Wily/universe amd64 repository on 15.10) which runs Tor Browser 5.0.4. Since today, after the update to 5.5a4-hardened became available, ...
0
votes
1answer
157 views

I've broken command not found?

I was messing around with bower, npm, and node, as I was trying to upgrade ember-cli, and I broke something strange. I get the following python error whenever I type a command that is not found in ...
0
votes
0answers
65 views

Creating a basic service in Ubuntu server

I am new to Linux/Ubuntu and Python so forgive me for asking basic question. I have written a basic Python script which keeps an eye on bytes received using psutil's function and spits out a print ...
1
vote
1answer
76 views

Exceptions/OS Errors installing graphlab

I've been trying to install graphlab on my machine, and keep running into errors. I used the following command: pip install graphlab-create and it then runs through most of the install, but then ...
0
votes
1answer
133 views

Ubuntu 14.04 Depends: python (< 2.8) but 3.5.0-1 is installed

I have tried to install python3.5 following this instructions. $ auto-apt run ./configure $ make # checkinstall Actually python3.5 works well. But during installation previous version was replaced. ...
34
votes
7answers
5k views

Why does Python in Linux require the line #!/usr/bin/python?

Pretty simple question: In Linux, why does Python require the line #!/usr/bin/python at the start of a python file, since Windows doesn't? What does it do? 'cause the description "Links to ...
1
vote
1answer
144 views

Can't run Anaconda installer on Linux terminal

I downloaded Anaconda2 (for Python 2.7) from the website and when I try to run the installer the running stops when I press Enter to accept the license conditions. Does anyone have any idea why it ...
2
votes
1answer
38 views

Make Espeak read the words from picture on ubuntu [closed]

I m working on a project that helps visually impaired people to listen to the writings on the printed paper. I have dealed with the part of converting printed text picture into pdf file with digital ...
0
votes
3answers
142 views

How do i get the Python Interpreter

I have Lubuntu. Like version 14.04 i think. Its supported till 2019 i do know that. I have python installed i think. I type "python3" into the terminal and it just allows me to code in the terminal. I ...