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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ MAP_END = (13.4567, 35.6789)
GRID = (2, 2) # row, column
CYCLES_PER_WORKER = 3
SCAN_DELAY = 10 # seconds
ENCRYPT = './libencrypt.so' # external encryption library

SCAN_RADIUS = 70 # metres

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(
center = self.points[0]
self.api = PGoApi()
self.api.set_position(center[0], center[1], 100) # lat, lon, alt
self.api.activate_signature(config.ENCRYPT)

def run(self):
"""Wrapper for self.main - runs it a few times before restarting
Expand Down