Error when deploying app - pyarrow.lib dependency

Here is the complete traceback and link to my repo

Traceback (most recent call last):

  File "/home/appuser/venv/bin/streamlit", line 5, in <module>

    from streamlit.web.cli import main

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/__init__.py", line 55, in <module>

    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/delta_generator.py", line 38, in <module>

    from streamlit import config, cursor, env_util, logger, runtime, type_util, util

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/cursor.py", line 18, in <module>

    from streamlit.runtime.scriptrunner import get_script_run_ctx

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/__init__.py", line 16, in <module>

    from streamlit.runtime.runtime import Runtime as Runtime

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/runtime.py", line 28, in <module>

    from streamlit.runtime.app_session import AppSession

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/app_session.py", line 36, in <module>

    from streamlit.runtime import caching, legacy_caching

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/caching/__init__.py", line 21, in <module>

    from streamlit.runtime.state.session_state import WidgetMetadata

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/state/__init__.py", line 16, in <module>

    from streamlit.runtime.state.safe_session_state import (

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/state/safe_session_state.py", line 20, in <module>

    from streamlit.runtime.state.session_state import (

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/runtime/state/session_state.py", line 44, in <module>

    from streamlit.type_util import ValueFieldName, is_array_value_field_name

  File "/home/appuser/.conda/lib/python3.7/site-packages/streamlit/type_util.py", line 35, in <module>

    import pyarrow as pa

  File "/home/appuser/.conda/lib/python3.7/site-packages/pyarrow/__init__.py", line 65, in <module>

    import pyarrow.lib as _lib

ModuleNotFoundError: No module named 'pyarrow.lib'

Hi there @raj26000, is the issue happening locally as well? Could you try following this process detailed here?

Hey @TylerS, was able to resolve it. Had to select the correct python version from advanced settings while deploying. Explains why it was working fine locally.

Thanks.

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