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

Encrypt.so on windows

Open starrett67 opened this issue 10 years ago • 8 comments

Hey guys I am trying to get the bot working on windows 10. I have seen post on how to install create encrypt.so but I have not been able to do so on windows.

Here is what I have seen: wget http://pgoapi.com/pgoencrypt.tar.gz && tar -xf pgoencrypt.tar.gz && cd pgoencrypt/src/ && make

I tried installing MinGW and running this command: Invoke-WebRequest http://pgoapi.com/pgoencrypt.tar.gz -OutFile pgoencrypt.tar.gz; tar -xf pgoencrypt.tar.gz; cd pgoencrypt/src/; make

But I got this:

cc -fPIC -std=gnu99 -c -o encrypt.o encrypt.c make.exe": cc: Command not found make.exe": *** [encrypt.o] Error 127

starrett67 avatar Aug 07 '16 20:08 starrett67

@starrett67 Pull the latest Dev version. Then dowload encrypt64bit.dll here : https://github.com/PokemonGoMap/PokemonGo-Map/tree/develop/pogom Put it in the PokemonGo-Bot folder, then rename it : encrypt_64.dll

If your still have errors, look at this : https://www.pastery.net/fddahq/

BriceSD avatar Aug 07 '16 21:08 BriceSD

Thanks @BriceSD that fixed my issues. But now i am running into this:

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\Commander\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats response_dict = request.call() File "C:\Users\Commander\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call result = self.call() File "C:\Users\Commander\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in call return PGoApiRequest.call(self) File "c:\users\commander\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 210, in call request.activate_signature(lib_path) File "c:\users\commander\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 440, in LoadLibrary return self.dlltype(name) File "c:\python27\Lib\ctypes__init.py", line 362, in init self._handle = _dlopen(self._name, mode) WindowsError: [Error 193] %1 is not a valid Win32 application

starrett67 avatar Aug 07 '16 22:08 starrett67

I'm having this exact same issue you posted above. Did you manage to fix it?

severireivinen avatar Aug 07 '16 22:08 severireivinen

not yet

starrett67 avatar Aug 07 '16 22:08 starrett67

@reivmeister you won't be able to use the makefile on windows. @starrett67 I didn't have this issue. You're not the first though. Don't forget to give back once you solve the problem

Also on windows you'll need a .dll file, not .so

BriceSD avatar Aug 07 '16 22:08 BriceSD

@reivmeister Hey I was using the wrong encrypt dll. Its not the make sure to use 32bit if python is 32bit and 64 bit if python is 64bit

starrett67 avatar Aug 07 '16 23:08 starrett67

@starrett67 Yes, got it working after all. I also noticed I had the wrong encrypt.dll file.

severireivinen avatar Aug 07 '16 23:08 severireivinen

@starrett67 Glad you found a solution. Please close the issue.

BriceSD avatar Aug 07 '16 23:08 BriceSD