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

Generate API signature #135

Closed
wants to merge 1 commit into from
Closed

Generate API signature #135

wants to merge 1 commit into from

Conversation

Noctem
Copy link

@Noctem Noctem commented Aug 7, 2016

Fixes the Unknown6 API checks.

Fixes the Unknown6 API checks.
@@ -8,4 +8,4 @@ gpsoauth==0.3.0
coveralls==1.1
werkzeug==0.11.10
sqlalchemy==1.0.14
-e git+https://github.com/tejado/pgoapi.git@0811db23d639039f968a82e06c7aa15a0a5016b6#egg=pgoapi
-e git+https://github.com/keyphact/pgoapi.git#egg=pgoapi
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can return to @tejado's repo as soon as he merges in the fixes from tejado/pgoapi#182.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this error when i try to install the new API:
https://i.gyazo.com/4d2a80e943d1ee6f12823dfb2ca5f448.png

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Brewfasa first this was not the right place to comment. Second: try these things: http://www.pandastack.com/unable-to-find-vcvarsall-bat-how-to-fix-on-windows/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but it was somehow still kinda connected to the github ^^
I got the compiling working, but now my workers are stuck @ "Exception" status and the logs tell me this:
https://i.gyazo.com/54b34c702cfb58dd9e59abef340d78cd.png

No clue what to do now, i will probably not be the only one getting all these things

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Brewfast with wrong place I mean you are commenting on a line of code and not the issue itself...

Your problem is answered in the other comments. With windows you will need the right dll file and not the so

@adiran
Copy link

adiran commented Aug 7, 2016

i tried this but still don't get any pokemon... is this working for you @Noctem?

@Noctem
Copy link
Author

Noctem commented Aug 7, 2016

@adiran It is. Do you have the encryption library? You'll have to acquire that elsewhere and set the Encrypt: config variable to its name (i.e. libencrypt.so, libencrypt.dll, or libencrypt.dylib).

@vanwinkelseppe
Copy link

@Noctem Giving me AttributeError:
Traceback (most recent call last): File "worker.py", line 347, in <module> spawn_workers(workers, status_bar=args.status_bar) File "worker.py", line 281, in spawn_workers start_worker(worker_no, points[worker_no]) File "worker.py", line 269, in start_worker points=points File "worker.py", line 85, in __init__ self.api.activate_signature(config.ENCRYPT) File "c:\Python27\lib\site-packages\pgoapi\pgoapi.py", line 89, in __getattr__ raise AttributeError AttributeError

@thiemok
Copy link

thiemok commented Aug 7, 2016

@Kieken72 did you change your own config file? Is the spelling correct?

@puddingbrood
Copy link

Did you adjust all 3 of the files?
Do you have the encryption files in the same folder?
Did you name the correct encryption files in the config? (encrypt.dll for windows)
Did you run pip install -r requirements.txt again after adjusting the file?

@Aiyubi Aiyubi mentioned this pull request Aug 7, 2016
@modrzew
Copy link
Owner

modrzew commented Aug 7, 2016

Similar changes are already in forts branch which I'll be merging to master later today. Thanks for the PR, I'll leave it open until changes land in master.

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

A note: you need the libencrypt fitting to your OS. If you have the wrong one the worker.log should display an error like this one
OSError: ./libencrypt.so: wrong ELF class: ELFCLASS64

@modrzew
Copy link
Owner

modrzew commented Aug 7, 2016

Actually @Noctem this is almost identical to what I wrote in forts, so I think I'll merge it to master and deal with merge conflicts later on my own.

Could you just change ENCRYPT to ENCRYPT_PATH?

@Glennvd
Copy link

Glennvd commented Aug 7, 2016

Where do you get the libencrypt.so from?

@Eskof
Copy link

Eskof commented Aug 7, 2016

All my workers got this

Traceback (most recent call last): File "worker.py", line 100, in run password=config.ACCOUNTS[self.worker_no][1], File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/pgoapi.py", line 163, in login response = self.app_simulation_login() File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/pgoapi.py", line 140, in app_simulation_login response = request.call() File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/pgoapi.py", line 219, in call response = request.request(self._api_endpoint, self._req_method_list, self.get_position()) File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/rpc_api.py", line 125, in request request_proto = self._build_main_request(subrequests, player_position) File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/rpc_api.py", line 196, in _build_main_request sig.location_hash1 = generateLocation1(ticket_serialized, request.latitude, request.longitude, request.altitude) File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/utilities.py", line 165, in generateLocation1 locationBytes = d2h(lat) + d2h(lng) + d2h(alt) File "/usr/local/lib/python2.7/dist-packages/pgoapi-1.1.6-py2.7.egg/pgoapi/utilities.py", line 183, in d2h return hex(struct.unpack('<Q', struct.pack('<d', f))[0])[2:-1].decode("hex") File "/usr/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode output = binascii.a2b_hex(input)

Got a lot of this :(

@Glennvd https://github.com/PokemonGoMap/PokemonGo-Map/tree/develop/pogom

Edit : Fixed running pip install -r requierements.txt

@Glennvd
Copy link

Glennvd commented Aug 7, 2016

Here :-)
[2016-08-07 07:51:21,381][ worker-69][ ERROR][L 132] A wild exception appeared! Traceback (most recent call last): File "worker.py", line 127, in run self.main() File "worker.py", line 169, in main map_objects = response_dict['responses'].get('GET_MAP_OBJECTS', {})

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

@Glennvd you can look at other map projects and take it from them. Like:
https://github.com/PokemonGoMap/PokemonGo-Map/tree/develop/pogom
Or you can look for one of the many sources and compile yourself:
pogodevorg/pgoapi#22

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

@Glennvd @Eskof it would help if you would not cut the exception out. One more line is needed. Also please use code blocks ( 3 times backtick and not just 1)

@Eskof are you using more workers then accounts?

@Eskof
Copy link

Eskof commented Aug 7, 2016

@Aiyubi No, enough. But I edited, running pip -r install fixed the issue

@vanwinkelseppe
Copy link

Can we convert the .so file to be used on windows?

On Sun, Aug 7, 2016 at 1:49 PM +0200, "Glenn Vandamme" <[email protected]mailto:[email protected]> wrote:

Where do you get the libencrypt.so from?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//pull/135#issuecomment-238078072, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIqEpujb97uUS69TG7GNp4Tt-d0w4_fqks5qdcYygaJpZM4Jecdw.

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

@Kieken72 use the dll files I linked in one of my last posts

@Eskof
Copy link

Eskof commented Aug 7, 2016

@Glennvd @Aiyubi I got the same issue as you @Aiyubi on my other pokeminer I just tried to update, I let you know if I fix it. Did you fixed it?

[2016-08-07 14:06:53,777][ worker-39][ ERROR][L 133] A wild exception appeared! Traceback (most recent call last): File "/XX/worker.py", line 128, in run self.main() File "/XX/worker.py", line 170, in main map_objects = response_dict['responses'].get('GET_MAP_OBJECTS', {}) TypeError: sequence index must be integer, not 'str'

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

@Glennvd @Eskof this always happens when the login fails. There is an unhandled exception somwhere in the code. It is an old one and not connected to the api change. (I got that one myself and workers will restart after some time)

P.S.: tripple backtick for linebreaks....

@thiemok
Copy link

thiemok commented Aug 7, 2016

Got the same exception as @Eskof posted half an hour ago. However only on x64, armhf runs fine

@Eskof
Copy link

Eskof commented Aug 7, 2016

@thiemok runnin pip install -r requirements.txt fixed the issue
@Aiyubi I'm using exactly same setup at both, only worker and location change
Edit : Issue found, account need to be activated, so I must recreate ptc account. Any PTC Verified account creator arround?

@thiemok
Copy link

thiemok commented Aug 7, 2016

@Eskof mb, it was an api bug, they fixed it, but i had the commit pinned in my requirements.txt

@Aiyubi
Copy link

Aiyubi commented Aug 7, 2016

@Eskof just google "ptc account creator github"

@Glennvd
Copy link

Glennvd commented Aug 7, 2016

Got it up and running after recreating my database again, was giving me segmentation faults for some reason 👍

@Eskof
Copy link

Eskof commented Aug 7, 2016

@Aiyubi Thanks I checked it. I dont know what I'm doing wrong, Its stay stuck at "Waiting for email" and fail

@thiemok
Copy link

thiemok commented Aug 7, 2016

@Eskof yeah that tool is currently not working. They did some changes there

@Eskof
Copy link

Eskof commented Aug 7, 2016

@thiemok Any other tools to make some? :(

@thiemok
Copy link

thiemok commented Aug 7, 2016

@Eskof Lets not discuss this here, you might to look trough /r/pokemongodev a bit and browse the issues of that currently not working github project. If you really need to drop me a dm on /u/_chewbaccat

@modrzew
Copy link
Owner

modrzew commented Aug 7, 2016

Merged different commit which does exactly the same thing into master, and released that as v0.4.3. Thanks again!

@modrzew modrzew closed this Aug 7, 2016
This was referenced Aug 7, 2016
@photex12
Copy link

photex12 commented Aug 8, 2016

@brewfase
https://i.gyazo.com/4d2a80e943d1ee6f12823dfb2ca5f448.png

I got this problem solved by installing Microsoft Visual C++ Compiler for Python 2.7

@Aiyubi Aiyubi mentioned this pull request Aug 8, 2016
@Noctem Noctem deleted the u6 branch September 13, 2016 03:28
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

Successfully merging this pull request may close these issues.