tencent-ailab / hok_env

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

No module named 'hok.lib.interface' #31

Closed Pika-Lee closed 1 year ago

Pika-Lee commented 1 year ago

Hello, I followed the README.md, and was stuck at the following command: python3 test_env.py. Here's the log:

xinli@XinLi:~/hok_env/hok_env/hok_env/hok/unit_test$ sudo python3 test_env.py
Traceback (most recent call last):
  File "/home/xinli/hok_env/hok_env/hok_env/hok/unit_test/test_env.py", line 5, in <module>
    from hok import HoK1v1
  File "/usr/local/lib/python3.10/dist-packages/hok/__init__.py", line 11, in <module>
    from hok.env1v1 import HoK1v1
  File "/usr/local/lib/python3.10/dist-packages/hok/env1v1.py", line 22, in <module>
    import hok.lib.interface as interface
ModuleNotFoundError: No module named 'hok.lib.interface'

It appeared an error message saying that No module named 'hok.lib.interface'. I checked the ~\.local\lib\python3.10\site-packages\hok\lib folder, it existed four files:

interface.cpython-36m-x86_64-linux-gnu.so
interface.cpython-37m-x86_64-linux-gnu.so
interface.cpython-38-x86_64-linux-gnu.so
interface.cpython-39-x86_64-linux-gnu.so

Does anyone know how to fix this problem? Thanks.

Aki9954 commented 1 year ago

I also encountered the same problem as you with this command. I searched hok_env-master and hok_env_gamecore but couldn’t find this module. I hope the author can help solve this problem, thank!

hongyangqin commented 1 year ago

Python10 is not supported now. Please use try to use python36~python39.

XiaoNaoWeiSuo commented 1 year ago

i change to 3.6,but its not work also

huahai2022 commented 11 months ago

have you fixed it?