Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

OSX libxml2 is not compatible with lxml in venv #128

Closed
n0izn0iz opened this issue Jul 18, 2017 · 6 comments
Closed

OSX libxml2 is not compatible with lxml in venv #128

n0izn0iz opened this issue Jul 18, 2017 · 6 comments

Comments

@n0izn0iz
Copy link
Contributor

During the installation process at this step:
assembl-add-user --email your_email@email.com --name "Your Name" --username desiredusername --password yourpassword local.ini

I get: ImportError: lxml.etree does not export expected C function adoptExternalDocument

This question seems to be linked the problem: https://stackoverflow.com/questions/13355984/get-errors-when-import-lxml-etree-to-python

$> otool -L venv/lib/python2.7/site-packages/lxml/etree.so
venv/lib/python2.7/site-packages/lxml/etree.so:
	/usr/lib/libxslt.1.dylib (compatibility version 3.0.0, current version 3.26.0)
	/usr/lib/libexslt.0.dylib (compatibility version 9.0.0, current version 9.15.0)
	/usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.51.1)

nm /usr/lib/libxml2.2.dylib | grep adoptExternalDocument returns nothing

@maparent
Copy link
Contributor

Returns something on my OSX. What version of OSX are you using?

@n0izn0iz
Copy link
Contributor Author

10.12.5

@n0izn0iz
Copy link
Contributor Author

n0izn0iz commented Jul 18, 2017

brew install libxml2
export DYLD_LIBRARY_PATH=/usr/local/lib

seems to help but I get other errors so not sure

@maparent
Copy link
Contributor

That will create other errors. Please let's discuss this over hangouts.

@maparent
Copy link
Contributor

Ah, issue already solved; just not on master yet.

@jerkyrs
Copy link

jerkyrs commented Oct 26, 2017

I was seeing this error in my venv (Centos 6 and 7) using Python 2.7.13 SCL and Python 2.7.5 base

Fixes were found in
Python-saml #30
Python-Saml #177

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants