Skip to content

Troubleshooting

Mohamed E. Masoud edited this page Dec 31, 2023 · 13 revisions

Analysis Phase

Loading Boundaries

getApiKey:

Error: Status 401 Unauthorized

Solution: Login to DSA server on the server first and then in HistoJS


Create Boundaries From Dapi:

MemoryError: Unable to allocate 1.01 GiB for an array with shape (16125, 16843) and data type float32.

Solution: Free memory, close any memory hungry applications (e.g., online streaming media)


Flask

OSError: [Errno 98] Address already in use

Solution: netstat -tulpn // to find which PID to kill if possible, then $ kill -9 pid



Flask 1.1.2

ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.8/site-packages/jinja2/init.py)

Solution:

pip uninstall Jinja2

pip install Jinja2==3.0.3

pip uninstall itsdangerous

pip install itsdangerous==2.0.1

pip uninstall werkzeug

pip install werkzeug==2.0.2



Save feature data locally

Connection Error: Cross-Origin Request Blocked, 414 URI Too Long

Solution: install proper Flask version (e.g., 1.1.2)



Miscellaneous:

Get Python Packages: pip freeze > requirements.txt

Get outdated packages: pip list --outdated

Remove Conda Env: conda remove -n histojs --all

Clone this wiki locally