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

[ERROR] maximum recursion depth exceeded while calling a Python object #2716

Closed
unbirabka opened this issue Aug 7, 2016 · 44 comments
Closed

Comments

@unbirabka
Copy link

unbirabka commented Aug 7, 2016

hello dev, this bot script always error like that, can you solved this, thank you

2016-08-07 08:55:27,121 [sentry.errors.serializer] [ERROR] maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/raven/utils/serializer/manager.py", line 76, in transform
return repr(value)
File "/usr/lib64/python2.7/ctypes/init.py", line 367, in repr
(self._handle & (_sys.maxint*2 + 1)),
File "/usr/lib64/python2.7/ctypes/init.py", line 373, in getattr
func = self.getitem(name)

@Lunik
Copy link

Lunik commented Aug 7, 2016

Same here. I'm on dev branch 0b319bc

I have done pip install -r requirement.txt and ./install.sh with no error.

@unbirabka
Copy link
Author

sure, im on dev branch too, and i have run install.sh and pip install -r requerment.txt but still error

@Lunik
Copy link

Lunik commented Aug 7, 2016

I will try to make a clean install from scratch

@slaxmtk
Copy link

slaxmtk commented Aug 7, 2016

Add the encrypt.so file to the PokemonGo-Bot directory. Here is the download link https://slack-files.com/T1U6G9ZEW-F1YV50RGQ-cc979942b7 . Thx @Segflow

@Lunik
Copy link

Lunik commented Aug 7, 2016

@slaxmtk where did you get this ?
And this is not working...
I added it to PokemonGo-Bot/encrypt.so

@manthan29jamdagni
Copy link

@slaxmtk Even after adding this encrypt.so file, the problem persists.

@unbirabka
Copy link
Author

my problem still same after download and add encrypt.so

@wesley-ontoforce
Copy link

copied the file and it works now

@Felix-Weber
Copy link

For me @slaxmtk fix worked fine!
Thanks!

@lucasren
Copy link

lucasren commented Aug 7, 2016

add encrypto.so , go another error

encrypt.so 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.

@yuftao
Copy link

yuftao commented Aug 7, 2016

I had the same issue, adding the encrypt.so file fixes that

@NerdsMcGee
Copy link

I built encrypt.so, placed it in the project root folder, and I'm still getting:

'OSError: encrypt.so: cannot open shared object file: No such file or directory'

(PokemonGo-Bot) |09:57:30|ubuntu:[PokemonGo-Bot]> ll | grep encrypt.so
-rwxrwxrwx 1 ubuntu ubuntu 250416 Aug 7 09:50 encrypt.so

@slaxmtk
Copy link

slaxmtk commented Aug 7, 2016

sorry guys. it seems that the encrypt.so only works for MacOS

@unbirabka
Copy link
Author

ohh noo.. i use centos 7 64bit, maybe you have link encrypt.so for linux 64bit

@abel-n
Copy link

abel-n commented Aug 7, 2016

Yeah, me using Ubuntu 16.04 and unfortunately doesn't run, I'll try on Arch as well.

@NerdsMcGee
Copy link

theLastLivingGhost: I compiled encrypt.so from the pgoapi tar, on 16.04, but no dice. Let me know if you have any success.

@elhanarinc
Copy link

Im on debian 8, its not working on this OS, either.

@Lunik
Copy link

Lunik commented Aug 7, 2016

I have tried:

$ wget http://pgoapi.com/pgoencrypt.tar.gz
$ tar -xf pgoencrypt.tar.gz
$ cd pgoencrypt/src/
$ make

But still doesn't work...

@NerdsMcGee
Copy link

Lunik: Did you rename the .so generated to encrypt.so?

@NerdsMcGee
Copy link

Got it. Went into init.py, changed encrypt.so to "./encrypt.so" to reference the file I built.

@abel-n
Copy link

abel-n commented Aug 7, 2016

It ran for 50 seconds and UnicodeDecodeError again, it cleared my pokemons based on iv though so I'm way more happy than I was in the past few days. Did what @NerdsMcGee told to do.

@NerdsMcGee
Copy link

I wound up pulling the dev branch, and I'm still working.

@elhanarinc
Copy link

2016-08-07 13:22:37,489 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
I got this message, even after i create an encrypt.so and adding into pokemon-go root

@unbirabka
Copy link
Author

unbirabka commented Aug 7, 2016

@NerdsMcGee its work for me :D , i use centos 7 64bit
thank you.
after change "encrypt.so" to "./encrypt.so" on file pokemongo_bot/init.py

@elhanarinc
Copy link

@NerdsMcGee Thanks man! Mine is also working now.

@abel-n
Copy link

abel-n commented Aug 7, 2016

Here is the error message with full call stack on Ubuntu 16.04:
http://pastebin.com/Ay34zFGN

And now I go and try to install it on my Pi on Arch ARM, I bloody well hope it'll run it. fingers crossed

@NerdsMcGee
Copy link

You'll need to compile encrypt.so on the Pi, since it's per-system

@RioRizkyRainey
Copy link

RioRizkyRainey commented Aug 7, 2016

@theLastLivingGhost I use ubuntu 16.04
wget http://pgoapi.com/pgoencrypt.tar.gz
tar -xf pgoencrypt.tar.gz
cd pgoencrypt/src/
make

Goto pgoencrypt/src then "libencrypt.so",
paste to bot root folder, and renamed it to "encrypt.so"

after that open init.py, change encrypt.so to "./encrypt.so" to reference the file I built.

and the bot will work. I just tried it

@abel-n
Copy link

abel-n commented Aug 7, 2016

@RioRizkyRainey
I did pretty much the same I think, ran into error mentioned above. Except that the init file name is pokemongo_bot/__init__.py, with underscores.

@NerdsMcGee
Copy link

Yeah, I forgot markup was applied when I copied the file. Everyone seems to know what I meant though. ;)

@muratcancicek
Copy link

on cygwin in Windows 10, I got following error when I tried to make

$ make
cc -fPIC -std=gnu99 -c -o encrypt.o encrypt.c
encrypt.c:1:0: warning: -fPIC ignored for target (all code is position independent)
/**
^
cc -shared -o libencrypt.so encrypt.o -lm
cc -fPIC -std=gnu99 -c -o main.o main.c
main.c:1:0: warning: -fPIC ignored for target (all code is position independent)

^
cc -o test -L. main.o -lencrypt
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lencrypt
collect2: error: ld returned 1 exit status
Makefile:9: recipe for target 'test' failed
make: *** [test] Error 1

@carl-eis
Copy link

carl-eis commented Aug 7, 2016

@RioRizkyRainey Thanks so much for clearing this up. Works for me 100%

@Lunik
Copy link

Lunik commented Aug 7, 2016

$ wget http://pgoapi.com/pgoencrypt.tar.gz
$ tar -xf pgoencrypt.tar.gz
$ cd pgoencrypt/src/
$ make
$ cp libencryp.so PokemonGo-Bot/encrypt.so

Rename encrypt.so in ./encrypt.so in pokemodo_bot/init.py`

This is working :)

@muratcancicek
Copy link

@Lunik Isn't it "libencrypt.so"?

@Lunik
Copy link

Lunik commented Aug 7, 2016

Yes mispelling ;)

@k4n30
Copy link
Contributor

k4n30 commented Aug 7, 2016

#2768

@lucasren
Copy link

lucasren commented Aug 7, 2016

Still hnaving the same error with encrypt.dll
Found encrypt.dll! Platform: win32 Bot root directory:

[ERROR] maximum recursion depth exceeded while calling a Python object

@indiealexh
Copy link

Fix for me (Win 10):
Download https://github.com/PokemonGoMap/PokemonGo-Map/blob/develop/pogom/encrypt32bit.dll rename it into encrypt.dll and place it in the project root directory
Then edit init.py to use ./encrypt.dll

And boom, working PokeBot!

@JetP1L0t
Copy link

JetP1L0t commented Aug 7, 2016

Fix for OSX:
copied from Pokemon GO Live Map.app/Contents/Resources/app/map/pogom/libencrypt-osx.so to bot root directory. Renamed to encrypt.so
Map app: https://github.com/mchristopher/PokemonGo-DesktopMap/releases

@sangeet79
Copy link

@RioRizkyRainey sollution with "libencrypt.so" worked just fine for ubuntu 14.04, thanks.

@jrjhealey
Copy link

As this is the least recently updated issue, I'll assume it was based on an old commit and close. Most if not all of these issues have been resolved in PRs as far as I'm aware.

@KrKgg
Copy link

KrKgg commented Aug 14, 2016

Sorry, but i have some errors. But i still not fix it. I am used Windowns 10. I have download encryp.dll. Pls help me!
def _setup_api(self):
# instantiate pgoapi
self.api = ApiWrapper()

    # provide player position on the earth
    self._set_starting_position()

    self.login()
    # chain subrequests (methods) into one RPC call

    self._print_character_info()
    #self.api.activate_signature(self.get_encryption_lib())
    self.api.activate_signature("./encrypt.dll")
    self.logger.info('')
    self.update_inventory()
    # send empty map_cells and then our position
    self.update_web_location()

@k4n30
Copy link
Contributor

k4n30 commented Aug 14, 2016

@QuanHuynhM What is that? Error logs? or code?

Please join the slack server as per the README for help

@KrKgg
Copy link

KrKgg commented Aug 14, 2016

My problem: "maximum recursion depth exceeded while calling a Python object". I follow @indiealexh . But i still not working.

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