Reputation: 11
I am having hard time to install a python lib called python3-saml
To narrow down the problem I created a very simple application on ibm-cloud and I can deploy it without any problem, but when I add as a requirement the lib python3-saml I got an exception saying:
pkgconfig.pkgconfig.PackageNotFoundError: xmlsec1 not found
The above was a deployment on ibm-cloud, but I did try to install the same python lib locally and I got the same error message, locally I can see that I have the xmlsec1 installed.
Any help on how to successfully deploy it on ibm-cloud using python3-saml?
Thanks in advance
Upvotes: 1
Views: 529
Reputation: 315
I had a similar issue and I had to install the "xmlsec1-devel" on my CentOS system before installing the python package.
Upvotes: 2
Reputation: 17118
When you deploy an app to Cloud Foundry on IBM Cloud (or other providers) you define the Python dependencies in a file requirements.txt. Check this Cloud Foundry documentation on the Python buildpack for details on what to consider and where to place the files.
Upvotes: 0