rubenvereecken / pokemongo-api

Pokemon Go API for Python
Other
358 stars 120 forks source link

Running demo.py shows 'no forts found' in Mac OSX El Captain #79

Closed Jefreesujit closed 8 years ago

Jefreesujit commented 8 years ago

I pulled out the latest code, updated the requirements and added libencrypt.so in the repo directory. When i try to run demo.py it executes fine, but says 'no forts found' and stops.

Jefreesujit commented 8 years ago

i tried to log, the cells.mapcells, and found it has no forts array in the cell object.. could someone help me out here..

dnsBlah commented 8 years ago

Do you have the encryption file ?

Jefreesujit commented 8 years ago

yeah this one ryt.. libencrypt.so ? i placed in pogo directory where demo.py is present.. where should i place it?

dnsBlah commented 8 years ago

Yes in the same directory where you are calling the demo.py Then when you call the script: ./demo.py -a PTC -u USERNAME -p PASSWORD -e "libencrypt.so"

Jefreesujit commented 8 years ago

i tried that out including -e "libencrypt.so" , but still it shows no forts found.. basically the cells object has only the cell id and timestamp.

dnsBlah commented 8 years ago

put time.sleep(10) before the getmapobjects function

Jefreesujit commented 8 years ago

Dude, even that didnt work out.. i appreciate that you take time to help me.. but i dont know whats going wrong.. i m not able to figure it out

dnsBlah commented 8 years ago

What OS are you running? For Windows I think you have a better chance using the .dll file

Jefreesujit commented 8 years ago

i m using mac osx el captian

dnsBlah commented 8 years ago

Actually, I see now, I dropped both, the .so and .dll in the same folder. http://www.filedropper.com/archive_34 Download that, thats what I'm using. (uploaded it just now a few seconds ago)

And to make my life easier, I just changed the argument for the file:

poko_session = PokeAuthSession(
        args.username,
        args.password,
        args.auth,
        args.encrypt_lib,
        geo_key=args.geo_key
)

to

poko_session = PokeAuthSession(
        args.username,
        args.password,
        args.auth,
        "encrypt.so",
        geo_key=args.geo_key
)

Thats really all I did

Jefreesujit commented 8 years ago

Still it doesnt work.. i m getting frustrated, i dont think this is gonna work out.. Thanks for your help..

dnsBlah commented 8 years ago

hm.. strange tho.. I'm sorry, I can't help out more either then. Maybe someone else on here can tho. Be patient.

joeljacobson commented 8 years ago

I'm also having demo issues, have both libencrypt.so and encrypt.dll in the pogo directory with the demo.py. Inventory gets printed and then errors with:

Line 40,demo.py - 2016-08-09 22:03:49,350 - INFO - Finding Nearby Pokemon: Line 224,session_bare.py - 2016-08-09 22:03:49,400 - ERROR - status_code: 52

dmadisetti commented 8 years ago

Error 52 mean you've been rate limited

joeljacobson commented 8 years ago

Thanks for the reply, is that them imposing some kind of soft ban? or is that a permanent thing?

What recommendation would you have? Anything I can do or just create a new account?

Thanks in advance for your help.

dmadisetti commented 8 years ago

Just put in higher sleeps between requests. Demo is just an example of how you might use the API, not meant to be 100%. However, I've been having having issues too. I'll debug some more

joeljacobson commented 8 years ago

All working.

dmadisetti commented 8 years ago

Cool. Also, newest branch has better error handling. About to merge into master

Jefreesujit commented 8 years ago

hey dmadisetti, this issue has not been resolved for me, why ave you closed this issue?

dnsBlah commented 8 years ago

Jefree, did you try more bots ? Do you have the possibility to try using a VPN or proxy ?

I've experienced an ban on the WAN side. And it really has to do with throttling the server(s)

Jefreesujit commented 8 years ago

Try more bots, in the sense? execute more no of times? even in that case i m not able to find any pokemons or forts in my newly created trainer account too.

Jefreesujit commented 8 years ago

where will i be getting encrypt.dll if have to try it out on windows?

davjimvar commented 8 years ago

@dnsBlah uploaded at this http://www.filedropper.com/archive_34 but to me, this file don't work

Jefreesujit commented 8 years ago

yeah, even for me.. it wasnt working..

dnsBlah commented 8 years ago

I'n using that .so file Running on El Capitan

davjimvar commented 8 years ago

but in windows is not valid .so file

dnsBlah commented 8 years ago

@Jefreesujit please try these commands and try the demo again

cp encrypt.dll /usr/local/lib/encrypt.dll export LD_LIBRARY_PATH=/usr/local/lib

Jefreesujit commented 8 years ago

i executed these commands, and should i include -e "encrypt.dll" along with my command?

dnsBlah commented 8 years ago

put the .so in the command