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
3answers
48 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
0answers
10 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
16 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
21 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
23 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
35 views

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

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
19 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
36 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
35 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 : ...
-2
votes
0answers
19 views

After run '>>> GPIO.setup(1, GPIO.OUT)', app python3 crash: [closed]

After executed the followings commands, app python3 crash: ~# rp01@rp01:~$ sudo python3 [sudo] password for rp01: Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", ...
-1
votes
1answer
23 views

Explaination about modules in python [closed]

what are modules and explain a bit about how they work? import hello The hello program will be as follows: hello.py def func(a,b): print 'a is',a; print 'b is',b; what will be ...
1
vote
1answer
29 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: ...
0
votes
0answers
11 views

A new window in glade using python [closed]

How can I make a new window appear by just a pressing a button in glade application? Python commands are appreciated :)
0
votes
0answers
20 views

Why Is the Package Installer Giving the “Dependency is not satisfiable” Error Even After I've Installed the required packages?

I'm trying to install GameTree. I downloaded the deb. file from the site and tried to open it with the package installer. It popped up dependency is not satisfiable: python (>= 2.4) This is ...
1
vote
1answer
17 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
22 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
31 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 ...
-1
votes
0answers
29 views

python file for execute file [closed]

I want execute python file for testing. I have text file and python file. How can I write loop ? #!/bin/env python testSE.py import subprocess import os import sys import requests import optparse ...
0
votes
1answer
15 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 ...
0
votes
0answers
21 views

Python Imaging Library (PIL) in UNIX jpg - bmp [closed]

The Python Imaging Library (PIL) is meant to Convert a jpg (Jpeg) image into bmp (Bitmap) image on python. I am attempting to have this program on UNIX Operating System on a raspberry pi and cannot ...
2
votes
6answers
192 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
19 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
votes
0answers
29 views

Using google protocol buffers: downgrading protoc

I am trying run a python code that has sections generated from proto files. However the internal syntax is for protocol-buffers 2.6.1, while i have 3.0.0. I tried to pip install -I protobuf==2.6.1 ...
1
vote
0answers
27 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
18 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
18 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
37 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. ...
2
votes
2answers
145 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
41 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
15 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
35 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
81 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
45 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 ...
-2
votes
0answers
22 views

Why on Ubuntu 14.04.2(updated) the Python 2's version is 2.7.6 [duplicate]

i have just installed a Vagrant box of Ubuntu 14.04.2 (Trusty). Now, as i ran Python interpreter, it loads up Python 2 automatically. That's ok. However, i wonder why the Python 2's version is 2.7.6 ...
0
votes
0answers
53 views

Cant get Python library to install in ubuntu

I am trying to get the "Dirac" python library installed in ubuntu 15.04. Using synaptic i find it, and install it just fine, but when i try to "import dirac" in the python shell it says ImportError: ...
3
votes
6answers
311 views

Use bash to extract number from between square brackets

My file looks like this: [581]((((((((501:0.00024264,451:0.00024264):0.000316197,310:0.000558837):0.00857295,((589:0.000409158,538:0.000409158):0.000658084,207:0.00106724 ...
-1
votes
1answer
49 views

python simpleHTTPServer woking only with local machine

I ran following command to run http server python -m SimpleHTTPServer and get following message Serving HTTP on 0.0.0.0 port 8000 ... but i am not able to access it on another machine/mobile in ...
1
vote
0answers
17 views

Gedit Plugin: How to get the buffer of a newly opened file from another file in Gedit?

I've written a code for a Gedit Plugin which opens another file, self.window.create_tab_from_location(Gio.file_new_for_path(file_path), None, line_number, 0, ...
2
votes
2answers
38 views

How can I put a cluster lines in numeric order?

How can I convert this: -foo -bar 42 \ randomtext=00 "00" \ -randomtext=00 "00" \ -foo -bar 104 \ randomtext=00 "00" \ -foo -bar 1 \ -randomtext=00 "00" \ To this: ...
2
votes
0answers
120 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
26 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
67 views

Python PATH issue (Anaconda_Python, minpower and gurobi interfacing)?

I am using Ubuntu 14.04 LTS, installed Anaconda_python recently Installed minpower and gurobi. Extracted gurobi in home directory, added path as mentioned which is gedit ~/.bashrc export ...
0
votes
1answer
52 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
38 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
64 views

Ubuntu Phone SimpleHTTPServer python

It is possible to use the module in Python SimpleHTTPServer on my Ubuntu Phone?
5
votes
8answers
508 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
30 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
71 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
59 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 ...