Lux-AI-Challenge / Lux-Design-S2

Repository for the Lux AI Challenge, season 2 (NeurIPS 23). Hosted on @kaggle
https://www.kaggle.com/competitions/lux-ai-season-2-neurips-stage-2
Apache License 2.0
405 stars 145 forks source link

AttributeError: 'BotProcess' object has no attribute '_agent_process' #214

Closed danioyuan closed 1 year ago

danioyuan commented 1 year ago

Just installed luxai_s2 following instruction and try to run: luxai-s2 Lux-Design-S2/kits/python/main.py Lux-Design-S2/kits/python/main.py -v 2 -o replay.json

got this error: Python/3.9/lib/python/site-packages/luxai_runner/process.py", line 106, in write self._agent_process.stdin.write(msg.encode()) AttributeError: 'BotProcess' object has no attribute '_agent_process'

danioyuan commented 1 year ago

This is because I only have python3 but not python2. Resolved by running: sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python