amathislab / myochallenge

[NeurIPS 2022, Neuron 2024] Winning code for the Baoding ball MyoChallenge at NeurIPS 2022
https://proceedings.mlr.press/v220/caggiano22a.html
MIT License
12 stars 1 forks source link

Issue running src/main_baoding.py #8

Closed Hardwarize closed 1 week ago

Hardwarize commented 1 month ago

Trying to run src/main_baoding.py I find the following errror: AttributeError: type object 'EnvironmentFactory' has no attribute 'register'

I have installed the packages from requirements.txt, although I had to remove the ones that were causing errors from the file, specifically those that have a path in the requirements.txt file, such as 'asttokens' or 'backcall', as they generate errors during the installation.

Thanks

Hardwarize commented 1 month ago

I've managed to fix the isuue replacing env = EnvironmentFactory.register(ENV_NAME, **env_config)by env = EnvironmentFactory.create(ENV_NAME, **env_config) . Now there is a new error that says AttributeError: 'CustomBaodingP2Env' object has no attribute 'render_mode'

albertochiappa commented 4 weeks ago

Hi, sorry for the late reply. Indeed the code had a naming problem for the creation method, it should be fixed with the latest commit.

Regarding the AttributeError, can you please verify that

pip list | grep MyoSuite

returns version 1.2.3

and

pip list | grep gym

returns version 0.13.0?

With these versions there should be no 'render_mode' problem.