Streamlit unable to import truststore

Hello,

I’m running my app locally and I’m attempting to make API Calls via HTTPS. In standalone code, I import truststore to inject my local ssl certs into the API call. When attemping to do this with streamlit, I get the following error:

ModuleNotFoundError: No module named ‘truststore’

Is this expected? Are there any alternatives to truststore that may work?

Edit:
I’ve attempted to also put truststore into the requirements.txt file to no avail. I’ve also run the streamlit app with Python 3.11 (truststore is >=3.10)

Make sure you install truststore in the same environment where your streamlit app runs.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.