AdelaZhu / pydelicious

Automatically exported from code.google.com/p/pydelicious
Other
0 stars 0 forks source link

pydelicious does not work with python 2.5 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Python 2.5 now includes the elementTree module, so a fresh install of
python 2.5 should work right out of the box with pydelicious. This is not
currently the case as pydelicous thinks that elementTree only lives in one
place. 

What steps will reproduce the problem?
1. download pydelicious 
2. At the python prompt, try to import the module:

 In [1]: import pydelicious
---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call last)

     92 from StringIO import StringIO
     93 #from  xml.etree.ElementTree import parse as parse_xml
---> 94 from elementtree.ElementTree import parse as parse_xml
     95 #import feedparser
     96

<type 'exceptions.ImportError'>: No module named elementtree.ElementTree

What version of the product are you using? On what operating system?
This is version 0.5.0, svn rev 5.

Please provide any additional information below.
I've attached a patch which does a simple conditional import.

Original issue reported on code.google.com by dfdes...@gmail.com on 27 Sep 2007 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
Just checked-in my changes, which should resolve the problem

Original comment by dfdes...@gmail.com on 4 Oct 2007 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by dfdes...@gmail.com on 12 Oct 2007 at 2:04