Missing attributes when calling `ml.build`
I was just trying to test the harvester software for Smart Forestry but I get errors in ml.build
due to missing attributes.
With pip install git+https://git.rwth-aachen.de/kwh40/fml40-reference-implementation.git@add_smart_forestry_features
:
$ python -m main_harvester
2024-02-14 14:17:22,550 - CRITICAL - [ForestML 4.0] HSMHarvester: Feature: fml40::ProvidesProductionData undefined in ForestML 4.0
Traceback (most recent call last):
File "/home/lukas/mambaforge/envs/fml_broken_branch/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/lukas/mambaforge/envs/fml_broken_branch/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/lukas/Desktop/repos/hsm_showcase/main_harvester.py", line 15, in <module>
hsm_harvester = HSMHarvester()
File "/home/lukas/Desktop/repos/hsm_showcase/DTs/hsm_harvester.py", line 130, in __init__
entry = build(harvester)
File "/home/lukas/mambaforge/envs/fml_broken_branch/lib/python3.8/site-packages/ml/dt_factory.py", line 499, in build
feature_ins.parent = entry_ref
AttributeError: 'NoneType' object has no attribute 'parent'
2024-02-14 14:17:22,567 - INFO - [ForestML 4.0] HSMHarvester: Close the thing
Exception ignored in: <function Thing.__del__ at 0x7fac381681f0>
Traceback (most recent call last):
File "/home/lukas/mambaforge/envs/fml_broken_branch/lib/python3.8/site-packages/ml/thing.py", line 39, in __del__
self.close()
File "/home/lukas/mambaforge/envs/fml_broken_branch/lib/python3.8/site-packages/ml/thing.py", line 77, in close
self.callbacks.process(prefix=self._ON_THING_DELETE_OK)
AttributeError: 'HSMHarvester' object has no attribute 'callbacks'
And with version 1.0.0 from November from pip:
python -m main_harvester
2024-02-14 14:25:53,587 - CRITICAL - [ForestML 4.0] HSMHarvester: Feature: ml40::EventList undefined in ForestML 4.0
Traceback (most recent call last):
File "/home/lukas/mambaforge/envs/fml_broken/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/lukas/mambaforge/envs/fml_broken/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/lukas/Desktop/repos/hsm_showcase/main_harvester.py", line 15, in <module>
hsm_harvester = HSMHarvester()
File "/home/lukas/Desktop/repos/hsm_showcase/DTs/hsm_harvester.py", line 130, in __init__
entry = build(harvester)
File "/home/lukas/mambaforge/envs/fml_broken/lib/python3.8/site-packages/ml/dt_factory.py", line 464, in build
feature_ins.parent = entry_ref
AttributeError: 'NoneType' object has no attribute 'parent'
2024-02-14 14:25:53,605 - INFO - [ForestML 4.0] HSMHarvester: Close the thing
Exception ignored in: <function Thing.__del__ at 0x7fe61f476550>
Traceback (most recent call last):
File "/home/lukas/mambaforge/envs/fml_broken/lib/python3.8/site-packages/ml/thing.py", line 39, in __del__
self.close()
File "/home/lukas/mambaforge/envs/fml_broken/lib/python3.8/site-packages/ml/thing.py", line 77, in close
self.callbacks.process(prefix=self._ON_THING_DELETE_OK)
AttributeError: 'HSMHarvester' object has no attribute 'callbacks'