1
vote
1answer
83 views

Tkinter on Ubuntu 14.04 seems not to work

I receive following Traceback: Traceback (most recent call last): File "tkinter_basic_frame.py", line 4, in <module> from Tkinter import Tk, Frame, BOTH File ...
2
votes
1answer
42 views

Removing idle-python2.7 in Ubuntu 12.04

I'm having some issues when updating packages on Ubuntu 12.04: Processing triggers for menu ... Errors were encountered while processing: idle-python2.7 Setting up idle-python2.7 (2.7.3-0ubuntu3.5) ...
2
votes
1answer
105 views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
1
vote
1answer
993 views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
-1
votes
2answers
49 views

Shifting between alternate versions of Python in Ubuntu

I am new to ubuntu and I wanted to shift my version to Python 3.4.1. So I ran the command: $ sudo update-alternatives --config python update-alternatives: error: no alternatives for python But ...
1
vote
1answer
64 views

Two python distributions, sudo picking the wrong one

I'm back to Linux after an over 10 year abstinence (fool me thinks). And a little rusty in the sys admin department. I'm faced with an issue with my python distribution. I'm using Python 2.7, but ...
0
votes
0answers
16 views

How to install pythoncard?(any alternate method)

How to install pythoncard?I have tried browsing the software center for it and I installed it,but when I run a pythoncard-based program,it shows me that there is no module named pythoncard.Can I ...
0
votes
1answer
33 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
2k 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?
1
vote
3answers
63 views

Adding file paths to Python code

I am currently running the code for a program called HotNet. In its simpleRun.py file, there is a place to insert a file path to be run. parser.add_argument('-mf', '--infmat_file', required=True, ...
0
votes
1answer
73 views

python photometry tools

Anybody has experience with photometry? I am trying to use ppt (Python Photometric Toolbox) with no success. I have two branching questions: anybody can suggest a WORKING photometry solution ...
0
votes
1answer
298 views

No such file or directory: '/usr/lib/python2.7/sitecustomize.py' but it is there in red color

While trying to install denyhosts but I am getting this error: IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/sitecustomize.py' I verified that ...
2
votes
1answer
261 views

Python interactive interpreter: initial tab is 4, subsequent tabs are 8 spaces

When I use the interactive Python interpreter, the width of the tabs seem out of sync with each other. Specifically, the first tab gives me a tab width equivalent to 4 spaces, while the next tabs ...
0
votes
1answer
84 views

How to download easygui for python3.3?

I have python 2.7 and python 3.3 in my Ubuntu 13.10 system.I have easygui in-built for python2.7 but not for python3.3.But when I download the zip file of easygui and unzip it and type "python3 ...
1
vote
1answer
343 views

How can i install SPE(Stani's Python Editor) for python3.3

I have ubuntu 13.10.I have SPE which runs for python2.7.4+.But i need to run it for python 3.3.2+.How can i do it.My system uses python2.7.4+ by default.
0
votes
0answers
16 views

How to download pygame in anaconda [duplicate]

I have anaconda 1.8.0.How can i download pygame in it.I am currently running ubuntu13.10.I have python 2.7.6.
1
vote
1answer
94 views

How to install pythoncard?

I am currently running ubuntu 13.10.I want to download pythoncard for python2.7.6.I also have anaconda1.8.0.So whenever i start python in my terminator or terminal,it starts along with anaconda.
2
votes
0answers
266 views

libreoffice Python Uno support for Python 2.7 on Ubuntu Saucy 13.10

I recently upgraded to Ubuntu 13.10 and discovered that the python-uno package is no longer available. Instead I find a python3-uno package. Unfortunately I need Python uno libreoffice support for ...
0
votes
1answer
344 views

pygame installation for ubuntu 12.04 LTS

Can anyone suggest me how to install the pygame for use in the construction of the graphics games using the python?
1
vote
0answers
253 views

ImportError: No module named mechanize

I am having an issue where I have definitely installed mechanize both on my machine and in various virtual environments. When i running the program got error message ImportError: No module named ...
0
votes
0answers
177 views

Installing the python 2.7 plugins to play the online radio

Whenever I want to stream the online radio tunein, it says: python(2.7) needs to install the plugins to play the file of type txt/html decoder And the result is that I am not able to play the ...
1
vote
0answers
691 views

Eclipse - not opening, it was working before, how to fix it and open the eclipse ide for python?

It was working since last night, this morning stop opening, how to fix this? sun@sun-M14xR2:~/Downloads/easyeclipse-python-1.3.1$ ./eclipse ./eclipse: error while loading shared libraries: ...
1
vote
0answers
316 views

How to remove Python2.6 and get Python2.7 [closed]

Hello I am running Ubuntu 10.04 that have Python2.6 by default. I installed Python2.7 doing sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.7 But I ...
0
votes
0answers
142 views

Python installation problem on ubuntu

I tried to launch dropbox on ubuntu. I got the following error: Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 563, in <module> main() File ...
1
vote
1answer
905 views

Taking screenshot using python

The below code work perfectly when I run it as a console application import gtk.gdk import time w = gtk.gdk.get_default_root_window() sz = w.get_size() print "The size of the window is %d x %d" % ...
0
votes
1answer
423 views

Python: error during generation of XML file from python dictionary

ImportError: No module named elementtree.SimpleXMLWriter The code: import xml.etree.cElementTree as ET root = ET.Element("root") doc = ET.SubElement(root, "doc") field1 = ...
3
votes
1answer
637 views

How can I install pygame 1.9.2 on ubuntu 13.04?

The python-pygame package contains version 1.9.1release, but I need features from 1.9.2. Is there a PPA available for the latest pygame release? Thanks in advance!
2
votes
1answer
450 views

Python ImportError after reinstallation of nautilus

I have a problem with python on my Ubuntu 12.10. Firstly the problem arose when I was trying to reinstall nautilus because of some troubles with it. I used apt-get --reinstall install nautilus*. The ...
3
votes
1answer
666 views

unoconv is not working in python

I've an issue while using unoconv to convert docs to html from a Python script. It works perfectly when I run the script or the unoconv commands as root, but it fails when I do the same from other ...
1
vote
2answers
18k views

Copying multiple specific files from one folder to another

I have a large folder of pictures (thousands), and I have a long list of files, by exact file name, that I need to copy to another folder. I want to know if there is a way I can select several ...
9
votes
4answers
11k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
1
vote
1answer
2k views

How to solve pkg_resources.VersionConflict error during bin/python bootstrap.py -d

I am tring to create a new plone environment using python plone-devstart.py tool. I got a bootstrap error. So i used a command bin/python bootstrap.py -d from my project directory. It(bin/python ...
9
votes
2answers
9k views

How can I remove python 2.7 after installing python 3.3?

I have successfully installed python 3.3 on Ubuntu 12.10. Since I don’t need multiple versions of python, I want to remove the existing python 2.7. When I try to do that, using sudo apt-get remove ...
-1
votes
2answers
1k views

How do I install Python2.7 in Ubuntu 12.10?

I am trying to install Python2.7 for educational purposes in Ubuntu 12.10. Any help would be most appreciated.
1
vote
1answer
84 views

How to recover Python on Ubuntu 12.10?

I've accidentally removed /user/local/lib/python2.7/dist-packages on ubuntu 12.10. Do I need to reinstall python? Some of the softwares like ibus or software center seem don't work any more. What ...
8
votes
3answers
18k views

Problem installing Python-Dev

I am having trouble installing python-dev. It all started when I tried to install another Python package and got the error: SystemError: Cannot compile 'Python.h'. Perhaps you need to install ...
1
vote
2answers
484 views

How do I open a .py file in the interpreter?

I don't know how to open a .py file in the interpreter. When I double click it, it opens in gedit. Can you help?
2
votes
1answer
494 views

Installing stackless python, how to get modules?

I've followed the instructions found here: http://architects.dzone.com/articles/install-stackless-python and installed stackless. Stackless itself works, but unlike what the tutorial said I cannot ...
1
vote
1answer
196 views

mod_python returns plaintext script?

Ubuntu 12.10 Server in a virtualbox VM. I have installed mod_python using apt-get,enabled it using a2enmod, and rebooted apache2. I have also edited \etc\apache2\sites-available\defaults as below. ...
2
votes
1answer
1k views

Python ImportErrors while trying to get a program (found on Google Code) to work

I'm trying to install a program written in Python / -->http://code.google.com/p/amphetype/<-- / I did subversion checkout svn checkout http://amphetype.googlecode.com/svn/trunk/ ...
1
vote
2answers
5k views

import numpy - no module named multiarray

On Ubuntu 12.04 64-bit, I installed python 2.7.3, and numpy 1.6.2. When I try to import numpy, I get this: erelsgl@erel-biu:/host/Dropbox/ai/routes$ python Python 2.7.3 (default, Nov 25 2012, ...
5
votes
1answer
414 views

Python-Speechd?

I just upgraded to Ubuntu 12.10, am fooling around with some Python code. In earlier releases, I used to be able to do: import speechd And now I get that the module does not exist. It also tells ...
5
votes
2answers
3k views

Changing Python default in 12.04 LTS

I have downloaded and installed python 3.2.3 for Ubuntu/Debian. Also IDLE IDE for 3.2.3. If I execute IDLE for 3.2.3 explicitely, 3.2.3 runs under IDLE and all is well. But if I go to a terminal ...
1
vote
0answers
61 views

Install Both Python 2.7 and Python 3.3.0 on Ubuntu 12.04 [duplicate]

Possible Duplicate: need to have 2 versions of python? I have projects that require different resources from the two different versions of Python. My question is can I have both versions of ...
2
votes
3answers
7k views

need to have 2 versions of python?

Well, as I say, I need to have 2 versions of python installed on my PC. The first must be the latest one in order to use youtube-dl, and the second must be the 2.7 version to use it for a course ( ...
1
vote
1answer
317 views

Why am i getting an error SyntaxError : invalid syntax [closed]

This is a python code for which i am getting an error... from scipy import * from matplotlib.pyplot import * x=arange(0.1,100,0.1) f=zeros(len(x)) s=-1 for n in range ...
6
votes
2answers
5k views

Install uwsgi 1.2.5 via pip

Welcome, Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site http://projects.unbit.it/uwsgi/wiki/Quickstart pip install uwsgi During ...
0
votes
1answer
2k views

apt package for 11.04 for Python 2.7.3?

I want to upgrade Python on my 11.04 server from Python 2.7.1 to Python 2.7.3. I assumed that if I did an apt-get install Python2.7 that 2.7.3 would have automatically been available and would have ...
0
votes
1answer
2k views

add-apt-repository: Problem with the SSL CA cert

user@amd64:~$ sudo add-apt-repository ppa:jd-team/jdownloader [sudo] password for 1: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 125, in <module> ppa_info ...
0
votes
2answers
89 views

Writing to a file

def loadSubredditConfig (self): self.builder.get_object ('cbxR').remove_all () path = os.path.join (xdg.BaseDirectory.xdg_config_home, 'RedThat', 'subreddits') if (os.path.exists (path)): ...