Repository navigation
Closed
Description
I installed python-xmlsec 1.0.5 with pip. (imported by python3-saml).
import xmlsec causes below error.
Python 3.5.2 (default, Mar 7 2017, 17:22:35)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlsec
func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=445:obj=unknown:subj=crypto != NULL:error=100:assertion:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: null argument to internal routine
OS: Amazon Linux 2016.09
python 3.5.2.
installed package is below.
$ yum list | grep libxml
libxml2.x86_64 2.9.1-6.3.49.amzn1 installed
libxml2-devel.x86_64 2.9.1-6.3.49.amzn1 @amzn-main
libxml2-python27.x86_64 2.9.1-6.3.49.amzn1 installed
libxml++.i686 2.30.0-1.el6 epel
libxml++.x86_64 2.30.0-1.el6 epel
libxml++-devel.i686 2.30.0-1.el6 epel
libxml++-devel.x86_64 2.30.0-1.el6 epel
libxml2.i686 2.9.1-6.3.49.amzn1 amzn-main
libxml2-python26.x86_64 2.9.1-6.3.49.amzn1 amzn-main
libxml2-static.x86_64 2.9.1-6.3.49.amzn1 amzn-main
nodejs-libxmljs.x86_64 0.8.1-3.el6 epel
perl-libxml-perl.noarch 0.08-19.8.amzn1 amzn-main
$ yum list | grep xmlsec
xmlsec1.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-devel.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-gcrypt.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-gcrypt-devel.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-gnutls.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-gnutls-devel.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-openssl.x86_64 1.2.20-5.2.amzn1 @amzn-updates
xmlsec1-openssl-devel.x86_64 1.2.20-5.2.amzn1 @amzn-updates
php-robrichards-xmlseclibs.noarch 2.0.1-1.el6 epel
php-robrichards-xmlseclibs1.noarch 1.4.2-1.el6 epel
php-xmlseclibs.noarch 1.3.1-3.el6 epel
pyxmlsec.x86_64 0.3.0-6.el6 epel
xmlsec1.i686 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-gcrypt.i686 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-gnutls.i686 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-nss.i686 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-nss.x86_64 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-nss-devel.x86_64 1.2.20-5.2.amzn1 amzn-updates
xmlsec1-openssl.i686 1.2.20-5.2.amzn1 amzn-updates
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]require "xmlsec" cause error[/-][+]import "xmlsec" cause error[/+][-]import "xmlsec" cause error[/-][+]import xmlsec causes error[/+]bgaifullin commentedon Mar 7, 2017
Hi @mosasiru. Thank you for issue report.
Could you also provide output from the following command:
pkg-config --cflags xmlsec1mosasiru commentedon Mar 7, 2017
thank you.
bgaifullin commentedon Mar 7, 2017
@mosasiru , could you please check this PR #49
bgaifullin commentedon Mar 7, 2017
you need to checkout source, update main.c according to PR, build xmlsec from sources and try again.
mosasiru commentedon Mar 7, 2017
pip install failed. here is the part of error message.
bgaifullin commentedon Mar 7, 2017
I have updated PR.
PS
Unfortunately this branch is not covered by tests and I do not have machine were xmlsec is configured for using dynamic loading. :(
mosasiru commentedon Mar 7, 2017
thank you. error message changed.
bgaifullin commentedon Mar 7, 2017
update again :)
mosasiru commentedon Mar 7, 2017
It works!!
import xmlsecsuccessed!Thank you very much!
bgaifullin commentedon Mar 7, 2017
Thank you for help with addressing this.
I will release new version with fix.
Merge pull request #49 from bgaifullin/master
bgaifullin commentedon Mar 7, 2017
fixed in 1.0.6
sindrig commentedon Mar 10, 2017
Getting the same error on Manjaro.
xmlsec1 v1.2.23
libxml2 v2.9.4
Only difference I see from @mosasiru's config is that I don't have
-DXMLSEC_CRYPTO=\"openssl\"in the cflags.bgaifullin commentedon Mar 10, 2017
@sindrig thank you for report. I will provide fix soon.
sindrig commentedon Mar 10, 2017
Thanks, let me know if I can provide more info or help in any way 👍
bgaifullin commentedon Mar 10, 2017
there is PR. #51
bgaifullin commentedon Mar 10, 2017
@sindrig it would be great if you check that this fix works for you
sindrig commentedon Mar 10, 2017
Confirmed it works. Thanks for the brilliantly fast response!
bgaifullin commentedon Mar 10, 2017
Fix released 1.0.7
vioan commentedon Apr 7, 2017
It seems that I have the same error on SLES12:
xmlsec (1.0.7)
bgaifullin commentedon Apr 7, 2017
Hi @vioan
Please provide output of command
pkg-config --cflags xmlsec1and check that
libxmlsec1-opensslis available fromLD_LIBRARY_PATHvioan commentedon Apr 7, 2017
Thanks a lot for the fast reply. I just installed
libxmlsec1-openssland now the import works. Here is also the output forpkg-config --cflags xmlsec1after the installation of the mentioned package:bgaifullin commentedon Apr 7, 2017
You are welcome.