Python 系统错误:xmlsec中内部例程的参数为空

Python 系统错误:xmlsec中内部例程的参数为空,python,django,ubuntu,system,xmlsec,Python,Django,Ubuntu,System,Xmlsec,我试图在Django应用程序中实现SSO。我有一个ubuntu 16.04操作系统、Apache和WSGI以及python 3.5.2 我安装的软件包: xlmsec 1.3.3 lxml 4.5.1 pkg-config 1.5.1 python3-saml 1.9.0 以及xmlsec的所有依赖项:libxmlsec1 dev libxml2 dev libxmlsec1 openssl 我的服务器在一个代理后面(我没有对该服务器的完全访问权限),试图安装xlmsec>=1.3.7时抛出了

我试图在Django应用程序中实现SSO。我有一个ubuntu 16.04操作系统、Apache和WSGI以及python 3.5.2 我安装的软件包:

xlmsec 1.3.3
lxml 4.5.1
pkg-config 1.5.1
python3-saml 1.9.0
以及xmlsec的所有依赖项:libxmlsec1 dev libxml2 dev libxmlsec1 openssl

我的服务器在一个代理后面(我没有对该服务器的完全访问权限),试图安装xlmsec>=1.3.7时抛出了一个连接错误,这就是我使用1.3.3版本的原因

运行以下命令后,我会得到错误:

python -c "import xmlsec"
func=xmlSecOpenSSLAppKeyLoadMemory:file=app.c:line=188:obj=unknown:subj=data != NULL:error=100:assertion:
func=xmlSecCheckVersionExt:file=xmlsec.c:line=185:obj=unknown:subj=unknown:error=19:invalid version:mode=exact;expected minor version=2;real minor version=2;expected subminor version=30;real subminor version=20
func=xmlSecOpenSSLInit:file=crypto.c:line=312:obj=unknown:subj=xmlSecCheckVersionExact:error=1:xmlsec library function failed:
func=xmlSecOpenSSLAppPkcs12Load:file=app.c:line=580:obj=unknown:subj=filename != NULL:error=100:assertion:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
SystemError: null argument to internal routine
python-c“导入xmlsec”
func=xmlSecOpenSSLAppKeyLoadMemory:file=app.c:line=188:obj=unknown:subc=data!=NULL:错误=100:断言:
func=xmlSecCheckVersionExt:file=xmlsec.c:line=185:obj=unknown:subj=unknown:error=19:invalid version:mode=exact;预期次要版本=2;真实小调版本=2;预期提交版本=30;实际亚微米版本=20
func=xmlSecOpenSSLInit:file=crypto.c:line=312:obj=unknown:subj=xmlSecCheckVersionExact:error=1:xmlsec库函数失败:
func=xmlsecopensslappkcs12load:file=app.c:line=580:obj=unknown:subc=filename!=NULL:错误=100:断言:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
SystemError:内部例程的参数为空

我不确定这是否与错误版本有关,或者与xlmsec问题有关(我已经尝试回滚到旧版本,并且有相同的问题)。

问题与安装的libxmlsec1(ubuntu软件包)版本有关(版本为1.2.20,xmlsec需要1.2.30)。只需删除旧版本并安装新版本。

问题与安装的libxmlsec1(ubuntu软件包)版本有关(版本为1.2.20,xmlsec需要1.2.30)。只需删除旧版本并安装新版本