Panda issue in myapp


I am new to streamlit, so it is probably some error between my keyboard and monitor, but here is my demo app which is not working:

SW versions

Link to public repository: GitHub - GuruVlk/titanic

ValueError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).


File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/", line 589, in _run_script
    exec(code, module.__dict__)File "/mount/src/titanic/", line 1, in <module>
    import pandas as pdFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/", line 22, in <module>
    from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.11/site-packages/pandas/compat/", line 18, in <module>
    from pandas.compat.numpy import (File "/home/adminuser/venv/lib/python3.11/site-packages/pandas/compat/numpy/", line 4, in <module>
    from pandas.util.version import VersionFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/util/", line 2, in <module>
    from pandas.util._decorators import (  # noqa:F401File "/home/adminuser/venv/lib/python3.11/site-packages/pandas/util/", line 14, in <module>
    from import cache_readonlyFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/_libs/", line 13, in <module>
    from pandas._libs.interval import IntervalFile "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval

Have you tried installing the packages in a virtual environment to isolate any conflicts from system modules?

Hi Tony,
It works on my PC with SW versions i put to the request file.
To what VM environment you have in mind?

Solved :slight_smile: , the reason was Missing Numpy library in my requirement document :slight_smile:

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