Skip to content

Troubleshooting

Mohamed E. Masoud edited this page Jan 18, 2024 · 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

This packages included with the yml file



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

Create Conda Env: conda env create -f histojs.yml

To create a standalone environment named histojs with Python 3.x and all required package versions, run:

conda create -n histojs python=3.7 --file requirements.txt

Clone this wiki locally