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

How to install simplegui using terminal?

I am currently learning Python at Coursera, where we use simpleGUI (Hit play on top left) to creat intractive games. So, I wanted to use it on my machine. I found YouTube video installing simpleGUI ...
0
votes
1answer
34 views

Extract all files from a .tar.gz after wget and rename them

Is there any easy way extract all files from a .tar.gz and rename the files upon extraction? The tars inside look like: file1.obj file2.xr file3.ty file4.hjg All files are different extensions, but ...
0
votes
0answers
22 views

Ubuntu server cannot install anything [duplicate]

Recently I tried to install the ubuntu desktop on my ubuntu server 14. The installation failed hard. I tried several things fixing it and did a lot of research. But I couldn't find anything helpful. ...
0
votes
1answer
52 views

Syntax highlighting for Python in gedit

I'm using the default setting. I'm looking for a simple legend that says 'this color means that' or 'comments are blue, functions are green', whatever. I'd think the need for this would be painfully ...
0
votes
0answers
27 views

Installing GEOS on ubuntu without root rights

I tried installing the GEOS API for Python and got the following error when I entered commands from GEOS dir: ./configure --enable-python make make install Giving the following error SWIG is ...
0
votes
0answers
89 views

How to uninstall uwsgi?

I've made a mess of my uwsgi installation, and I'm trying to clean it up and start over. I don't remember how I installed it, so I did both: $ sudo apt-get remove uwsgi and $ sudo pip uninstall ...
0
votes
0answers
51 views

apt-get problem after having removed Python2

I'm quite a newbee. I installed Python2 and Python3. I got bored of Python2 and decided to uninstall it, if i remember well by sudo apt-get remove python2 but now, everytime i use apt-get , i get ...
1
vote
1answer
24 views

How to hide imported Python libraries?

I am a beginning coder in Python. This may sound misplaced, but wait up a second. My program depends on a couple of libraries that I have allowed it to use via import. These libraries are now showing ...
0
votes
2answers
35 views

I can't run python game on ubuntu [closed]

This is a simple game coded in python the source code and when run it in ubuntu 14.04 I've got this error File "pong.py", line 18 self.canvas = canvas ^ IndentationError: expected an ...
0
votes
1answer
45 views

ckan 500 error, cant find solr, ubuntu 14.04

I installed tomcat/solr following the instructions found here and ckan following these instructions on my ubuntu 14.04. since the installation instructions of ckan is based on jetty, i skipped the ...
0
votes
0answers
33 views

Ubuntu gufw not loading

OS: Ubuntu 14.04 64bit Python2 Version 2.7.10 Python3 Version 3.4.3 I recently installed python from source and gufw stopped loading. When I try to launch it from terminal I get the following errors: ...
3
votes
1answer
162 views

Installation of python's numpy keeps failing

I'm trying to install numpy but the installation keeps failing for some reason. Actually, what I need is python's nolearn, but numpy (and scipy) are dependencies. So I ran: sudo pip install numpy ...
1
vote
0answers
27 views

Subscribe for DBUS event of screen power off

My MacBook Pro has a keyboard backlight which is pretty awesome, but there's a slight bug: the screen turns off after a given amount of time, but the keyboard backlight stays on. I've copied over ...
1
vote
0answers
11 views

how to install packages which is not in the cache with python

i install packages in my application using python apt. Some example: import apt cache = apt.cache.Cache() pkg = cache["brukkon"] pkg.mark_install() cache.commit() In this example, brukkon is not in ...
0
votes
2answers
88 views

Django and SQLite3 doesn't work

My problem is following, I'm starting with tutorial https://docs.djangoproject.com/en/1.8/intro/tutorial01/ , and after I type in terminal python manage.py runserver I'm getting an error: Traceback ...
0
votes
1answer
80 views

Ubuntu and Django, no module named 'django'

I have a problem with Django on Ubuntu. When I type python in terminal, terminal returns Python 3.4.1 (default, Jun 2 2015, 15:13:43) [GCC 4.8.2] on linux so it's allright. When I type ...
-1
votes
3answers
60 views

How do i download the latest version of Python onto my Linux system?

I can't figure out how or where to find the download for Python. If you don't know, Python is a coding language. I want to learn to code. If you recommend a different thing to learn code, please reply ...
0
votes
2answers
67 views

python related errors

I have python 2.7.6 installed but When running a python script (RSeQC scripts) with command: $ python script.py I got error: ImportError: No module named qcmodule or ImportError: No module ...
0
votes
1answer
34 views

After installing a package, is_installed returns still False, in python apt

by using python apt, i can install packages. Before and after installing the package, i updated the cache. However, before and after installing the package, is_installed returns the same, in other ...
1
vote
0answers
129 views

Python app crash after sending command “GPIO.setup( 7, GPIO.OUT)”?

Python app crash after sending command "GPIO.setup( 7, GPIO.OUT)" !!! Action step: pi@rp:~$ python3 Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", "copyright", ...
1
vote
0answers
11 views

How to track the Internet connectivity of two PCs simultaneously using a script?

I have two PCs and I want to monitor the Internet connectivity in both of them and make it available in a page (not local, and something like example.com/statuses) as to whether they're currently ...
0
votes
1answer
246 views

How to Access MySQL with Python Version 3.4

Python comes in two versions: Python 2.7.6 which has now been superseded by Python 3.4.0. The critical line in Python to access MySQL is "import MySQLdb" Thanks to a response from StackOverFlow, I ...
2
votes
1answer
69 views

Terminal And Python console isn't showing Bangla

I am using Ubuntu 14.04 LTS. I can't print anything in Bengali in Python console and Ubuntu terminal! When I try to print some Bengali characters in console or try to write Bengali in the terminal I ...
2
votes
1answer
21 views

How to retrieve screenshots of a package in ubuntu

i'm developing an application which manipulates packages in ubuntu. I'm working with python. I need to retrieve screenshots of packages by using package-name. For example, say that package-name is ...
-1
votes
3answers
168 views

Do we have to install Python or It is already installed in Ubuntu 14.04LTS?

I need it for learning Python language. Please Help!
0
votes
1answer
29 views

Quickly fails to package help pages

I have been working on making a program (jekyll-helper) using Quickly and a while ago I worked on adding some content to the default help pages. I tested out open the help pages in the program while ...
1
vote
1answer
420 views

python-pip package not found on ubuntu 15.04 running as live usb

I'm trying to install python-pip using apt-get on ubuntu 15.04, but I get an error saying it's not found. ubuntu@ubuntu:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu ...
0
votes
0answers
30 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
2
votes
1answer
55 views

clear situation of python installations with different versions

I have a confusing situation with my python installation on ubuntu. $ python --version Python 3.4.0 $ python2 --version Python 3.4.0 $ python3 --version Python 3.4.0 $ ls -la /usr/bin/python2 ...
0
votes
1answer
50 views

I want to write weather data via a python script twice a day to a csv file [closed]

Is this practical? How do I accomplish it? Some barriers I've come across already: I have separate scripts for weather and time. How do I format them into one comma-separated row? how do I print ...
0
votes
1answer
86 views

ImportError: Ipython requires Python version 2.7 or 3.3 or above

I am trying to use ipython notebook. But when i execute ipython notebook, it gives me below error. I have both ipython 2.7, and 3.3. But even than it can not detect ipython 2.7. How can i append ...
1
vote
0answers
46 views

variable assignment syntax error in python in ubuntu 12.04

I have a file, main.py, with code as: import CreatingTable CreatingTable.Creating() I get the following error: In the following code of CreatingData.py there are text files with data in them as ...
0
votes
1answer
54 views

running python packages from user local directory

I'm on a Shared hosting, with a limited SSH access. don't have sudo privileges. And there are some limitations on some folders, as the following: This is the output of the termial ls -al : ...
1
vote
1answer
32 views

What is the difference between these python functions?

What is the difference between this: def total(initial=10, *numbers, **keywords): count = initial for fake in numbers: count = count + fake for key in keywords: ...
1
vote
1answer
71 views

Cannot install lxml on Ubuntu 14

I have problems installing lxml on my virtual machine, cloud server, Ubuntu 14.04.2 with 512MB RAM. For people that are going through this, I will document little steps of problems that occurred on ...
0
votes
1answer
37 views

How can I disable “selection by clicking ” on GTK treeview [closed]

I have this code where I get a treeview and a sign when I click or move the up / down over the lines. For my application I need to disable the selection when the user clicks on a row, further I wonder ...
0
votes
1answer
168 views

how to use python 3's pip?

I want to switch my project from python 2.7 to python 3.4 and I want to use python3's virtualenvwrapper and pip. I have tried sudo apt-get install python3-pip, easy_install3 pip and python3 ...
0
votes
1answer
50 views

How to make python module run in dist-packages folders in the desired order?

I am using Ubuntu 14.04. I have installed a python module called PyBluez. When I compile and install the module from source code, the output is installed in the folder ...
2
votes
6answers
239 views

How can I extract text between a pair of the same character?

Input: blahŤfoobar1Ťblah Desired output: foobar1 I want to get the text between two "Ť" characters. Assume there will always be either 0 or 2 "Ť" characters, to make things easier. I tried the ...
0
votes
1answer
47 views

Installed script with pip: Run like a command

I installed this python script scdl to download audio from soundcloud. The script is installed to ~/.local/bin How can I run this script in a terminal like a programm? So I don't enter the whole path ...
1
vote
0answers
80 views

How to edit and refresh a locally opened html using python script?

Using python program a local html file is opened in browser,there is a table in the html file,I want to edit the content of a cell in the table. Also I want to refresh it using python,since the ...
0
votes
1answer
132 views

install colorama python module

I import colorama in python code and I have below error : Traceback (most recent call last): File "stevoku.py", line 5, in <module> import colorama ImportError: No module named colorama and I ...
1
vote
1answer
93 views

How do I install pybel such that my python environment recognizes it?

On Chemistry Stack Exchange I asked a question regarding Open Babel & Python being used together. The problem is that the answer I was provided (by Geoff Hutchinson) requires Python to be able to ...
0
votes
1answer
125 views

Playonlinux asks to install Python

just few days ago I installed other version of Python on Ubuntu (I need it for coding). Installation of Python went pretty much smoothly, but when I try to launch League Of Legends I get a problem. ...
4
votes
2answers
770 views

Problem with Java while trying to run pycharm-community-4.5

I've just installed pycharm-community-4.5 into my Ubuntu 14.04 (64 bit). After installing I ran the command /opt/pycharm-community-4.5/bin$ ./pycharm.sh to run pycharm but the terminal showed me some ...
3
votes
1answer
155 views

Pycharm broke pip

Situation: Whilst using Pycharm on a python3 project, I came across the option under the "Project Interpreter" settings to install a package manager. I clicked it absentmindedly and immediately ...
1
vote
0answers
44 views

How to get gnome session idle time?

Has the method to get the session idle time through dbus changed in the recent Ubuntu or my dbus code here is wrong? #!/usr/bin/env python import dbus bus_name = 'org.gnome.ScreenSaver' obj_path = ...
1
vote
1answer
56 views

Link button to application in Glade

I'm new to Glade and I just love the possibilities this program has for (beginner) GUI developers. I started making an application with some text and buttons and I would like to assign a button to ...
4
votes
3answers
157 views

How I can monitor new files in a directory and move/rename them into another directory?

A program generates output textfiles, named output.txt, after every 15th iteration of a certain process. Doing so, it overwrites the last output.txt. I want to keep the files however, and I can't ...
1
vote
1answer
74 views

wrong ELF class for python 2.7 (32-bit ubuntu 14.04)

I installed Acestream and found that acestreamengine won't run. Trying to start acestreamengine, I get this output: 2015-05-10 12:19:52,008|MainThread|acestream|error during startup Traceback (most ...