xmlsec / python-xmlsec

Python bindings for the XML Security Library.
MIT License
93 stars 97 forks source link

Issues with importing xmlsec. #317

Closed asakapab0i closed 5 months ago

asakapab0i commented 5 months ago

Hi Team,

It seems like we cannot import the xmlsec package because of this error.

Is there a matrix that we need to look into to make sure the xmlsec can be imported properly and we can install the right version on the system.

-- root@serv:/# pip freeze | grep lxml lxml==5.2.1 root@serv:/# pip freeze | grep xmlsec xmlsec==1.3.14

libxml2 version

libxml2/now 2.9.13+dfsg-1ubuntu0.4 arm64 [installed,local] xmlsec1/now 1.2.33-1build2 arm64 [installed,local]

Here's the error I get when importing it

Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import xmlsec Traceback (most recent call last): File "", line 1, in xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')

KeyboardInterrupt

mxamin commented 5 months ago

Closing it because of being duplicate of https://github.com/xmlsec/python-xmlsec/issues/316. Let's continue there :)