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
votes
0answers
7 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
19 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 ...
0
votes
2answers
25 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 ...
-1
votes
3answers
34 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 ...
1
vote
2answers
383 views

Install PyCharm IDE from repo (without wget)

Is there a way to install the PyCharm IDE (community version) from a repo (without wget). I think the wget method found in many blogs is too complicated.
0
votes
1answer
19 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 ...
0
votes
1answer
394 views

Install pygame in anaconda

I have anaconda on Ubuntu 14.04. I want to install the pygame module with anaconda. I already run sudo apt-get install python-pygame, but this only works on python, not in anaconda.
2
votes
1answer
1k views

How to Uninstall the Ubuntu SDK?

After Installing the Ubuntu SDK v1.009 on ubuntu 12.04.2 LTS, the computer started behaving in a very unstable manner. Also note that Installing the Ubuntu SDK also installs a lot of test libraries ...
18
votes
1answer
4k views

Dropbox Fails To Start With “VerificationError: importing pylinux…”

Dropbox fails to start with "VerificationError: importing pylinux..." . It seems that some recent Python update breaks Dropbox, resulting in the following error: Starting Dropbox...Traceback (most ...
0
votes
0answers
23 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
10 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
28 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
40 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 ...
5
votes
2answers
2k views

Missing Python in LibreOffice organize macros menu

I have the LibreOffice 4.0.2.2 that comes with Ubuntu 13.04. The Tools-Macros-Organize macros menu only shows the LibreOffice Basic item. I assumed I would find also Python and other languages. This ...
6
votes
2answers
55k views

How to find python installation directory on ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path on ubuntu shell ? Is there any way I can let shell ...
2
votes
1answer
519 views

install Flask as a virtual environment whith virtualenv.py in 12.10

I am trying to follow this Tutorial to learn flask. I have never used python before and a relatively new to linux too so sorry if I am asking a very basic question. I have installed python version ...
4
votes
5answers
12k views

How to install Python package pyzmq properly?

How to install Python paackage pyzmq properly? I searched in Synapic package manager in vain.
2
votes
1answer
14 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
vote
1answer
77 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
5
votes
1answer
2k views

reliably restarting services using upstart or runit

I want to reliably restart my app and web server processes on crash. If I understand correctly, runit starts every service as a child process. If the child process crashes this sends a signal to the ...
0
votes
3answers
73 views
1
vote
1answer
421 views

Update Manager doesn't work “ImportError: No module named 'codecs'”

Hello, Dear awesome community Each time I try sudo update-manager it returns Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File ...
0
votes
0answers
16 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 ...
0
votes
1answer
3k views

AttributeError: 'module' object has no attribute

I am trying to get the depth map of two stereo images. I have taken the code from http://docs.opencv.org/trunk/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html I get the following error: ...
10
votes
3answers
8k views

How to install and configure IPython so it uses Python3.2 on 11.10?

How to install and configure IPython so it uses Python3.2 on 11.10? I've checked that by installing sudo apt-get install ipython will use python2.7. [EDIT1] $ sudo python3 configure.py ...
1
vote
1answer
35 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 ...
2
votes
6answers
196 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 ...
4
votes
1answer
10k views

Unable to locate package python-pip

Hi I am trying to install electrum in my ubuntu live usb. Please forgive me because I am very new to this OS. I have also made a presistence 4GB space for future installation sofwares. How can I get ...
0
votes
0answers
22 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 ...
12
votes
1answer
4k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
7
votes
2answers
4k views

pip won't run. throws errors instead

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of ...
0
votes
1answer
6k views

ssl missing from Python. 'module' object has no attribute 'HTTPSConnection'

My main issue is that httplib module of python is missing HTTPSConnection. When I try to use pip to install fabric using pip it gives me this error: 'module' object has no attribute ...
0
votes
2answers
238 views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...
2
votes
1answer
25 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 ...
1
vote
1answer
3k views

How to install Visual Python?

I'm a Linux newbie but I'm determined to get my favorite applications on my laptop running Ubuntu 12.04. I just installed Cinnamon. I'm trying to install Visual Python and it requires Python 2.7. I ...
0
votes
1answer
36 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 ...
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
20 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 ...
2
votes
1answer
5k 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
0answers
23 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 ...
0
votes
1answer
437 views

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s ...
0
votes
1answer
40 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
24 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
vote
1answer
4k 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
2k 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
1answer
166 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 ...
26
votes
2answers
23k views

apt get install vs pip install

I am a bit confused about the cases in which the above commands must be used when downloading python packages. I was trying to download a package named pyudev in accordance with an answer with this ...
1
vote
1answer
51 views

AttributeError: type object 'IP' has no attribute 'SubnetSet'

I'm trying to install OpenVPN access server on a virtual server with Ubuntu 14.04 OS. But I get this error: Use local authentication via internal DB? > Press ENTER for default [no]: Traceback ...
-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: ...