PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

WindowsError: #2723

Closed Trytotry2 closed 8 years ago

Trytotry2 commented 8 years ago

Expected Behavior

Actual Behavior

Bot launch, can connect to my account, identify my items, pokemon etc and then, it crash.

Traceback (most recent call last): File "pokecli.py", line 493, in main() File "pokecli.py", line 127, in main report_summary(bot) File "pokecli.py", line 136, in report_summary metrics.capture_stats() File "C:\Users\Romain\Downloads\Bot Pokemon Go\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats response_dict = request.call() File "C:\Users\Romain\Downloads\Bot Pokemon Go\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call result = self._call() File "C:\Users\Romain\Downloads\Bot Pokemon Go\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "c:\users\romain\downloads\bot pokemon go\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 210, in call request.activate_signature(lib_path) File "c:\users\romain\downloads\bot pokemon go\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.py", line 85, in activate_signature self._signature_lib = ctypes.cdll.LoadLibrary(lib_path) File "C:\Python27\lib\ctypesinit.py", line 440, in LoadLibrary return self._dlltype(name) File "C:\Python27\lib\ctypesinit.py", line 362, in init self._handle = _dlopen(self._name, mode) WindowsError:

Steps to Reproduce

C:\Python27\python.exe pokecli.py

Other Information

OS: Windows 10 Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) Python Version: (run 'python -V' and paste it here) I made a new clean install of the bot

chikhvol commented 8 years ago

the same error. OS: Windows 7 Python version: 2.7.11

glennvgastel commented 8 years ago

Same here, I think a dll is missing. Might be the encrypt.dll that's in some other projects.

skywalker878 commented 8 years ago

same error on windows 7

Kosmatik commented 8 years ago

Same on Win 10, fresh Python 2.7.12 with clean git master and dev branches.

g2384 commented 8 years ago

Same on Ubuntu 16.04

Kosmatik commented 8 years ago

Fixed with help of #2706

put encrypt.dll into main directory

look into pokemongo_bot/init.py and change self.api.activate_signature("encrypt.so") to self.api.activate_signature("./encrypt.dll")

glennvgastel commented 8 years ago

See @Kosmatik 's answer, this line :

pgoapi/rpc_api.py line 226 : def _generate_signature(self, signature_plain, lib_path="encrypt.so"):

glennvgastel commented 8 years ago

Here's a folder with the windows 32 and 64 bit : https://mega.nz/#fm/Jh1ijT5B

Trytotry2 commented 8 years ago

Problem solved thank's to Slack community.

As Kosmatik said it : put encrypt.dll into main directory or encrypt64bit.dll

look into pokemongo_bot/init.py and change self.api.activate_signature("encrypt.so") to self.api.activate_signature("./encrypt.dll") or self.api.activate_signature("./encrypt64bit.dll")

bulubebek commented 8 years ago

@Calcyfer your link doesn't work for me. can you re-upload it to another file hosting (eg. mediafire)? thank you.