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

how to specify a location with demo.py ? #89

Open
blueskybreeze opened this issue Aug 11, 2016 · 14 comments
Open

how to specify a location with demo.py ? #89

blueskybreeze opened this issue Aug 11, 2016 · 14 comments

Comments

@blueskybreeze
Copy link

blueskybreeze commented Aug 11, 2016

is the following line supposed to work?

python demo.py -a "google" -u "[email protected]" -p "thepassword" -l "37.7954961,-122.3935113"

(this is a sample geolocation for the San Francisco Ferry Building)

It won't show any nearby pokemons... but in my Pokemon Go app I do see some nearby pokemons.

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 11, 2016

use encrypt.so

@blueskybreeze
Copy link
Author

blueskybreeze commented Aug 11, 2016

where should encrypt.so be placed on a Mac? I placed it on all possible folders inside of pokemongo-api but it didn't work.

I saw the instruction for Pokemon Go Bot, about how to make the file encrypt.so:

http://blog.pokemongofun.com/tag/pokemon-go-encrypt-so/

but I am not running a bot... (do I need to?) and so after making the file encrypt.so I copied encrypt.so and libencrypt.soto all possible folders inside of the pokemongo-api folder but it didn't work.

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 11, 2016

just place it in the same folder of demo.py
and call the script with -e "filename.extension"

@blueskybreeze
Copy link
Author

do you mean

python demo.py -a "google" -u "[email protected]" -p "thepassword" -l "37.7954961,-122.3935113" -e "encrypt.so"

?

@blueskybreeze
Copy link
Author

blueskybreeze commented Aug 11, 2016

also by the way, I am using Python 2.7.5 and I saw many lines that said I might need a newer version of Python -- not sure if it matters:

/Users/mike/.virtualenvs/django19try01/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning

by the way I was able to get all the player's stats, but not nearby pokemon info.

@dmadisetti
Copy link
Collaborator

dmadisetti commented Aug 11, 2016

did you install dependencies from requirements?

@blueskybreeze
Copy link
Author

after git clone (recursive or not)... I did run a

pip install -r requirements.txt

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 11, 2016

please uninstall urllib and reinstall it

@blueskybreeze
Copy link
Author

blueskybreeze commented Aug 12, 2016

is it by pip uninstall urllib ? But it will say

$  pip uninstall urllib
Cannot uninstall requirement urllib, not installed

@blueskybreeze
Copy link
Author

blueskybreeze commented Aug 12, 2016

I also tried

pip uninstall -r requirements.txt

and then

pip install -r requirements.txt

but it didn't work.

@dmadisetti
Copy link
Collaborator

Create new virtual env, then pip install . then try?

@ealejand
Copy link

To get rid of the SNIMissingWarnings you can pip install requests[security]

@dnsBlah
Copy link
Contributor

dnsBlah commented Aug 13, 2016

cool! thanks ealehand
is this something with the urllib version or something?

@ealejand
Copy link

Yeah, from what I've read Python 2 lacks SNI support so there's a couple packages that can supplement certificate validation.

http://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

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