Panda issue in myapp

Hi,

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:

https://1912-04-14.streamlit.app

SW versions
pandas==1.5.3
plotly==5.22.0
streamlit==1.36.0
streamlit-shadcn-ui==0.1.18

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).

Traceback:

File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script
    exec(code, module.__dict__)File "/mount/src/titanic/titanic.py", line 1, in <module>
    import pandas as pdFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/__init__.py", 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/__init__.py", line 18, in <module>
    from pandas.compat.numpy import (File "/home/adminuser/venv/lib/python3.11/site-packages/pandas/compat/numpy/__init__.py", line 4, in <module>
    from pandas.util.version import VersionFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/util/__init__.py", line 2, in <module>
    from pandas.util._decorators import (  # noqa:F401File "/home/adminuser/venv/lib/python3.11/site-packages/pandas/util/_decorators.py", line 14, in <module>
    from pandas._libs.properties import cache_readonlyFile "/home/adminuser/venv/lib/python3.11/site-packages/pandas/_libs/__init__.py", 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.