Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'gymnasium.vector.utils.spaces #4

Open
lidaken opened this issue Dec 31, 2024 · 3 comments
Open

No module named 'gymnasium.vector.utils.spaces #4

lidaken opened this issue Dec 31, 2024 · 3 comments

Comments

@lidaken
Copy link

lidaken commented Dec 31, 2024

Hello, when I complete the installation step by step, and I try to run the " python scripts/train.py --config-name dummy +experiments/obstacle_avoidance=train_prodmp_transformer". But I got error, and I can't find the solution. Can you give the gymnasium's version or solve this error? Thanks a lot.
Traceback (most recent call last): File "/home/lxc/movement-primitive-diffusion/scripts/train.py", line 14, in <module> from movement_primitive_diffusion.utils.setup_helper import setup_train, setup_wandb_metrics, get_group_from_override File "/home/lxc/movement-primitive-diffusion/movement_primitive_diffusion/utils/setup_helper.py", line 17, in <module> from movement_primitive_diffusion.workspaces.base_vector_workspace import BaseVectorWorkspace File "/home/lxc/movement-primitive-diffusion/movement_primitive_diffusion/workspaces/base_vector_workspace.py", line 16, in <module> from movement_primitive_diffusion.utils.gym_utils.async_vector_env import AsyncVectorEnv File "/home/lxc/movement-primitive-diffusion/movement_primitive_diffusion/utils/gym_utils/async_vector_env.py", line 37, in <module> from movement_primitive_diffusion.utils.gym_utils.vector_env import VectorEnv File "/home/lxc/movement-primitive-diffusion/movement_primitive_diffusion/utils/gym_utils/vector_env.py", line 11, in <module> from gymnasium.vector.utils.spaces import batch_space ModuleNotFoundError: No module named 'gymnasium.vector.utils.spaces'

@ScheiklP
Copy link
Owner

Hi @lidaken ,
Thanks for raising the issue!

I have updated the correct import path in this commit e378d87 .
Could you update your local repo and try again?

Best,
Paul

@lidaken
Copy link
Author

lidaken commented Jan 2, 2025

Hi @lidaken , Thanks for raising the issue!

I have updated the correct import path in this commit e378d87 . Could you update your local repo and try again?

Best, Paul

Hi Paul, Thanks for your help!
I update the local repo and try again, and the problem is solved. But a new error appear
`File "/home/lxc/movement-primitive-diffusion/movement_primitive_diffusion/utils/video.py", line 4, in
from moviepy.video.fx.resize import resize
ModuleNotFoundError: No module named 'moviepy.video.fx.resize'
I'm already install the moviepy and I find the function in moviepy documentation, but why this error appear
image
Thanks a lot, daken

@ScheiklP
Copy link
Owner

ScheiklP commented Jan 2, 2025

Hi @lidaken
did you checkout the most recent commit on main? In addition to the gymanisum fix, I pushed the fix for moviepy and another missing dependency.

Best,
Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants