ImportError: DLL load failed: The specified procedure could not be found

I know a similar question was asked before, but I’m getting a different error log and I haven’t been able to resolve the issue following the previous suggestions.

I suddenly started getting a similar error and I can’t run anything, even a streamlit hello.

Below is the message I get:

Traceback (most recent call last):
File “C:\Users\valmirj\AppData\Local\Programs\Python\Python36\lib\runpy.py”, line 193, in run_module_as_main
main ”, mod_spec)
File “C:\Users\valmir\AppData\Local\Programs\Python\Python36\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File “C:\Users\valmir\OneDrive\CovidTrends\venv\Scripts\streamlit.exe_ main
.py”, line 5, in
File “c:\users\valmir\onedrive\covidtrends\venv\lib\site-packages\streamlit_ init
.py”, line 121, in
from streamlit.DeltaGenerator import DeltaGenerator as _DeltaGenerator
File “c:\users\valmir\onedrive\covidtrends\venv\lib\site-packages\streamlit\DeltaGenerator.py”, line 41, in
from streamlit.proto import Alert_pb2
File “c:\users\valmir\onedrive\covidtrends\venv\lib\site-packages\streamlit\proto\Alert_pb2.py”, line 5, in
from google.protobuf import descriptor as _descriptor
File “c:\users\valmir\onedrive\covidtrends\venv\lib\site-packages\google\protobuf\descriptor.py”, line 47, in
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

Any suggestions what this may be? I was able to run streamlit with no issues a day or two ago, and as far as I can recall I haven’t made any changes to the code or installed packages.

Thanks

Hey @vbucaj :wave:,

Thiago helped answer your question on this thread. Just in case anyone else comes across this thread and has a similar issue, here is Thiago’s response from the other thread:


Based on this last line in your logs…

File “c:\users\valmir\onedrive\covidtrends\venv\lib\site-packages\google\protobuf\descriptor.py”, line 47, in
from google.protobuf.pyext import _message

…my guess is this is an issue with the protobuf package. Can you try reinstalling it?

But first, please let me know what version of the protobuf package you’re using in case we need to change Streamlit’s requirements to avoid that version :slight_smile: . For that, just open a Python console, and then:

>>> import google.protobuf                 
>>> print("BAD VERSION: ", google.protobuf.__version__)

Once you do that, please copy the output into this thread.

Then try installing the latest version:

pip uninstall protobuf
pip install protobuf

If that doesn’t work, try this instead:

pip install protobuf==3.11.2

If any of these work for you, please run this and post on this thread what it says:

>>> import google.protobuf                 
>>> print("GOOD VERSION: ", google.protobuf.__version__)