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

SyntaxError when trying to change the network location using the wigle api #11

Closed
Juandurdaneta opened this issue Jun 19, 2022 · 4 comments

Comments

@Juandurdaneta
Copy link

File "skylift/cli_jobs.py", line 102
  jobs['run'] = jobs['run'].fillna(0)astype('int')
                                          ^
SyntaxError: invalid syntax

I get this SyntaxError whenever i try to get Wi-Fi data from Wigle by doing:

python skylift/cli_jobs.py wigle_api --wigle_api_name [my_user_name] --wigle_api_key [my_api_key] --jobs data/jobs/wigle_api.csv
@Delivers
Copy link

try:

jobs['run'] = jobs['run'].fillna(0).astype('int')

@xfrozt54
Copy link

xfrozt54 commented Sep 7, 2022

I got same problem but different error. The terminal showing :

return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1601, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1608, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'notes'

@Delivers
Copy link

Delivers commented Sep 21, 2022

in skylift/cli_jobs.py uncommand:

#jobs['notes'] = jobs['notes'].fillna('').astype('str')
#jobs['venue_name'] = jobs['venue_name'].fillna('').astype('str')

and if you get issues with "vincenty" in skylift-master/skylift/app/geo_utils.py then change:

geopy.distance.vincenty to geopy.distance.geodesic

@adamhrv
Copy link
Owner

adamhrv commented Oct 7, 2022

Thanks. Will apply this update once the new Wigle API command is rebuilt. For now the project is only using a simplified CLI that:

  • converts scan output (as a CSV) from Wigle (on Android) or Airport Utility (on iOS) to a networks JSON file
  • converts the JSON file to an Arduino sketch for the ESP32 or ESP8266 (low-cost NodeMCU ESP version)

@adamhrv adamhrv closed this as completed Apr 26, 2024
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