Running the docker image creation with the following from the README.md, results in a trace due to missing dm-tree install
docker build -f ./docker/Dockerfile . --target dev --tag=avalon/dev
...
Step 14/18 : RUN python -m avalon.install_godot_binary
---> Running in 972ac7f2e8d9
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/projects/avalon/avalon/install_godot_binary.py", line 16, in <module>
from avalon.datagen.godot_env.interactive_godot_process import GODOT_BINARY_PATH
File "/opt/projects/avalon/avalon/datagen/godot_env/interactive_godot_process.py", line 32, in <module>
from avalon.datagen.world_creation.world_generator import GenerateAvalonWorldParams
File "/opt/projects/avalon/avalon/datagen/world_creation/world_generator.py", line 30, in <module>
from avalon.agent.common.util import setup_new_process
File "/opt/projects/avalon/avalon/agent/common/util.py", line 20, in <module>
from tree import map_structure
ModuleNotFoundError: No module named 'tree'
Inserting pip install dm-tree corrects the issue:
COPY . /opt/projects/avalon
RUN pip install -e /opt/projects/avalon
+RUN pip install dm-tree
RUN python -m avalon.install_godot_binary
Running the docker image creation with the following from the README.md, results in a trace due to missing
dm-tree
installInserting
pip install dm-tree
corrects the issue: