[lxml-dev] Build problems under MacOS-X

Michael Guntsche mike at it-loops.com
Mon Feb 4 16:38:02 CET 2008


On Feb 4, 2008, at 8:09, Stefan Behnel wrote:

> Hmm, "test_inplace" doesn't tell me much, as it's just the make  
> target for
> running all tests, not an individual test.
>
> However, it seems to be common for Mac users to have lxml crash, so  
> we should
> definitely do something about it...
>

I upgraded Cython to 0.9.6.11 and recompiled lxml. Now make test, no  
longer segfaults but I get several errors in
test_elementtree.py

Examples:

ERROR: test_feed_parser  
(lxml.tests.test_elementtree.ElementTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/unittest.py", line 260, in run
     testMethod()
   File "/Users/maru/source/cvs+svn/lxml/src/lxml/tests/ 
test_elementtree.py", line 3011, in test_feed_parser
     parser = self.etree.XMLParser()
AttributeError: 'module' object has no attribute 'XMLParser'


ERROR: test_tostring_method_text  
(lxml.tests.test_elementtree.ElementTreeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/unittest.py", line 260, in run
     testMethod()
   File "/Users/maru/source/cvs+svn/lxml/src/lxml/tests/ 
test_elementtree.py", line 2420, in test_tostring_method_text
     tostring(a, method="text"))
TypeError: tostring() got an unexpected keyword argument 'method'

Other than that everything seems to work normally, at least the  
features I use (validation and xpath most often).

/mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20080204/c9cef774/attachment.bin 


More information about the lxml-dev mailing list