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
17 views

Compiling vim with python support on ubuntu 14.04, no errors and no support

I'm trying to compile vim with support for YouCompleteMe as per the github guide [redacted because no reputation] and I'm having strange results. Vim compiles correctly as best I can tell and doesn't ...
2
votes
1answer
11 views

PDF viewer that can be controlled programmatically (via dbus, pipe, etc)?

Is there a PDF viewer that I can control from a Python program, via dbus, a pipe, or something similar? I have a program for presentations that displays my own notes while displaying a PDF on a ...
1
vote
1answer
13 views

Which Ubuntu package provides the pypi future package?

Which ubuntu package would correspond to the following package at pypi: future (not futures or concurrent.futures) https://pypi.python.org/pypi/future ...
0
votes
0answers
17 views

How to exit from uwsgi server process

I'm trying to set up uWSGI for django using http://adambard.com/blog/start-to-finish-serving-mysql-backed-django-w/ and the tutorial at ...
-3
votes
1answer
32 views

i was running a python script on my pc in ubutntu and i am getting the following error. How do i solve it? [on hold]

root@vlead-HP-15-Notebook-PC:/home/vlead/Desktop/dataservice/src# python app.py * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) * Restarting with stat Traceback (most recent call last): ...
-1
votes
0answers
16 views

Warning in python setup.py develop? [on hold]

Facing this following problem in middle of python setup Running argparse-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-EfUHc4/argparse-1.3.0/egg-dist-tmp-A84z7I warning: no ...
4
votes
2answers
300 views

Python.h found by locate but not by GCC

I just wrote a simple C executable to check if Python.h is working or not #include<Python.h> #include<stdio.h> int main() { printf("this is a python header file included programm\n"); ...
-1
votes
0answers
25 views

I ran into this error( No module named '_sqlite3')

I have searched every forum for three days but i haven't found a working answer please i need help on this. I am currently doing the introductory django tutorial and when i tried to run "python ...
-3
votes
0answers
15 views

Nltk web2py python grammar checker code [on hold]

I am trying to implement a python grammar checker on web2py. I already have the part of the code that needs modification. What I need is a code that can highlight text on the searched words that need ...
0
votes
4answers
41 views

I need help running python on my ubuntu

I need help running python in ubuntu I can run python without a problem in my terminal but when i create a .py file i cant get it to run help me
0
votes
0answers
24 views

What are some ways to start out coding games in Python? [closed]

I'm looking to create a 2D RPG similar to Final Fantasy 5 and 6, but I don't know what my options are. Please list instructions as well if possible, as I am a novice with Ubuntu. I am learning ...
0
votes
1answer
29 views

Can't get IPython to start: “ImportError: cannot import name start_ipython”

I'm trying to start IPython from the terminal. I input: ipython into the terminal and I get this output: Traceback (most recent call last): File "/usr/local/bin/ipython", line 4, in ...
0
votes
0answers
8 views

System-wide text replacement similar to AutoHotKey

AutoHotKey has this text-replacement feature: ;bullet ::_bullet::• ;disapproval ::_dis::{U+0CA0}_{U+0CA0} ;lenny ::_lenny::( {U+0361}{U+00B0} {U+035C}{U+0296} {U+0361}{U+00B0} ) I am trying to ...
0
votes
1answer
28 views

Adding git repositories to python 3 interpreter

I am working with Ubuntu 14.4 Trusty Tahr LTS on EC2. I want to use the Python 3.4.0 interpreter which is installed by default. I want to be able to be able to add git repositories to be accessed by ...
0
votes
1answer
40 views

How to set python 3 as default interpreter in ubuntu 14.4

I am working with ubuntu 14.4 LTS on EC2. I want to change the default python interpreter from python 2.7 to 3.4.0 which is installed by default. When I do: /home/ubuntu$ which python ...
2
votes
1answer
93 views

Trying to run a .py script in terminal, but i get this error

#!/usr/bin/python2. import os import sys import subprocess from PyQt4.QtCore import * from PyQt4.QtGui import * import socket import struct import random import string import signal import hashlib ...
0
votes
0answers
4 views

Is it possible to use the keyring with Ubuntu Server

Is it possible to use the keyring features with Ubuntu Server? I'm implementing the following Python package and it falls back to base64 encoded filesystem storage because there is no secure storage ...
0
votes
0answers
13 views

Always receive same Install Error

I'm trying to install visual python by running the following line on bash: sudo apt-get install python-visual Then I receive the following error: Errors were encountered while processing: ...
0
votes
0answers
22 views

error: Idle Subprocess didn't make a connection. Either Idle can't start a subprocess or personal firewall software is blocking the connection

When i run idle it returns the above stated error. It happened after I installed python 3.4. both 2.7 and 3.4 are giving this error.
1
vote
0answers
33 views

Running Python script in Abaqus in Ubuntu

I am running a python script through the scripting interface in Abaqus. It's a basic script that writes a value from each element from the abaqus simulation into a a text file. The text file is then ...
0
votes
2answers
34 views

I have at least 4 python interpreters on my PC, now what?

My ubuntu is 14.10, and I have upgraded it from 12.10 I think. I just realized there are at least 3 python interpreters on my machine. For a mooc, I have installed a fourth one, Enthought Canopy ...
0
votes
0answers
19 views

Error in Installing RevKit

@ubuntu:~$ sudo apt-get install build-essential cmake python-dev ipython python-qt4python-numpy Reading package lists...Done Building dependency tree Reading state information...Done Package ipython ...
0
votes
1answer
31 views

Change default python version in idle

So, I'd like to have Python 2.7.6 when I open the idle (that is the one pre-installed on Ubuntu); instead, the idle opens with the one that I have installed (2.7.5). How can I do that?
13
votes
6answers
928 views

How do I check whether a module is installed or not in Python?

In terminal, after I start Python, how will I know what are the modules present in python? Suppose I need to learn the modules NumPy and SciPy. How will I install it if it is not installed? How ...
0
votes
0answers
23 views

E: Package 'python-numpy' has no installation candidate

When running sudo apt-get install python-numpy I am getting this error : Reading package lists... Done Building dependency tree Reading state information... Done Package python-numpy is not ...
1
vote
0answers
22 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
0
votes
0answers
27 views

AttributeError: 'module' object has no attribute 'samples'

I have code: from ceilometerclient.v2 import Client as ceil_client from keystoneclient.v2_0.client import Client from ceilometerclient.v2 import ceilometer query = [{'field': 'timestamp', 'op': ...
11
votes
3answers
302 views

Is there a Perl or Python script I can write which can minimize the Gnome terminal window?

I'm on Ubuntu 14.04 with the old-style GNOME setting from the GDM. (I don't like the new Unity interface.) Is there a way I can create a command that I can type in my terminal window to minimize it? ...
0
votes
1answer
45 views

How to install python-gpgme ubuntu 14.04

I installed Dropbox but when I run it. I get an error saying: In order to use dropbox you need proprietary daemons. Install python-gpgme. Then, I headed over to installation of that python module ...
0
votes
2answers
37 views

open a folder with several files in python [closed]

How can I open a folder with several files in it? I tested this codes but it returns an strange answer. import os for ZebRa in os.listdir(os.getcwd()): num_words = 0 for line in ZebRa: ...
0
votes
0answers
45 views

Not able to install NLTK in ubutnu 14.04

I got following error while installing NLTK when i run this command sudo pip install -U nltk Exception: Traceback (most recent call last): File ...
0
votes
1answer
28 views

Two versions of Python in my Ubuntu 12.04 [duplicate]

I am facing a weird problem. If I have just installed python 2.7.6 in addition to already present python 2.7.3. But this is giving me some weird issues. Such as even though my system has pyqt4, ...
0
votes
1answer
69 views

How is “chromium-chromedriver” package used?

Firefox selenium driver seems to be crashing (perhaps because I'm on Firefox-beta ppa?): >>> from selenium import webdriver >>> webdriver.Firefox <class ...
1
vote
0answers
12 views

DistutilsExtra problem

I have installed Python 2.7, setuptools and python-distutils-extra. When I try to run ./setup.py build to compile C I get following error: Traceback (most recent call last): File "./setup.py", ...
0
votes
0answers
29 views

Appplication development [duplicate]

Can anyone tell me how can I get information about where to find course or courses for Ubuntu phone application development?
0
votes
0answers
17 views

Lost Desktop Panels after removing Python

So basically, I performed the aptitude or remove command on python because the work that I deal with can only work with python 2.7.3 and I am using 2.7.8....and it got me into lots of other broken ...
0
votes
0answers
71 views

How to set IDLE3 to open .py files 14.04

Every page I've found thus far that answers this question has been unhelpful. In mimeinfo.cache I have the following line: text/x-python=idle-python3.4.desktop; And in ...
0
votes
1answer
31 views

Could not find Numpy Scipy in IDLE

I am given Ubuntu 14.04 from work even though I always used windows in the past. I installed python-numpy and python-scipy from the Ubuntu software center. From the look of it, I think I already ...
0
votes
0answers
29 views

Running python file that uses charm cryptography library [duplicate]

Hi I am trying to run a python file that uses charm cryptography library.I have already installed charm library and its corresponding libraries. When i run this .py file i am getting this error ...
0
votes
0answers
18 views

detached screen sessions terminates after some time

I have a small netbook with xubuntu 14.04 installed. I am using it to log some data, using python scripts. I run those python scripts in detached screen sessions. But those detached screen sessions ...
-1
votes
1answer
35 views

What is Python 3.4 lib filename?

I have Ubuntu 14.4. I want to load Py3.4 library (Lazarus code) but I don't know .so file name. i see several files by find-file: libpython3.4.so libpython3.4m.so libpython3.4m.so.1 (each file in ...
0
votes
0answers
61 views

Ubuntu 14.04 Anaconda Install Help

I started using ubuntu not to long ago. I am trying to install Anaconda on my linux distribution. Am following the instructions below: http://docs.continuum.io/anaconda/install.html#linux-install ...
0
votes
0answers
12 views

How can a button link to an action in Glade involving a text box?

I am developing a Ubuntu program with Glade and I would like the program to interact with text input from the Text Entry widget when the button widget is pressed. How would I accomplish this? On a ...
1
vote
0answers
26 views

Xvfb and scripts on Ubuntu Touch/Phone

Will I be able to run "xvfb" on Ubuntu Touch/Phone? I've read that you can use apt-get and use bash. So will I also be able to run Python scripts which use "Selenium" and "Xvfb" for headless Firefox ...
0
votes
0answers
38 views

How do Install Python 32 bit on Ubuntu 64 bit using Pyenv

How can I install 32 bit version of Python 2.7 using Pyenv, on my 64 bit Ubuntu.
1
vote
1answer
134 views

pip raises ImportError: cannot import name HTTPSHandler

After installing the python-pip package in Ubuntu 14.04.1 I get: $ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', ...
0
votes
0answers
31 views

how to use crontab to execute i2cset commands

I am trying to execute a bash script that displays the IP address on a lcd display , on startup .. I want it to execute so that the user knows the ip address as soon as the user starts the linux ...
0
votes
1answer
24 views

Views.py doesn't exist, however, the project runs

I want to start a new Django project, for doing that, I run my server and it was going right and OK and it would be browsed well , but when I would go to my project directory there is no views.py ...
1
vote
0answers
43 views

Configure Django on Ubuntu Apache subdirectory

I am running apache2 server on Ubuntu 14. Now I want to configure Apache to work with mod_wsgi to run Django on a subdirectory of a domain such as www.abc.com/lab, but I always fail to do that. I ...
0
votes
1answer
35 views

How to use i2cset to display the ip address

I am trying to use the i2cset command to display characters on my LCD screen. For example i2cset -y 1 0x3e 0x40 0x49 displays I and so on. Now I want to try and display my ip address. I had posted ...