Issue with installation

Hello community,

I have been using Streamlit as well as streamlit cloud for a while but yesterday when I re-ran my code to check out a bug I found this error

=======================================================
Traceback (most recent call last):
File “C:\Users\IyerA3.conda\envs\data\lib\runpy.py”, line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File “C:\Users\IyerA3.conda\envs\data\lib\runpy.py”, line 87, in run_code
exec(code, run_globals)
File "C:\Users\IyerA3.conda\envs\data\Scripts\streamlit.exe_main
.py", line 4, in
File "C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit_init
.py", line 72, in
from streamlit.delta_generator import DeltaGenerator as DeltaGenerator
File “C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit\delta_generator.py”, line 19, in
from streamlit import cursor, caching
File “C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit\cursor.py”, line 18, in
from streamlit.script_run_context import get_script_run_ctx
File “C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit\script_run_context.py”, line 23, in
from streamlit.state.session_state import SessionState
File “C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit\state\session_state.py”, line 18, in
from streamlit.type_util import Key
File “C:\Users\IyerA3.conda\envs\data\lib\site-packages\streamlit\type_util.py”, line 22, in
import pyarrow as pa
File "C:\Users\IyerA3.conda\envs\data\lib\site-packages\pyarrow_init
.py", line 63, in
import pyarrow.lib as _lib
ImportError: DLL load failed while importing lib: The specified procedure could not be found.

========================================================

Having looked up the forum I uninstalled streamlit locally and re-installed using the option --no-cache-dir and now have the latest version (1.5.0) installed.

However I get the same error again.
I then tried a simple 2 line script to narrow the problem down

import streamlit as st

st.title('Hello!')

And yet the same issue occurs.

The pyarrow version I have on my machine is 3.0.0

Please can someone advice on how to overcome this issue?

Regards
Ananth

Hey Ananth
Can you retry after upgrading pyarrow library once?

Steps to do that -
pip install --upgrade pyarrow

Thanks
Kanak

1 Like

Hi Kanak,

I tried this just now and it fixed the issue.

Thanks
Ananth

1 Like

I ran into the same pyarrow issue as Ananth, while following the snowflake tutorial Connect Streamlit to Snowflake - Streamlit Docs

Anaconda check pyarrow version 7.0.0, streamlit 1.11.0, snowflake-connector-python 2.7.8

Did both pip install --upgrade pyarrow and streamlit to no avail.

Any clue as to what else to try?

Thanks in advance, Pat

Traceback (most recent call last):
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\runpy.py", line 194, in _run_module_as_main  
    return _run_code(code, main_globals, None,
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\Scripts\streamlit.exe\__main__.py", line 4, in <module>
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\__init__.py", line 70, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\delta_generator.py", 
line 36, in <module>
    from streamlit import cursor, caching
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\cursor.py", line 18, 
in <module>
    from streamlit.scriptrunner import get_script_run_ctx
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\scriptrunner\__init__.py", line 16, in <module>
    from .script_runner import (
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 35, in <module>
    from streamlit.state import (
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\state\__init__.py", line 16, in <module>
    from .safe_session_state import SafeSessionState as SafeSessionState
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\state\safe_session_state.py", line 21, in <module>
    from .session_state import (
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\state\session_state.py", line 45, in <module>
    from streamlit.type_util import ValueFieldName
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\streamlit\type_util.py", line 43, in <module>
    import pyarrow as pa
  File "C:\Users\Ryzen\.conda\envs\python38_snowflake\lib\site-packages\pyarrow\__init__.py", line 65, 
in <module>
    import pyarrow.lib as _lib
ImportError: DLL load failed while importing lib: The specified procedure could not be found.

Hey @pat

Sorry for replying so late. I am not sure if you are still facing this issue but if you are, can you please confirm if you selected the “python38_snowflake” environment while upgrading the pyarrow function?

Thanks
Kanak

Thx Kanak.

Yes, selected the python38

No, I didn’t pursue the Snowflake tutorial.

Nor use pyarraow.

Pat