Closed Novark closed 3 years ago
I decided to dig into this a little bit, and discovered that the problem seems to be that this repo hasn't been kept up-to-date with the ENet library. There have been several changes in the past couple of years, one of which has been renaming the needsDispatch
struct member to flags
(presumably for future extensibility with ENetPeer's).
To fix this issue, I had to simply modify the enet.pyx file and change the following lines:
line 105: int needsDispatch
...
line 764: property needsDispatch:
line 765: def __get__(self):
line 766: if self.check_valid():
line 767: return self._enet_peer.needsDispatch
to instead read:
line 105: enet_uint16 flags
...
line 764: property flags:
line 765: def __get__(self):
line 766: if self.check_valid():
line 767: return self._enet_peer.flags
I've made a PR, but I'm leaving this note here for completeness and context.
I've tried building on both Windows 10 and a fresh Linux (Ubuntu 20.04.2.0 x64) install, and got the same error on both platforms.
Have I missed something here? Any help would be appreciated. Thanks in advance.
Linux build output follows: