glmcdona / LuxPythonEnvGym

Matching python environment code for Lux AI 2021 Kaggle competition, and a gym interface for RL models.
MIT License
73 stars 38 forks source link

Revert "use the js rng for map gen" #66

Closed glmcdona closed 2 years ago

glmcdona commented 2 years ago

Reverts glmcdona/LuxPythonEnvGym#65.

Reverting this for now. Looks like it may have created a couple errors.

glmcdona@CPU2:~/LuxPythonEnvGym$ python3.7 ./examples/train.py --id=0 --learning_rate=0.001 --step_count=10000000 --gamma=0.999 --batch_size=4096
Traceback (most recent call last):
  File "./examples/train.py", line 14, in <module>
    from luxai2021.env.lux_env import LuxEnvironment
  File "/usr/local/lib/python3.7/dist-packages/luxai2021-0.1.0-py3.7.egg/luxai2021/env/lux_env.py", line 6, in <module>
    from ..game.game import Game
  File "/usr/local/lib/python3.7/dist-packages/luxai2021-0.1.0-py3.7.egg/luxai2021/game/game.py", line 10, in <module>
    from .game_map import GameMap
  File "/usr/local/lib/python3.7/dist-packages/luxai2021-0.1.0-py3.7.egg/luxai2021/game/game_map.py", line 4, in <module>
    from luxai2021.env.rng.rng import get_n_values
ModuleNotFoundError: No module named 'luxai2021.env.rng'
StoneT2000 commented 2 years ago

oh wait how do you install the lux ai env? I ran pip install -e . from the root directory so that luxai2021 is recognized as a package (although locally developed)

glmcdona commented 2 years ago

@StoneT2000. I had just done python setup.py install instead of pip install. Maybe that's the issue. I'm out with family right now, and will have a closer look at it tonight when I'm back on. Just wanted to be sure the repo is not in a broken state since most kaggle notebooks pull the main branch each run.

StoneT2000 commented 2 years ago

ah okay I think if this was pushed to the python package system maybe it's okay, but this works too