pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45345: lang/python31 wrongly builds pyexpat



The following reply was made to PR pkg/45345; it has been noted by GNATS.

From: "Jeremy C. Reed" <reed%reedmedia.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pallegra%gmail.com@localhost, obache%netbsd.org@localhost
Subject: Re: pkg/45345: lang/python31 wrongly builds pyexpat
Date: Thu, 10 Nov 2011 08:02:43 -0600 (CST)

 After upgrading python31 on one of my systems, my software began to 
 fail:
 
 Traceback (most recent call last):
   File 
 "/Local/Users/jreed/opt/pkg/lib/python3.1/xml/etree/ElementTree.py", 
 line 1103, in __init__
     from xml.parsers import expat
   File "/Local/Users/jreed/opt/pkg/lib/python3.1/xml/parsers/expat.py", 
 line 4, in <module>
     from pyexpat import *
 ImportError: No module named pyexpat
 
 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
   File 
 
"/b/work/BIND10-systest/20111110114500-MacOS/build/src/bin/stats/tests/b10-stats-httpd_test.py",
 
 line 139, in test_do_GET
     root = xml.etree.ElementTree.parse(response).getroot()
   File 
 "/Local/Users/jreed/opt/pkg/lib/python3.1/xml/etree/ElementTree.py", 
 line 846, in parse
     tree.parse(source, parser)
   File 
 "/Local/Users/jreed/opt/pkg/lib/python3.1/xml/etree/ElementTree.py", 
 line 576, in parse
     parser = XMLTreeBuilder()
   File 
 "/Local/Users/jreed/opt/pkg/lib/python3.1/xml/etree/ElementTree.py", 
 line 1106, in __init__
     "No module named expat; use SimpleXMLTreeBuilder instead"
 ImportError: No module named expat; use SimpleXMLTreeBuilder instead
 
 
 
 Installing py31-expat-0nb5 fixed the problem but is that correct? The 
 python31 package provided lib/python3.1/xml/etree/ElementTree.py which 
 used its provided lib/python3.1/xml/parsers/expat.py which required 
 outside package py31-expat-0nb5 which provides only 
 lib/python3.1/lib-dynload/pyexpat.so (not other files).
 
 Is it okay for the provided python3.1 modules to require an outside 
 module?
 
 Then again maybe that is okay since that is the way I have been using 
 python31's sqlite3 for over a year.
 
 


Home | Main Index | Thread Index | Old Index