tencent-ailab / hok_env

Honor of Kings AI Open Environment of Tencent
https://aiarena.tencent.com/aiarena/en/open-gamecore
Apache License 2.0
627 stars 72 forks source link

ImportError: generic_type: type "Interface" is already registered! #36

Closed hyukhea closed 1 year ago

hyukhea commented 1 year ago

At first, I encountered this error.

Traceback (most recent call last):
  File "hok/hok1v1/unit_test/test_env.py", line 5, in <module>
    from hok.hok1v1 import HoK1v1
ModuleNotFoundError: No module named 'hok.hok1v1'

After I modified the code, and added the path to the system path. A new error has occurred.

Traceback (most recent call last):
  File "test_env.py", line 81, in <module>
    import hok.hok1v1.lib.interface as interface
ImportError: generic_type: type "Interface" is already registered!
free(): invalid pointer
Aborted

I run the test_env.py inside wsl2. Is it right?

Does anyone know how to fix this problem? Thanks.