Skip to content

AttributeError: 'dict' object has no attribute 'env_specs' #50

@SachinLearns

Description

@SachinLearns

I have setup the environment with requirements.txt.
Was running the given code:
python main.py --env-name InvertedDoublePendulum-v2 --algo vime-ppo --use-gae --log-interval 1 --num-steps 2048 --num-processes 1 --lr 3e-4 --entropy-coef 0 --value-loss-coef 0.5 --ppo-epoch 10 --num-mini-batch 32 --gamma 0.99 --num-env-steps 1000000 --use-linear-lr-decay --no-cuda --log-dir /tmp/doublependulum/vimeppo/vimeppo-0 --seed 0 --use-proper-time-limits --eta 0.01

Error:

Traceback (most recent call last):
File "/vime-pytorch/main.py", line 11, in
from misc import utils
File "/vime-pytorch/misc/utils.py", line 6, in
from envs.envs_util import VecNormalize
File "/vime-pytorch/envs/envs_util.py", line 27, in
import pybullet_envs
File "/anaconda3/envs/vime-py/lib/python3.10/site-packages/pybullet_envs/init.py", line 14, in
register(
File "/anaconda3/envs/vime-py/lib/python3.10/site-packages/pybullet_envs/init.py", line 6, in register
if id in registry.env_specs:
AttributeError: 'dict' object has no attribute 'env_specs'

Any suggestions on how to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions