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

Wrong ELF class

Open azraelppuk opened this issue 10 years ago • 8 comments

got error: [2016-11-07 21:14:37] [ERROR] [u'OSError: /home/pi/PokemonGo-Bot-Dev-29/PokemonGo-Bot//src/pgoapi/pgoapi/lib/libencrypt-linux-x86-64.so: wrong ELF class: ELFCLASS64'

investigated and local/pokemongo_bot/init.py contained

if _platform.lower() == "linux" or _platform.lower() == "linux2": file_name = 'src/pgoapi/pgoapi/lib/libencrypt-linux-x86-64.so'

changed to

if _platform.lower() == "linux" or _platform.lower() == "linux2": file_name = 'src/pgoapi/pgoapi/lib/libencrypt-linux-arm-32.so'

then then proceeded for me. This isn't the fix, needs to properly check platform.

azraelppuk avatar Nov 07 '16 21:11 azraelppuk

So you are running on RespBerry PI ?

solderzzc avatar Nov 07 '16 22:11 solderzzc

yes

azraelppuk avatar Nov 07 '16 23:11 azraelppuk

@azraelppuk Got the same error as yours (i'm running this on Pi too), would you be kind enough to point me to download the file "libencrypt-linux-arm-32.so" and "libniantichash-linux-arm-32.so"?

Also, to get pi working, is there a better way to "pip install -r requirements.txt" (or something like that)?

Thanks.

breakawayt avatar Nov 07 '16 23:11 breakawayt

https://github.com/pogodevorg/pgoapi/pull/148

azraelppuk avatar Nov 08 '16 07:11 azraelppuk

Had the same problem on a minix neo 7 running ubuntu 14.04 ARM

This solved it

beltoft avatar Nov 08 '16 08:11 beltoft

yeah also need to change

if _platform.lower() == "linux" or _platform.lower() == "linux2": file_name = 'src/pgoapi/pgoapi/lib/libniantichash-linux-x86-64.so'

to

if _platform.lower() == "linux" or _platform.lower() == "linux2": file_name = 'src/pgoapi/pgoapi/lib/libniantichash-linux-arm-32.so'

(or rather add in the additional check)

azraelppuk avatar Nov 08 '16 15:11 azraelppuk

Thanks a lot @azraelppuk , it's working now. All up and running in Rasbian.

breakawayt avatar Nov 08 '16 23:11 breakawayt

let me close this issue

solderzzc avatar Nov 14 '16 20:11 solderzzc