PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

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

Closed unbirabka closed 8 years ago

unbirabka commented 8 years ago

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 commented 8 years ago

Same here. I'm on dev branch 0b319bc243a1b11b17c8639f8d902b41ec233e6c

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

unbirabka commented 8 years ago

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

Lunik commented 8 years ago

I will try to make a clean install from scratch

slaxmtk commented 8 years ago

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 commented 8 years ago

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

manthan29jamdagni commented 8 years ago

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

unbirabka commented 8 years ago

my problem still same after download and add encrypt.so

wesley-ontoforce commented 8 years ago

copied the file and it works now

Felix-Weber commented 8 years ago

For me @slaxmtk fix worked fine! Thanks!

lucasren commented 8 years ago

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 commented 8 years ago

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

NerdsMcGee commented 8 years ago

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 commented 8 years ago

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

unbirabka commented 8 years ago

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

abel-n commented 8 years ago

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

NerdsMcGee commented 8 years ago

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

elhanarinc commented 8 years ago

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

Lunik commented 8 years ago

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 commented 8 years ago

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

NerdsMcGee commented 8 years ago

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

abel-n commented 8 years ago

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 commented 8 years ago

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

elhanarinc commented 8 years ago

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 commented 8 years ago

@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 commented 8 years ago

@NerdsMcGee Thanks man! Mine is also working now.

abel-n commented 8 years ago

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 commented 8 years ago

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

RioRizkyRainey commented 8 years ago

@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 commented 8 years ago

@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 commented 8 years ago

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

muratcancicek commented 8 years ago

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 commented 8 years ago

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

Lunik commented 8 years ago
$ 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 commented 8 years ago

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

Lunik commented 8 years ago

Yes mispelling ;)

k4n30 commented 8 years ago

2768

lucasren commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

jrjhealey commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

Please join the slack server as per the README for help

KrKgg commented 8 years ago

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