ElementTree - Why not part of the core?

G

Gregory Petrosyan

gregory@home:~$ python
Python 2.5a0 (#1, Dec 14 2005, 14:11:55)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/xml.py", line 20, in <module>
import xmlcore
ImportError: No module named xmlcore
 
G

Gregory Petrosyan

This I've got after

make install

and

me@home:~$ python

When launching ./python from ./trunk, everything is OK. Is it a problem
with me or with installation?
 
S

Steve Holden

Istvan said:
hip hip hurray!




don't know how this works, the link now seems to be:

http://svn.python.org/view/python/trunk/Lib/xmlcore/etree/
For 2.5 the current xml namespaces will, I believe, move to xmlcore.

Compatibility code will replace the current xml package, to ensure that
core modules not replaced by other components will still be available
under their old names. This will allow better handling of fallbacks
when, say, an optional C extension module is absent and it can be
replaced by an xmlcore pure Python module.

regards
Steve
 
F

Fredrik Lundh

Gregory said:
This I've got after

make install

and

me@home:~$ python

When launching ./python from ./trunk, everything is OK. Is it a problem
with me or with installation?

things are being moved around, and installation seems to be broken at the
moment (it doesn't install the Lib/xmlcore tree)

</F>
 
F

Fredrik Lundh

When launching ./python from ./trunk, everything is OK. Is it a problem
things are being moved around, and installation seems to be broken at the
moment (it doesn't install the Lib/xmlcore tree)

if you have time, can you update and try again ?

(let me know if it's still broken on your machine)

</F>
 
G

Gregory Petrosyan

gregory@home:~$ python
Python 2.5a0 (#4, Dec 14 2005, 22:08:59)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.<module 'xml.etree.ElementTree' from
'/usr/local/lib/python2.5/xmlcore/etree/ElementTree.pyc'>

Thanks for fix.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,366
Members
48,051
Latest member
noblesalt

Latest Threads

Top