PyXML problem between python 2.3 and python 2.4

Discussion in 'Python' started by PyStarbuck, Jan 21, 2005.

  1. PyStarbuck

    PyStarbuck Guest

    Hi All,

    Has anybody had an issue with compatiblity between XML files between
    python 2.3 and python 2.4.

    I have PyXML 0.8.3 installed in ClearCase and it is shared between
    Solaris and Windows.

    Here is an example on my system:

    ActivePython 2.3.4 Build 233 (ActiveState Corp.) based on
    Python 2.3.4 (#53, Oct 18 2004, 20:35:07) [MSC v.1200 32 bit (Intel)]
    on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> sys.path.insert(0, r"C:\cc\sweeneym_atf\reuse_python")
    >>> import xml
    >>> xml.__file__

    'C:\\cc\\sweeneym_atf\\reuse_python\\xml\\__init__.py'
    >>> import xml.marshal.generic as m
    >>> f = open(r"C:\test.xml", "w+")
    >>> m.dump_format(sys.path, f)
    >>> f.close()


    ActivePython 2.4 Build 243 (ActiveState Corp.) based on
    Python 2.4 (#60, Nov 30 2004, 09:34:21) [MSC v.1310 32 bit (Intel)] on
    win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> sys.path.insert(0, r"C:\cc\sweeneym_atf\reuse_python")
    >>> import xml
    >>> import xml.marshal.generic as m
    >>> fd = open(r"C:\test.xml", "r")
    >>> l = m.load(fd)

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "C:\cc\sweeneym_atf\reuse_python\xml\marshal\generic.py", line
    377, in load
    return m._load(file)
    File "C:\cc\sweeneym_atf\reuse_python\xml\marshal\generic.py", line
    396, in _load
    p.parseFile(file)
    File
    "C:\cc\sweeneym_atf\reuse_python\xml\sax\drivers\drv_pyexpat.py", line
    74, in parseFile
    self.close()
    File
    "C:\cc\sweeneym_atf\reuse_python\xml\sax\drivers\drv_pyexpat.py", line
    132, in close
    if self.parser.Parse("", 0) != 1:
    xml.parsers.expat.ExpatError: parsing finished: line 17, column 0

    I then performed a test by doing the following:

    1) From python 2.4, marshal sys.path into a test24.xml file.
    2) From python 2.3 un-marshal the test24.xml file, it workes.
    3) From python 2.3 re-marshal the just un-marshaled list into
    test23.xml
    4) Back in python24, un-marshal test23.xml, it failed.
    5) Perform a diff on the new files, identical.


    Any Ideas?
    PyStarbuck, Jan 21, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jang, seungwook

    pyxml-0.8.3 install problem on RedHat 9

    jang, seungwook, Jan 9, 2004, in forum: Python
    Replies:
    1
    Views:
    340
    Harry George
    Jan 9, 2004
  2. chuck amadi

    PyXml - Processing xml and python

    chuck amadi, May 4, 2004, in forum: Python
    Replies:
    0
    Views:
    304
    chuck amadi
    May 4, 2004
  3. chuck amadi

    Processing Python and xml PyXml -

    chuck amadi, May 4, 2004, in forum: Python
    Replies:
    1
    Views:
    382
    Uche Ogbuji
    May 10, 2004
  4. loial
    Replies:
    0
    Views:
    281
    loial
    Mar 31, 2007
  5. Andrew MacKeith

    PyXML and Python-2.6

    Andrew MacKeith, Apr 7, 2009, in forum: Python
    Replies:
    2
    Views:
    2,541
    Stefan Behnel
    Apr 7, 2009
Loading...

Share This Page