biggus-developerus / growtopia.py

A simple asynchronous API for Growtopia, capable of creating servers, clients, and more!
MIT License
28 stars 4 forks source link

AttributeError when try to create new client #11

Closed Furkan125 closed 1 year ago

Furkan125 commented 1 year ago

Hello. I was trying to create a client and I am getting this error:

Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> client = growtopia.Client() File "C:\Users\Furkan\AppData\Local\Programs\Python\Python311\Lib\site-packages\growtopia\client.py", line 27, in __init__ self.checksum = enet.ENET_CRC32 AttributeError: module 'enet' has no attribute 'ENET_CRC32'

biggus-developerus commented 1 year ago

How did you install growtopia.py? This is most likely due to an outdated version of PyENet, which growtopia.py does not use. growtopia.py uses my forked version of PyENet.

Furkan125 commented 1 year ago

so I shouldn't download pyenet with pip right? btw i installed growtopia.py via pip

biggus-developerus commented 1 year ago

Yes, that's the issue. Pip does not support direct dependencies, as said in the readme.md file. You'd have to install PyENet separately.

Furkan125 commented 1 year ago

Ok, I fixed the problem. Thanks.