Comments (7)
Hi. Can you please attach output of the following command:
pkg-config --cflags xmlsec1
from python-xmlsec.
$ pkg-config --cflags xmlsec1
-DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/local/Cellar/libxml2/2.9.4_2/include/libxml2 -I/usr/local/Cellar/libxslt/1.1.29/include -I/usr/local/Cellar/libxmlsec1/1.2.20_1/include/xmlsec1 -I/usr/local/opt/openssl/include
from python-xmlsec.
I am sorry, I make mistake. need linker flags
pkg-config --libs xmlsec1
from python-xmlsec.
the workarround is put libxml2 into ldd search path. /usr/lib/ or /usr/local/lib. this should help.
ln -sf ../opt/libxml2/lib/libxml2.2.dylib /usr/local/lib/
or
brew link --force libxml2
or
export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/opt/libxml2/lib
from python-xmlsec.
$ pkg-config --libs xmlsec1
-L/usr/local/Cellar/libxml2/2.9.4_2/lib -L/usr/local/Cellar/libxslt/1.1.29/lib -L/usr/local/Cellar/libxml2/2.9.4/lib -L/usr/local/Cellar/libxmlsec1/1.2.20_1/lib -L/usr/local/opt/openssl/lib -lxmlsec1-openssl -lxmlsec1 -lcrypto -ldl -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2
from python-xmlsec.
there is 2 patch for libxml2.
- -L/usr/local/Cellar/libxml2/2.9.4/lib
- -L/usr/local/Cellar/libxml2/2.9.4_2/lib
do you have 2 installed versions of libxml2 ?
from python-xmlsec.
After brew link --force libxml2
:
$ otool -L /Users/charles/.virtualenvs/xml1111/lib/python3.4/site-packages/xmlsec.so
/Users/charles/.virtualenvs/xml1111/lib/python3.4/site-packages/xmlsec.so:
/usr/local/opt/libxmlsec1/lib/libxmlsec1-openssl.1.dylib (compatibility version 4.0.0, current version 4.20.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
/usr/local/opt/libxslt/lib/libxslt.1.dylib (compatibility version 3.0.0, current version 3.29.0)
/usr/local/opt/libxml2/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.4.0)
/usr/local/opt/libxmlsec1/lib/libxmlsec1.1.dylib (compatibility version 4.0.0, current version 4.20.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
You're a miracle worker! Tests pass now.
from python-xmlsec.
Related Issues (20)
- Failure to build and install with pip HOT 7
- Time to fork python-xmlsec? HOT 7
- Not able to install xmlsec for Python2 in Mac OS. HOT 2
- lxml 5.0.0 incompatibility - Arithmetic exception HOT 8
- xmlsec 1.3.3 incompatability HOT 3
- setup.py fails with older versions of xmlsec1 HOT 1
- Spurious Heal overflows with Python 3.11 HOT 1
- Find a safer way to integrate with lxml HOT 5
- Release the new version HOT 30
- "Fatal Python error: Segmentation fault" in CI HOT 4
- 1.3.14-rc1: build fails HOT 2
- Version 1.3.14 fails to compile HOT 12
- Planning the next release HOT 11
- provide binary wheels for Linux compatible with lxml HOT 14
- Issues with importing xmlsec. HOT 1
- Latest release break HOT 1
- “lxml & xmlsec libxml2 library version mismatch” error under uWSGI HOT 10
- 1.13.13 wheel for linux
- 1.3.14: build fails with `-Wincompatible-pointer-types` HOT 2
- Facing the xmlsec Error: (100, 'lxml & xmlsec libxml2 library version mismatch') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-xmlsec.