RLBot / RLBotGUI

33 stars 25 forks source link

Fix greenlet issue for the alternate installer #218

Closed SavageSnowgoose closed 12 months ago

SavageSnowgoose commented 1 year ago

This fix is the same as the one for the nsi installer but this time for the alternate installer which has its own list of pip commands.

There is an issue with using greenlet v2+ if you do not have the c++ redistributable installed. it causes an error on trying to start rlbotgui that ends with:

from ._greenlet import _C_API # pylint:disable=no-name-in-module ImportError: DLL load failed: The specified module could not be found.

The latest gevent pins greenlet to 2+, and rlbotgui has in its requirements to just get any gevent version. So this problem likely has affected some people since the first gevent v22 was pushed to pypi on Oct 8 2022. The versions of gevent prior to 22 pin greenlet to be less than 2 - for example in v21.12 it is (<2.0,>=1.1.3)

This fix will pin gevent to be less than v22.

To replicate the issue and test the fix just try to install rlbotgui on any fresh VM or Windows sandbox mode.