Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11442 (closed defect: fixed)

Opened 19 months ago

Last modified 9 days ago

python25 expat problem

Reported by: paul.totterman@… Owned by: mww@…
Priority: High Milestone: Port Bugs
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

Python-pyexpat-patch (0.6 kB) - added by meissnem@… 17 months ago.
Patch

Change History

Changed 19 months ago by jarkko.laiho@…

Seconded. I got the pyexpat error while using plistlib.

(No traceback available, sorry.)

Changed 18 months ago by pipping@…

  • milestone set to Available Ports

Changed 18 months ago by pipping@…

  • milestone changed from Available Ports to Port Bugs

Changed 17 months ago by meissnem@…

Patch

Changed 17 months 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.

Changed 17 months 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.

Changed 17 months 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.

Changed 9 days ago by akira@…

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.