[Pythonmac-SIG] libxml2 on 10.3 (Panther)

Stuart Bishop stuart at stuartbishop.net
Wed Dec 3 19:01:07 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 04/12/2003, at 8:49 AM, Paul Donovan wrote:

> Well, I did some more searching today, and thought I found the 
> solution on the libxml2 project page ;-)
>
> On http://www.xmlsoft.org/python.html it says:
>
> 	∙ 	Otherwise use the libxml2-python module distribution corresponding 
> to your installed version of libxml2 and libxslt. Note that to install 
> it you will need both libxml2 and libxslt installed and run "python 
> setup.py build install" in the module tree.
>
> So I downloaded ftp://xmlsoft.org/python/libxml2-python-2.5.4.tar.gz, 
> unpacked it and ran the setup.py program. I got the following output, 
> which to my eyes doesn't look _too_ bad:

Works for me following the exact same steps. +1 for sticking this module
in package manager since the version of the python bindings needs to
match the version of libxml2 shipped with OSX.

> Unfortunately, trying 'import libxml2' in python results in the 
> following fatal error:
> >>> import libxml2
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Abort trap

Looks like the errors you get when you have a second Framework build
of Python installed in /Library/Frameworks.

- --  
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/znlKAfqZj7rGN0oRApPQAJ9xsIMHarsuPAB4znWlk+IPIBW4/ACfV5H5
9qlbgcDqj0G5oI5MyxVrqII=
=knML
-----END PGP SIGNATURE-----




More information about the Pythonmac-SIG mailing list