Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ELF class #5786

Closed
azraelppuk opened this issue Nov 7, 2016 · 8 comments
Closed

Wrong ELF class #5786

azraelppuk opened this issue Nov 7, 2016 · 8 comments

Comments

@azraelppuk
Copy link

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.

@solderzzc
Copy link
Contributor

So you are running on RespBerry PI ?

@azraelppuk
Copy link
Author

yes

@breakawayt
Copy link

@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.

@azraelppuk
Copy link
Author

pogodevorg/pgoapi#148

@beltoft
Copy link

beltoft commented Nov 8, 2016

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

This solved it

@azraelppuk
Copy link
Author

azraelppuk commented Nov 8, 2016

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)

@breakawayt
Copy link

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

@solderzzc
Copy link
Contributor

let me close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants