I keep getting the following error. I’ve tried rebooting, and deleting the app and posting it again. I never get this error when I’m running the app locally. Only when I publish it to streamlit:
[17:03:07] 📦 Processed dependencies!
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
/app/und_adp/Und_Visual_ADP_App.py:127: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
plt.scatter(adp_risers_fallers['ADP Change'], adp_risers_fallers.index, s=1500, alpha=.6, color=adp_risers_fallers.colors)
2023-05-22 21:19:06.829 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/app/und_adp/Und_Visual_ADP_App.py", line 127, in <module>
plt.scatter(adp_risers_fallers['ADP Change'], adp_risers_fallers.index, s=1500, alpha=.6, color=adp_risers_fallers.colors)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2890, in scatter
__ret = gca().scatter(
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2368, in gca
return gcf().gca(**kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 2065, in gca
return self.add_subplot(1, 1, 1, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 1404, in add_subplot
return self._add_axes_internal(key, ax)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 1408, in _add_axes_internal
self._axstack.add(key, ax)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 125, in add
super().remove((key, a_existing))
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 643, in remove
raise ValueError('Given element not contained in the stack')
ValueError: Given element not contained in the stack
/app/und_adp/Und_Visual_ADP_App.py:127: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
plt.scatter(adp_risers_fallers['ADP Change'], adp_risers_fallers.index, s=1500, alpha=.6, color=adp_risers_fallers.colors)
2023-05-22 21:43:03.253 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/app/und_adp/Und_Visual_ADP_App.py", line 127, in <module>
plt.scatter(adp_risers_fallers['ADP Change'], adp_risers_fallers.index, s=1500, alpha=.6, color=adp_risers_fallers.colors)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2896, in scatter
sci(__ret)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 3102, in sci
return gca()._sci(im)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2368, in gca
return gcf().gca(**kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 2065, in gca
return self.add_subplot(1, 1, 1, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 1404, in add_subplot
return self._add_axes_internal(key, ax)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 1408, in _add_axes_internal
self._axstack.add(key, ax)
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/figure.py", line 125, in add
super().remove((key, a_existing))
File "/home/appuser/venv/lib/python3.9/site-packages/matplotlib/cbook/__init__.py", line 643, in remove
raise ValueError('Given element not contained in the stack')
ValueError: Given element not contained in the stack
[22:20:58] ❗️ Streamlit server consistently failed status checks
[22:20:58] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.```
Links:
Repo: GitHub - nzylakffa/und_adp
App: https://nzylakffa-und-adp-und-visual-adp-app-nzmny4.streamlit.app/
Requirements File:
lxml==4.9.1
matplotlib==3.3.3