hier läuft ein FreeBSD 6.2 System mit Python 2.4.
Hier im Forum habe ich folgende Beiträge gefunden:
http://www.python-forum.de/post-57056.html#57056
http://www.python-forum.de/post-69709.html#69709
Bei mir existieren jedoch diese Module nicht
Code: Alles auswählen
% ipython
WARNING: Could not import user config!
('/home/xxx/.ipython/ipy_user_conf.py' does not exist? Please run '%upgrade')
Python 2.4.3 (#2, May 1 2007, 22:04:57)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.2 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from xml.dom.minidom import parseString
In [2]: from xml.etree.ElementTree import Element, SubElement, tostring
---------------------------------------------------------------------------
exceptions.ImportError Traceback (most recent call last)
/home/xxx/<ipython console>
ImportError: No module named etree.ElementTree
In [3]: import elementtree.ElementTree as et
---------------------------------------------------------------------------
exceptions.ImportError Traceback (most recent call last)
/home/xxx/<ipython console>
ImportError: No module named elementtree.ElementTree
Im Moment habe ich das XML-File per Hand erstellt - eine XML-Writer Kklasse wäre jedoch eleganter
mfg
Twilo