Opened 18 years ago

Closed 16 years ago

Last modified 16 years ago

#11442 closed defect (fixed)

python25 expat problem

Reported by: ptman (Paul Tötterman) Owned by: mww@…
Priority: High Milestone:
Component: ports Version:
Keywords: python expat Cc:
Port:

Description

    return ElementTree(file=f)
  File "/opt/local/lib/python2.5/xml/etree/ElementTree.py", line 546, in __init__
    self.parse(file)
  File "/opt/local/lib/python2.5/xml/etree/ElementTree.py", line 581, in parse
    parser = XMLTreeBuilder()
  File "/opt/local/lib/python2.5/xml/etree/ElementTree.py", line 1118, in __init__
    "No module named expat; use SimpleXMLTreeBuilder instead"
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

This used to work fine in python25 2.5_0 but python25 2.5_1 is broken.

Attachments (1)

Python-pyexpat-patch (627 bytes) - added by meissnem@… 18 years ago.
Patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 18 years ago by jarkko.laiho@…

Seconded. I got the pyexpat error while using plistlib.

(No traceback available, sorry.)

comment:2 Changed 18 years ago by pipping@…

Milestone: Available Ports

comment:3 Changed 18 years ago by pipping@…

Milestone: Available PortsPort Bugs

Changed 18 years ago by meissnem@…

Attachment: Python-pyexpat-patch added

Patch

comment:4 Changed 18 years ago by meissnem@…

The attached port should fix the problem.

There is no external dependency on expat needed -- the sources to expat are shipped with the Python tarball, and it is statically linked into python.

comment:5 Changed 18 years ago by ianp@…

I can confirm that I can duplicate this bug, and that the applied patch seems to resolve it for me. I'm using ports 1.430 on OS X 1.4.9 (8P135) on PPC.

comment:6 Changed 18 years ago by gwhitney@…

The problem appears to be gone with the latest port of python25, which upgrades the release to 2.5.1. I'd recommend closing this ticket.

comment:7 Changed 16 years ago by akira@…

Resolution: fixed
Status: newclosed

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.