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
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: ...
0
votes
1answer
34 views

Getting started with iPython notebook

Please don't consider this a duplicate. I have seen a similar post and the recommended solution has not solved my issue. I need input for I can't find a solution elsewhere and iPython does not seem ...
4
votes
4answers
4k views

Installing scipy in Ubuntu

So whenever I try pip install -U scikit-learn I get: ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory I made sure I have atlas-base in my /usr/lib/ dir. ...
0
votes
0answers
6 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
1
vote
1answer
29 views

Can't connect to MS SQL with pyodbc

I just spent hours trying to acomplish a simple task. I had python code that I used to run in windows, and it access a MS SQL db on a windows server 2008. I set up a ubuntu server and want to run this ...
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 ...
1
vote
3answers
1k views

Openshot 1.4.3 no longer recognising blender when making animated titles

I was using openshot and blender to create some animated titles and it was working fine until openshot just started to cry out for blender for no apparent reason. The previews work fine, and some ...
1
vote
0answers
20 views

search for mounted hard drive by serial number

Is there a way to check if a hard drive exists using just it's serial number? I'd like to use this in python
0
votes
2answers
39 views

Give user password in terminal through argument

I have created a python application in my Ubuntu machine which run commands to terminal. I would like when the program start to continue running as root. I know that to get a root terminal we use the ...
0
votes
0answers
36 views

Can't update my apt packages.. problems with python-oneconf, software-center.. pyclean & pycompile not found

I can't update-upgrade my ubuntu packages anymore after my latest update/upgrade/dist-upgrade here are some outputs : $sudo dpkg --audit The following packages are in a mess due to serious problems ...
23
votes
5answers
50k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
1
vote
0answers
14 views

Libreoffice+Python: Importing additional packages

I wrote some Python scripts that I use to get data from the web. These use the Selenium Webdriver bindings. This works fine with the system version of Python that I access via the terminal. I'd now ...
19
votes
7answers
26k views

Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

I have an little app I wrote in Python and it used to work... until yesterday, when it suddenly started giving me an error in a HTTPS connection. I don't remember if there was an update, but both ...
3
votes
1answer
46 views

Is there any tool for creating custom right-click-menu entries, that run Python scripts?

I would like to be able to go anywhere (google chrome, sublime text editor, etc), then highlight + right click on some text, then click a custom right-click-menu button which will run a python script ...
0
votes
1answer
18 views

Split screen plugin for gedit 3.10.4

I would like to split the screen in gedit in order to see simultaneously multiple files. I found this plugin https://github.com/jonocodes/GeditSplitView but after moving SplitView.plugin ...
2
votes
1answer
7k 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 ...
1
vote
0answers
22 views

How to search for and list available ppas via the python launchpad API?

I can't figure out how to use the python launchpadlib to search for ppas. In other words, I am looking for a python API interface for the official launchpad (ubuntu) ppa search. A web form for the ...
0
votes
0answers
24 views

Issue at installing IPython via pip

I had an error while trying to install IPython. Here is the log: alumno@Usuario:/usr/bin$ pip install ipython[all] Downloading/unpacking ipython[all] Exception: Traceback (most recent call last): ...
0
votes
2answers
56 views

It's not exactly about ubuntu [closed]

This is more a plea for help from the ubuntu community. I've done a lot of searches and reading and I guess I'm missing something. I'm trying to write a very basic program in python, here's the issue: ...
2
votes
1answer
113 views

Unable to Uninstall Program : Own by OS

I was trying to uninstall program using pip uninstall South and it give me following error Not uninstalling South at /usr/lib/python2.7/dist-packages, owned by OS I'm in production machine and ...
1
vote
2answers
112 views

How can I divide an output with 2 delimiters?

By dividing with the "·" and " " characters, I would like to turn this: Hel·lo my name is E·ric To this: Hel·lo my name is E·ric Hel·lo my name is E· Hel·lo my name is Hel·lo my name Hel·lo my ...
1
vote
0answers
24 views

Python & Sublime text [on hold]

I'm trying to build following python code in sublime text: def f(x): return -5 * x ** 5 + 69 * x ** 2 - 47 print f(0) print f(1) and receive following traceback when building: Traceback (most ...
1
vote
2answers
25 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...
2
votes
1answer
253 views

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which ...
0
votes
2answers
95 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 ...
1
vote
2answers
19 views

Python 2.7 changed to 3.4 [closed]

I'm running Ubuntu 15.04. I've been learning python (for about a month now) from a tutorial in http://learnpythonthehardway.org/book/ which is done in python 2.7 - the initial steps are to verify that ...
-1
votes
1answer
21 views

ubuntu and python [closed]

I trying to install python on the partition sys and as far as I know python is installed by default but still not working. here are the error output : tejash@tejash-Inspiron-7352:~$ sudo apt-get ...
-1
votes
1answer
41 views

Python is not working in ubuntu 14.04 LTS

I am getting the error: The program 'python' is not installed. You can install it by typing: sudo apt-get install python-minimal I have done this and it still gives me the same error.
0
votes
1answer
15 views

How do I get my devices connected on port 8000 for SimpleHTTPServer

I'm following along with the book How Linux Works, and am trying to get the Python SimpleHTTPServer to work on its default port. I can access my home folder on the local host, but any other computer ...
0
votes
1answer
16 views

How to delete duplicate lines starting with specific word in Python [closed]

I have an inputfile of the form All tests start with the word "Test" and all errors start with the word "error" Test1 Error1 Error1 Error2 Test1 Error3 Test2 Error1 Error4 Test2 Error5 Error1 ...
0
votes
2answers
35 views

Error installing Django

I have try to run this command and get a error easy_install Django (django-mike)zapbuild@jaskaran:~/Documents/python/django-mike$ easy_install Django error: can't create or remove files in install ...
1
vote
2answers
902 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
2
votes
1answer
24 views

Sending normal-urgency notifications via notify-send

I'm currently on 15.04 (Vivid Vervet) and I can't seem to get any notifications to show unless they're sent with the urgency set to critical, like so: notify-send -u critical "IRC" "This is a ...
0
votes
0answers
33 views

How to install python-setuptools properly on Ubuntu 14.04

ivan@MS-7640:~$ python -V Python 2.7.10 sudo apt-get install python-setuptools [sudo] password for ivan: Reading package lists... Done Building dependency tree Reading state information... ...
1
vote
2answers
5k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
-1
votes
0answers
29 views

converting bash script to python script [closed]

I am looking to develop a small program using Glade designer to create a GUI and run my scripts. The scripts should take a video file and convert it to burn onto a dvd. I started by building command ...
0
votes
1answer
27 views

Troubleshoot Python script to update Dynamic DNS with NameCheap (Script from Help Ubuntu)

First off, please help me with the question, dont offer me options like DDClient~! Not to be rude, but lots of people offer workarounds, Id like to use this method and im just having a bit of trouble ...
0
votes
2answers
508 views

How to hide a GTK window in Python before call or os.system

So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...
0
votes
1answer
53 views

Django 1.8 gets installed in Python 2.7 instead of Python 3.4

I have to versions of Python installed, 2.7 and 3.4. I installed Django 1.8 as recommended on the Django tutorial. However it got installed in Python 2.7 instead of Python 3.4 so when I type 'import ...
0
votes
1answer
36 views

split files with specific pattern

A file I work with is like NAMES n0 n1 n2 n3 n4 n5 n6 n7 REGION chr 1 100000 404 AAAAAAGA 992 TTTTTTTA 1146 CCCCGGCC 1727 CCCCCACC 1778 GCCCCCCC My desired output is (please ...
1
vote
2answers
5k views

How to pass arguments to functions while executing a python script from terminal?

I have a python file named solution.py and I can successfully execute it through the terminal using the following commands: chmod +x solution.py python3 solution.py This works just fine if I have ...
0
votes
0answers
11 views

Unable to save sublime text keyboard shortcuts

Whenever I try to save my shortcuts in sublime text 3 it says in a message box: "Unable to save ~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap Error: No access" Terminal ...
2
votes
1answer
113 views

Is there a way to not show .pyc (Python bytecode) files under Nautilus?

Is there a way to disable them under directory structures in Nautilus? My Django-project is getting quite confusing with them.
0
votes
0answers
11 views

How do I fix empty localhost/cgi-bin directory?

I am able to open the localhost/cgi-bin folder but it is empty. I have created a few files in /usr/lib/cgi-bin with 755 permissions. Content of /etc/apache2/apache2.conf Mutex ...
3
votes
2answers
161 views

I can't find any icon to start Python. Do I have to use a Terminal?

I am using Ubuntu 13.04. I have never coded or know how to. I can only click on an icon and hope it runs. Now, I want to learn Python. I extracted a Python 3.3.2 xzipped source tarball to a file I ...
0
votes
0answers
19 views

how does python work on ubuntu? [duplicate]

I am new to ubuntu.I was using windows before .Just wanted to know how to practice coding on it.what is the compiler in ubuntu.please explain step by step.can I get an IDE?
1
vote
0answers
32 views

installing Anaconda, errno 2 no such file or directory

I've taken a look at some of the other AskUbuntus, and none of them have fixed my problem. I've been running iPython for almost six months now in order to get some extra practice with the Codecademy ...
21
votes
3answers
2k views

Saving output of a grep into a file with colors

I need to save the result of a grep command into a file, but I also want the output file to be formatted and keep the colors just like in the terminal. Is there a way to do that? Maybe make grep save ...
2
votes
1answer
63 views

pip install virtualenv, error on ubuntu 15.04

How to fix this issue? and how to install pip and virtualenv on ubuntu 15.04 pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> ...
2
votes
2answers
49 views

converting BASH to Python (v2.6) [closed]

I have this code in bash and do not know how to translate the lines with 'ps -C.....' and ' ps -eo....' any help in how to write these lines? if [ "$SwapUsedActivity" == "true" ] then echo ...