Description:
(MineCLIP2) bash-3.2$ python3 MineCLIP/main/mineclip/load_ckpt.py variant=attn ckpt.path=/path/to/attn.pth
Traceback (most recent call last):
File "/path/to/MineCLIP2/MineCLIP/main/mineclip/load_ckpt.py", line 5, in <module>
from mineclip import MineCLIP
File "/path/to/MineCLIP2/MineCLIP/mineclip/__init__.py", line 2, in <module>
from .dense_reward import (
File "/path/to/MineCLIP2/MineCLIP/mineclip/dense_reward/__init__.py", line 1, in <module>
from .animal_zoo import AnimalZooDenseRewardWrapper, HuntCowDenseRewardEnv
File "/path/to/MineCLIP2/MineCLIP/mineclip/dense_reward/animal_zoo/__init__.py", line 2, in <module>
from .hunt_cow import HuntCowDenseRewardEnv
File "/path/to/MineCLIP2/MineCLIP/mineclip/dense_reward/animal_zoo/hunt_cow.py", line 4, in <module>
import minedojo
File "/path/to/.local/share/virtualenvs/MineCLIP2-WRt4Br1D/lib/python3.9/site-packages/minedojo/__init__.py", line 1, in <module>
from .tasks import make
File "/path/to/.local/share/virtualenvs/MineCLIP2-WRt4Br1D/lib/python3.9/site-packages/minedojo/tasks/__init__.py", line 83, in <module>
_ALL_TASKS_SPECS_UNFILLED = OmegaConf.load(_resource_file_path("tasks_specs.yaml"))
File "/path/to/.local/share/virtualenvs/MineCLIP2-WRt4Br1D/lib/python3.9/site-packages/minedojo/tasks/__init__.py", line 29, in _resource_file_path
with importlib_resources.path("minedojo.tasks.description_files", fname) as p:
AttributeError: module 'importlib_resources' has no attribute 'path'
Issue Overview:
The script load_ckpt.py is encountering an AttributeError due to the absence of the 'path' attribute in the 'importlib_resources' module. The error occurs in the minedojo module when attempting to load a resource file. This issue is hindering the execution of the script and needs to be addressed.
Steps to Reproduce:
- Run the command:
python3 MineCLIP/main/mineclip/load_ckpt.py variant=attn ckpt.path=/path/to/attn.pth
- Observe the traceback and the AttributeError related to 'importlib_resources.path'.
Expected Behavior:
The script should execute without encountering the mentioned AttributeError, and the resource file should be loaded successfully.
Description:
Issue Overview:
The script
load_ckpt.pyis encountering anAttributeErrordue to the absence of the 'path' attribute in the 'importlib_resources' module. The error occurs in theminedojomodule when attempting to load a resource file. This issue is hindering the execution of the script and needs to be addressed.Steps to Reproduce:
python3 MineCLIP/main/mineclip/load_ckpt.py variant=attn ckpt.path=/path/to/attn.pthExpected Behavior:
The script should execute without encountering the mentioned AttributeError, and the resource file should be loaded successfully.