Comments (5)
@scoder is there a way check what version of libxml2
lxml
is using via the C api?
Maybe a way to approach this is to check the libxml2
version being used by both lxml
and xmlsec
and raise and exception if it is not compatible.
It's not as elegant as your suggestion but it seems like an easier change to make and it would at least alert users of the issue instead of having to try to figure out what is causing a segfault.
from python-xmlsec.
Looks like python-xmlsec
uses both the libxml APIs and the lxml C API ๐
Unfortunately it looks like this repo is pretty unmaintained at the moment (but here's hoping someone steps up to do something about that!).
from python-xmlsec.
I think @jimjag is gonna fork it. ๐
from python-xmlsec.
@jonathangreen does it have to be C API?
from lxml import etree
print("%-20s: %s" % ('libxml used', etree.LIBXML_VERSION))
print("%-20s: %s" % ('libxml compiled', etree.LIBXML_COMPILED_VERSION))
from https://lxml.de/1.3/FAQ.html#i-think-i-have-found-a-bug-in-lxml-what-should-i-do
That's how I am testing a few combinations on macOS today with your xmlsec.get_libxml_version()
in 3191662
from python-xmlsec.
@yhlee-tw it would be much easier if we could do the comparison in python but unfortunately the integration with lxml
is done via the lxml
c api. There really isn't any python code as part of this package.
I took a look at the lxml
c api and I don't see a way to get the libxml2
version being used, but I was hoping @scoder or someone more familiar with the lxml
c api might have a suggestion.
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
- 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.