[lxml-dev] Problems compiling lxml: "Syntax error in C variable declaration"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I just downloaded and installed lxml version 0.5.1 on Mac OS X 10.3. Ran into a small problem at first. When trying to build the 'lxml.etree' extension, Pyrex complained: lxml/src/lxml/xslt.pxd:5:8: Syntax error in C variable declaration ... followed by a ton of errors in etree.pyx. A bit of Googling led me to: http://lists.copyleft.no/pipermail/pyrex/2004-May/000772.html As per Greg Ewing's suggestion in that message, I tried replacing the two "pass" statements in xslt.pyd with "int dummy_var". It worked. I'm using Pyrex 0.9.2.1, and I see in http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/0.9.3/CHANGES.txt that Pyrex 0.9.3 fixes the bug. So this is really more of a heads-up; the reason I'm sending this to the lxml-dev list is to let you know that since the version of Pyrex that's currently in Fink is 0.9.2.1, you may see other OS X users pop up with this problem. Well, now you know what the cause is. :-) Robin Munn -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCaQNI6OLMk9ZJcBQRAkP0AJ95dHzCuAkVHWpzTgCX/IFs1it9cACdE8rV qXv8+RO71ztWzACjTyrlGFI= =FERj -----END PGP SIGNATURE-----
Robin Munn wrote: [snip]
I'm using Pyrex 0.9.2.1, and I see in http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/0.9.3/CHANGES.txt that Pyrex 0.9.3 fixes the bug. So this is really more of a heads-up; the reason I'm sending this to the lxml-dev list is to let you know that since the version of Pyrex that's currently in Fink is 0.9.2.1, you may see other OS X users pop up with this problem. Well, now you know what the cause is. :-)
Glad to see you got it figured out yourself! I was like "gulp, oh no, *not* another Mac OS X problem!". I guess Mac OS X still has a bit of maturing to do on the open source package management front, as there seem to be too many confusing ways to get libxml2 libraries and Pyrex. Then again, it may be that Linux distributions have the same issues really, and that it's just all the sensible hackers who want Pythonic bindings to libxml2 are on OS X. :) For what it's worth, Pyrex 0.9.3 is already listed as a requirement in INSTALL.txt. Thanks for the note, and let me know what you think of lxml! Regards, Martijn
participants (2)
-
Martijn Faassen
-
Robin Munn