Hello everyone!
I would like to ask you about an issue I have recently discovered in my Streamlit-shared app. I uploaded the app in May '21 and has been serviceable ever since to the best of my knowledge. It once faced an issue in October '21 that was quickly solved (thanks again for that!):
Error after long time using the app [AttributeError: <module ‘numba.core.serialize’]
The error was about fixing the version of the numba
library. I guess an error of similar nature has been raised now (ultimately linked to its numpy
dependency).
The app link:
https://malonsol-tfm-kschool-frontendflight-delay-predictor-f1hy07.streamlit.app/
When I look at the log, the following is prompted:
> 2023-05-26 17:20:12.899 Uncaught app exception
>
> Traceback (most recent call last):
>
> File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/script_runner.py", line 337, in _run_script
>
> exec(code, module.__dict__)
>
> File "/app/tfm_kschool/frontend/flight_delay_predictor.py", line 64, in <module>
>
> import shap
>
> File "/home/appuser/venv/lib/python3.8/site-packages/shap/__init__.py", line 12, in <module>
>
> from ._explanation import Explanation, Cohorts
>
> File "/home/appuser/venv/lib/python3.8/site-packages/shap/_explanation.py", line 12, in <module>
>
> from .utils._general import OpChain
>
> File "/home/appuser/venv/lib/python3.8/site-packages/shap/utils/__init__.py", line 1, in <module>
>
> from ._clustering import hclust_ordering, partition_tree, partition_tree_shuffle, delta_minimization_order, hclust
>
> File "/home/appuser/venv/lib/python3.8/site-packages/shap/utils/_clustering.py", line 4, in <module>
>
> from numba import jit
>
> File "/home/appuser/venv/lib/python3.8/site-packages/numba/__init__.py", line 16, in <module>
>
> from numba.core import types, errors
>
> File "/home/appuser/venv/lib/python3.8/site-packages/numba/core/types/__init__.py", line 108, in <module>
>
> long_ = _make_signed(np.long)
>
> File "/home/appuser/venv/lib/python3.8/site-packages/numpy/__init__.py", line 320, in __getattr__
>
> raise AttributeError("module {!r} has no attribute "
>
> AttributeError: module 'numpy' has no attribute 'long'
Please, could anybody shed some light to the topic? It would be very much appreciated!
Best wishes,
Mario