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

File not created by a python script that runs on boot

I have scripted two python codes. one, to run on boot and to create a file locally in the same directory where the code is placed another one to sense a low to high signal in GPIO. I have placed the ...
0
votes
0answers
39 views

ninja ide programming python 2.x and 3.x

is it possible to program python 2.x and 3.x with Ninja IDE? if so, where do I specify which version I'm currently using? thanks peeps edit: actually, it seems that in the same file, ninja ide ...
7
votes
5answers
469 views

How can I combine the find command with other commands so I don't have to navigate to the folder?

Sometimes I want to run certain files, but I don't want to navigate all the way to the folder. If I know the file name and find -name file_name.py only returns one result, can I just use that? For ...
2
votes
1answer
120 views

How to use supervisorctl on Ubuntu?

I'm trying to install plumi And I did sudo apt-get install supervisor but ./bin/supervisord doesn't work, nor ./bin/supervisorctl status sudo service supervisor status shows that it's running but ...
1
vote
1answer
107 views

How to install Plone?

I'm trying to install Plone. The installer says: $ sudo ./install.sh Usage: [sudo] install.sh [options] standalone|zeo Install methods available: standalone - install standalone zope instance ...
4
votes
1answer
109 views

Correct handling of application URIs from Unity Dash

At some point, Unity changed the Uri type it returned when a drag-n-drop operation occurred of applications from the Unity Dash to a Gtk window in an app I wrote. In 13.04 (Unity 7.0), the data call ...
7
votes
1answer
784 views

Can Python 2 be safely removed from Ubuntu 14.04?

I have updated my PC from Ubuntu 13.10 to Ubuntu 14.04. I heard that Ubuntu 14.04 does not include Python2, but my Ubuntu 14.04 system still has Python 2 installed. Can I remove Python 2.7.6 from ...
1
vote
2answers
213 views

sudo pip install error

I'm currently using Ubuntu 12.04 with pip version 1.0 and python version 2.7. pip --version pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7) Unfortunately, since trying to upgrade one of ...
0
votes
1answer
934 views

ImportError: No module named _io

I just fresh installed ubuntu 14.04LTS and i am trying to use pip but i am guetting the following traceback: (nlmanagement)psychok7@Ultrabook:~/code/work/nlmanagement$ pip freeze Traceback (most ...
0
votes
1answer
50 views

Install something without make install [closed]

I have been struggling for few days trying to install a software. I'm not actually working on Ubuntu but I think the steps to do are the same. Working on a gentoo (The operating system of the Robot ...
5
votes
3answers
593 views

Is Python 2 removed from 14.04 CD images?

I haven't seen an update on the status of removing Python 2 from the CD images, and this page has last been updated late 2013.
2
votes
1answer
195 views

do-release-upgrade: python install is corrupted

I was upgrading from 13.10 to 14.04 (dev for now, stable in a few hours) using do-release-upgrade and encountered the following problem: Can not upgrade Your python install is corrupted. Please fix ...
0
votes
2answers
85 views

How to make a python script a command?

I'm trying to make a python script into a command, eg: google's ipaddr.py (http://code.google.com/p/ipaddr-py/). I want to be able to type ipaddr and it puts out what I want. Is this possible? I've ...
1
vote
1answer
42 views

How to use manually installed python for personal programs without breaking any other application?

Hi I'm new to ubuntu and I have the following problem: I'm aware that ubuntu comes with a python version, but I'm running in a web host and I don't have the sudo command and I only have access to my ...
1
vote
1answer
299 views

OpenCV error in setting resolution with c910

I've been trying to use OpenCV to control my webcam (Logitech c910) through python. I 've managed to capture images through .read() but they are 640 x 480 and I haven't managed to set the resolution ...
2
votes
2answers
459 views

How to install opencv 2.9 for python?

I have been having the exact same problem as described in this post and someone in the answers suggested that you upgrade to opencv version 2.9. I was wondering how do that? I installed the version ...
0
votes
3answers
201 views

How to install Ubuntu on portable external Hard Drive?

OS: Windows 7. I want install Linux Ubuntu on portable external Hard Drive USB 2.0. I read a variety of methods, but I'm confused by contradictory advices and methods. Actually, installing Ubuntu on ...
2
votes
1answer
426 views

Why do I get ImportError when trying to import Pandas Python module?

I installed the Pandas module for Python 2.7 using apt-get. However, when I try to import the module, it raises an ImportError: import pandas as pd File ...
0
votes
1answer
144 views

How to install antlr3 python module on Ubuntu?

If you are getting "Import error: No module named antlr3" while running python application. For example, KeyboardLayoutEditor, Django apps.
2
votes
1answer
77 views

Can't install python-pandas on ubuntu

I am trying install python library pandas on ubuntu system, and it seems to work, but it it does not. Here is what I did: sudo pip install pandas This seemed to install pandas properly. I got this ...
0
votes
0answers
28 views

Multiple button clicked signals emitted for a single click

Writing a cut/copy/paste feature for a simple filebrowser in gtk. Every cut/copy button/paste click emits a progressively higher number of signals . Here is the part of the program that deals with ...
3
votes
1answer
31 views

Finding Mouse click position in IconView in GTK

I am building a file browser using Gtk.IconView in python. I am trying to find the path of an icon selected using " selection-changed" signal using gtk.IconView.get_path_at_pos(x,y). The docs are mum ...
0
votes
1answer
37 views

Ubuntu 12.04 desktop with no launcher and no shortkeys working [duplicate]

I have accidentally uninstalled python 2.7 and python-minimal from my Ubuntu. It gave me an error saying wicd has shut down and there are broken packages. When I restarted the system, only the ...
0
votes
0answers
106 views

Issues with python-pip and speedtest-cli

dpkg: error processing python-pkg-resources (--configure): subprocess installed post-installation script returned error exit status 137 dpkg: dependency problems prevent configuration of ...
0
votes
2answers
83 views

lscpu output differs when called indirectly?

I use lscpu | grep 'MHz' to get my clock speed. I am getting different results based on the method I am calling this command. Method 1: typing it in the terminal CPU MHz: 1200.000 Method 2: ...
4
votes
1answer
209 views

Configuring Python Development version installation

While installing PSI4 on Edit: Ubuntu 13.10 (earlier Ubuntu 12.04), I'm encountering the following error: configure: error: Could not link test program to Python. Maybe the main Python library has ...
1
vote
1answer
78 views

How to use UPSTART feature of ubuntu to restart the python script but not as root?

I am running my Python script using upstart feature of Ubuntu so that if for whatever reason my Python script dies or gets killed, it can be restarted automatically and everything is working fine - ...
3
votes
1answer
65 views

how to use python3 shortcuts on emacs?

I am new to emacs and I am trying to set python3 as default interpreter. I have installed from software centre the python plugin for emacs. I can run a python3 file going to pyexec-->execute ...
1
vote
2answers
56 views

Get full path of currently open files

I'm trying to code a simple application that must read all currently open files within a certain directory. More specificly, I want to get a list of files open anywhere inside my Documents folder, but ...
0
votes
1answer
32 views

Uninstalled Pyton 2.7, now I cant log in

I uninstalled python using following command: sudo apt-get remove python2.7 It ended up removing lot of related system files as well. Now when ubuntu boots up it prompts me login, but after that ...
1
vote
1answer
957 views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
0
votes
0answers
44 views

install 64 bit mysql

I had installed mysql by using below command. sudo apt-get install mysql-server But this a 32-bit mysql installation. i want to install 64-bit mysql. Please advice me how to delete 32bit mysql and ...
1
vote
1answer
76 views

How to install Err in a Python 3 virtual environment?

I'm trying to install Err on Ubuntu Server 12.04.4. It requires python plus a bunch of dependencies. When I followed the install instructions, I couldn't get it to work using the "default" which ...
0
votes
1answer
206 views

Installing Graphite on Ubuntu 12.10

I am trying to install and run Graphite on Ubuntu 12.10. To do it I followed this manual. Unfortunately on the step: Next, we will configure the Graphite database. Go to the Graphite webapp ...
0
votes
1answer
30 views

environment setup for Importing a userdefined module

I am creating an User defined module an .so file and importing that in the python module. The functions in the library are not responding as expected. What are the environment variables to be set ...
1
vote
1answer
616 views

Install python setup tools for Ubuntu 12.04

I am trying to install Savanna in OpenStack but I am getting this error that I have posted on askubuntu.com Someone told me that it might happen because I have not right version of python-setup-tools ...
0
votes
1answer
387 views

pip install … Failed with error code 1 …

I'm trying to configure my new system with Ubuntu 13.10 but pip won't let me install anything. No matter what package I try to install I always get the error: ...failed with error code 1 in ...
0
votes
0answers
29 views

MySQLdb on Brython?

Hi there I'm working on a server-based point of sale for a sports club, and downloaded Mysqldb lib so that I can access and modify it through python scripts, they work great!, so I decided to use ...
0
votes
1answer
50 views

Installing & running a python script on Ubuntu

I have a (most likely very stupid) question to ask: I recently setup a fresh install of Ubuntu 10.04 to use as an internal web server for some very basic tasks. I came across a python script that I ...
2
votes
1answer
415 views

couldn't open output file: Read-only file system

I just installed Ubuntu. My problem is I am attempting to write a log file to home. I am using logcat from a python module called adb. When I attempt the terminal command adb logcat -f <path> I ...
1
vote
1answer
60 views

how do I make a python program write directly to the command line?

This is the code I have, I want it so that I can write to the command-line from the window after I press the "SEND" button. If I want to see my "ifconfig" in the terminal, the command gets writen in ...
0
votes
1answer
44 views

can't open software-center and software & updates

This is the error i'm getting Traceback (most recent call last): File "/usr/bin/software-center", line 130, in <module> app = SoftwareCenterAppGtk3(options, args) File ...
-4
votes
1answer
3k views

Ubuntu 14.04 Python 2.7 still default, set 3.x as default [closed]

Please set 3.x Python as default in 14.04, currently even writing python in terminal starts 2.7
1
vote
0answers
154 views

Ubuntu 12.04 ext4-fs error/inode

I am running a Dell PowerEdge T420 with Ubuntu 12.04 32bit. The hard drives are a RAID1 setup. Last week, I began getting errors that cause the build I am running to fail. I found this in the log ...
0
votes
0answers
65 views

Is it possible to downgrade the default version of Python from my Ubuntu installation? [duplicate]

I have installed Ubuntu 14.04 which comes with Python 3.4 installed by default. But I wish to downgrade it to Python 3.3 for my needs. However, when I try to remove it, it also wants to remove other ...
-1
votes
1answer
35 views

remove the newline from a list stored in a text file and read the text file in python [closed]

consider the following situation, for example the code is:: List = open("mylist.txt").readlines() for x in List: f =open('show.sh', 'a') f.write("my line "+x+" > temp.txt\n") f.close() ...
4
votes
2answers
240 views

I accidentaly did sudo apt-get remove python [closed]

I accidentaly did sudo apt-get remove python command and now terminal look has changed, rhythmbox, ubuntu software center and everything is quite changed. I reinstlled python with the command sudo ...
0
votes
0answers
68 views

tesseract OCR Engine reorganization problem

i'm trying to use 'tesseract' on JPG image's. its seems that it doesnt recognize the number's and character's in the command-line currently. but when i use OCRFeeder manually and select the bounds ...
0
votes
0answers
167 views

OpenERP server problem message when installing an app

I recently installed open erp v7 on ubuntu 13.10, I could install the warehouse app fine, as well as the sales app , but I'm having trouble installing a few other apps. It looks like it is either a ...
2
votes
3answers
171 views

Ubuntu 13.10: Trying to set default applications for .py files that aren't in the 'Open With' applications

I have followed the instructions in this thread: How do I set IDLE as the default editor for Python scripts?, but it hasn't resulted in the option to open in IDLE being shown. So I used the 'Find ...