pmariglia / showdown

A Pokemon Showdown Battle Bot written in Python
GNU General Public License v3.0
258 stars 176 forks source link

problem with nash-equilibrium mode #54

Closed ghost closed 3 years ago

ghost commented 3 years ago

under showdown in the battlebots folder, nash-equilibrium is not working for me. Apparently the problem is in main.py(in the nash-equilibrium folder) caused by the line "from nashpy import Game" in line 8 but nashpy doesn't exist. Thankyou.

pmariglia commented 3 years ago

This could be a couple things:

Nashpy is a requirement defined in the requirements.txt file. Are you installing the requirements properly?

Also, are you running locally, or with Docker? You should only run that battle mode when using Docker.

From the README:

The Nash Equilibrium is calculated using command-line tools provided by the Gambit project.

This decision method should only be used when running with Docker and will fail otherwise.
ghost commented 3 years ago

@pmariglia hey! it worked when i try to install nashpy by itself instead of doing "python -m pip install -r requirements.txt". i don't know why it didn't install when i originally tried to run the install command. Thankyou