yuqingd/sim2real2sim_rad

metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Opened this issue · 0 comments

Tie-1 commented

hi @yuqingd ,thanks for your public work! When i run

CUDA_VISIBLE_DEVICES=0 python train.py --gpudevice 0 --id S3000 --outer_loop_version 3 --dr --train_sim_param_every 1 --prop_alpha --update_sim_param_from both --alpha 0.1 --mean_scale 1.75 --train_range_scale .5 --domain_name dmc_ball_in_cup --task_name catch --range_scale .5 --scale_large_and_small --dr_option simple_dr --save_tb --use_img --seed 1 --num_train_steps 1000000 --encoder_feature_dim 64 --prop_range_scale --prop_train_range_scale --separate_trunks --num_sim_param_updates 3 --save_video --eval_freq 2000 --num_eval_episodes 3 --save_model --save_buffer

some errors happend:

/home/yun/.conda/envs/curl/lib/python3.7/site-packages/torchvision/transforms/functional_pil.py:228: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
interpolation: int = Image.BILINEAR,
/home/yun/.conda/envs/curl/lib/python3.7/site-packages/torchvision/transforms/functional_pil.py:296: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
interpolation: int = Image.NEAREST,
/home/yun/.conda/envs/curl/lib/python3.7/site-packages/torchvision/transforms/functional_pil.py:329: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
interpolation: int = Image.BICUBIC,
ball_mass
0.11453749999999999
cup_r
0.39999999999999997
cup_g
0.2857142857142857
cup_b
0.525
ball_r
0.39999999999999997
ball_g
0.22857142857142856
ball_b
0.11428571428571428
ground_r
0.5714285714285714
ground_g
0.5714285714285714
ground_b
0.5714285714285714
Traceback (most recent call last):
File "train.py", line 1097, in
main()
File "train.py", line 614, in main
import env_wrapper
File "/home/yun/sim2real2sim_rad/env_wrapper.py", line 2, in
from environments.metaworld.envs.mujoco import env_dict as ed
File "/home/yun/sim2real2sim_rad/environments/metaworld/init.py", line 7, in
import metaworld.envs.mujoco.env_dict as _env_dict
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/init.py", line 7, in
import metaworld.envs.mujoco.env_dict as _env_dict
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/init.py", line 1, in
from metaworld.envs.mujoco.env_dict import (ALL_V2_ENVIRONMENTS_GOAL_HIDDEN,
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/mujoco/env_dict.py", line 6, in
from metaworld.envs.mujoco.sawyer_xyz.v1 import (
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/mujoco/sawyer_xyz/v1/init.py", line 1, in
from metaworld.envs.mujoco.sawyer_xyz.v1.sawyer_assembly_peg import SawyerNutAssemblyEnv
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/mujoco/sawyer_xyz/v1/sawyer_assembly_peg.py", line 5, in
from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/mujoco/sawyer_xyz/sawyer_xyz_env.py", line 11, in
from metaworld.envs.mujoco.mujoco_env import MujocoEnv, _assert_task_is_set
File "/home/yun/.conda/envs/curl/lib/python3.7/site-packages/metaworld/envs/mujoco/mujoco_env.py", line 31, in
class MujocoEnv(gym.Env, abc.ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

I couldn't find a solution to solve it. Can you help me?