Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

'NoneType' object has no attribute 'copy' #1922

Open
@sjtuzhaoxh

Description

@sjtuzhaoxh

C:\Users\zhaoxianghui\AppData\Local\Programs\Python\Python38\python.exe D:\project\python\tensor2tensor-master\tensor2tensor\bin\t2t-trainer --registry_help
Traceback (most recent call last):
File "D:\project\python\tensor2tensor-master\tensor2tensor\bin\t2t-trainer", line 23, in
from tensor2tensor.bin import t2t_trainer
File "D:\project\python\tensor2tensor-master\tensor2tensor\bin\t2t_trainer.py", line 24, in
from tensor2tensor import models # pylint: disable=unused-import
File "D:\project\python\tensor2tensor-master\tensor2tensor\models_init_.py", line 51, in
from tensor2tensor.models.research import rl
File "D:\project\python\tensor2tensor-master\tensor2tensor\models\research\rl.py", line 27, in
from tensor2tensor.envs import tic_tac_toe_env
File "D:\project\python\tensor2tensor-master\tensor2tensor\envs_init_.py", line 23, in
from tensor2tensor.envs import tic_tac_toe_env
File "D:\project\python\tensor2tensor-master\tensor2tensor\envs\tic_tac_toe_env.py", line 244, in
register()
File "D:\project\python\tensor2tensor-master\tensor2tensor\envs\tic_tac_toe_env.py", line 239, in register
unused_tictactoe_id, unused_tictactoe_env = gym_utils.register_gym_env(
File "D:\project\python\tensor2tensor-master\tensor2tensor\rl\gym_utils.py", line 360, in register_gym_env
return env_name, gym.make(env_name)
File "C:\Users\zhaoxianghui\AppData\Local\Programs\Python\Python38\lib\site-packages\gym\envs\registration.py", line 572, in make
kwargs = spec.kwargs.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions