PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Last Attemp to run the bot (errors without fix)

Open Yanush7 opened this issue 10 years ago • 10 comments

Hi

After API change, i encountered problems with running the bot again. Im not an idiot - I have read all the issues, hints, tutorials etc. but I reached the point, where there is nothing left do, and the bot is still not able to start.

So if someone is using this bot on Windows 7 x64bit machine (if it matters), please can you tell me step by step what need to be done to run the bot?

  1. i know i need encrypt.dll and i have all of them (32bi 64bit , even inux version lol)
  2. i know to set health record to false (even that i have no idea why it has to be done)
  3. i dont know if using 32 or 64 bit dll depends on OS version or Python version ?
  4. using latest dev, requirements upgraded etc

Yanush7 avatar Aug 09 '16 11:08 Yanush7

pip install -r requirements --upgrade

eggins avatar Aug 09 '16 11:08 eggins

Do you get any error?

iruy avatar Aug 09 '16 11:08 iruy

2016-08-09 13:25:02,316 [PokemonGoBot] [INFO] Found encrypt.dll! Platform: win32 Encrypt.so directory: C:\Git\PokemonGo-Bot 2016-08-09 13:25:02,316 [PokemonGoBot] [INFO] Traceback (most recent call last): File "pokecli.py", line 503, in main() File "pokecli.py", line 131, in main report_summary(bot) File "pokecli.py", line 140, in report_summary metrics.capture_stats() File "C:\Git\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stat s response_dict = request.call() File "C:\Git\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call result = self._call() File "C:\Git\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in call return PGoApiRequest.call(self) File "c:\git\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 210, in call request.activate_signature(lib_path) File "c:\git\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\ctypes__init.py", line 443, in LoadLibrary return self.dlltype(name) File "C:\Python27\lib\ctypes__init.py", line 365, in init self._handle = _dlopen(self._name, mode) WindowsError: C:\Git\PokemonGo-Bot>IF ERRORLEVEL 1 GOTO :RETRY (2016-08-09 13:25:02,47) Ooooops, there was an error, let us try again!

Yanush7 avatar Aug 09 '16 11:08 Yanush7

exactly same issue for me (with Windows 10 64bits, Python 2.7.12 32bits) Seems related to the .dll, as I got this error windows :

encrypt.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000012f.

This error message appear twice, right after 2016-08-09 15:35:56,674 [PokemonGoBot] [INFO] Found encrypt.dll! Platform: win32 Encrypt.so directory: C:\XXXXXXX\PokemonGo-Bot 2016-08-09 15:35:56,674 [PokemonGoBot] [INFO]

I click 2 times OK, and log finish exactly like Yanush7's

But works flawlessy on Ubuntu

GhosterBot avatar Aug 09 '16 13:08 GhosterBot

How to check python version ? (32 or 64 bit)

Yanush7 avatar Aug 09 '16 13:08 Yanush7

On windows command line, just type Python to start the Python interpreter, this is what I got:

Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32

So it's 32 bits (for me)

GhosterBot avatar Aug 09 '16 14:08 GhosterBot

same for me - 32bit python. Have you tried installing 64bit python ? maybe it is the mismatch problem ? it seems the only thing that we have in common, and it would explain why other people do not have this problem

Yanush7 avatar Aug 09 '16 14:08 Yanush7

I didn't try installing 64bit python.

I am not sure if it's usefull, but I try to register the dll using the regsvr32.exe tool, but always got :

The module "encrypt.dll" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.

I tried both .dll with both version of the tool (32 and 64 bits).

GhosterBot avatar Aug 09 '16 14:08 GhosterBot

Docker would be your solution, I guess :-)

I say this because you all seem running it on windows and I see no issue on linux. Try the docker install.

wattazoum avatar Aug 09 '16 18:08 wattazoum

@Yanush7 is this still an issue for you?

k4n30 avatar Aug 12 '16 04:08 k4n30