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

Un problem with step "Run with pre-built image" #41

Closed xiyuewu closed 6 months ago

xiyuewu commented 10 months ago

When I tried step "Run with pre-built image" as Link https://github.com/tencent-ailab/hok_env/blob/master/docs/run_with_prebuilt_image.md showed,

  1. Run the test_env.py
    cd /hok_env/hok/hok1v1/unit_test
    python3 test_env.py

    It can connect to gamecore but nothing happened by ai-server The log is o

I have tried using my docker container ip but it didn't work If i need to change the "AI_SERVER_ADDR" ?

hongyangqin commented 10 months ago

Do you run the code suing WSL2? Ensure that you are able to access the server running within WSL2. Please try to run a test server within WSL2(for example python3 -m http.server) and and access it via the browser outside.

See also: https://github.com/tencent-ailab/hok_env/issues/11 https://github.com/tencent-ailab/hok_env/issues/15