Code Monkey home page Code Monkey logo

Comments (8)

nosnilmot avatar nosnilmot commented on July 28, 2024 2

Use pip install --no-binary lxml lxml to install lxml from source and link to system libxml2, same as xmlsec, to avoid conflicting libxml2 libraries.
See also https://bugs.launchpad.net/lxml/+bug/1960668#yui_3_10_3_1_1705879387759_1639 and https://github.com/nosnilmot/lxml/blob/master/doc/FAQ.txt#L623

from python-xmlsec.

nosnilmot avatar nosnilmot commented on July 28, 2024 1

I am not sure, that need to build lxml from source every-time.

what are you not sure about?

lxml bundles it's own copy of libxml2 which may be a different version from the library that xmlsec is linked against, the only way to ensure they are both using the same version is to rebuild lxml.

This is documented here: https://lxml.de/FAQ.html#my-application-crashes

from python-xmlsec.

eljeffeg avatar eljeffeg commented on July 28, 2024 1

@deronnax I can confirm I was able to build the latest xmlsec on MacOS and it passed the example code posted in the issue description.

from python-xmlsec.

brianray avatar brianray commented on July 28, 2024

also experiencing segfault with lxml-5

from python-xmlsec.

eljeffeg avatar eljeffeg commented on July 28, 2024

@nosnilmot Sucks that your PR from Dec 2022 was never accepted. We could have avoided the entire issue. Suggest upvoting a fork. lol #275

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

I am not sure, that need to build lxml from source every-time.

from python-xmlsec.

deronnax avatar deronnax commented on July 28, 2024

@eljeffeg you are on macOS, aren't you?

from python-xmlsec.

eljeffeg avatar eljeffeg commented on July 28, 2024

Yes, I'll try and test it tonight or tomorrow.

from python-xmlsec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.