After installing and launcing the server I get this error:
Binding successful
Creating analytics process...
python3 bin/server
/mnt/d/Projects/hastic-server/analytics
Server is running on :8000
starting data puller with [] analytic units
data puller started
Traceback (most recent call last):
File "bin/server", line 16, in <module>
from analytic_unit_manager import AnalyticUnitManager
File "bin/../analytics/analytic_unit_manager.py", line 8, in <module>
import detectors
File "bin/../analytics/detectors/__init__.py", line 1, in <module>
from detectors.detector import Detector
File "bin/../analytics/detectors/detector.py", line 1, in <module>
from models import ModelCache
File "bin/../analytics/models/__init__.py", line 1, in <module>
from models.model import Model, ModelCache
File "bin/../analytics/models/model.py", line 4, in <module>
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
Can`t run analytics process: Traceback (most recent call last):
File "bin/server", line 16, in <module>
from analytic_unit_manager import AnalyticUnitManager
File "bin/../analytics/analytic_unit_manager.py", line 8, in <module>
import detectors
File "bin/../analytics/detectors/__init__.py", line 1, in <module>
from detectors.detector import Detector
File "bin/../analytics/detectors/detector.py", line 1, in <module>
from models import ModelCache
File "bin/../analytics/models/__init__.py", line 1, in <module>
from models.model import Model, ModelCache
File "bin/../analytics/models/model.py", line 4, in <module>
from attrdict import AttrDict
ModuleNotFoundError: No module named 'attrdict'
Also on panel it says Analytics not ready when creating any analytic unit.
To fix this we need to install python dependencies in hastic-server/analytics directory:
pip install -r requirements.txt --user
(Note the --user flag. It is nessesary for requirements to install correctly)
After installing and launcing the server I get this error:
Also on panel it says
Analytics not ready
when creating any analytic unit.