skylift icon indicating copy to clipboard operation
skylift copied to clipboard

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

Open Juandurdaneta opened this issue 3 years ago • 4 comments
trafficstars

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

Juandurdaneta avatar Jun 19 '22 18:06 Juandurdaneta

try:

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

Delivers avatar Aug 24 '22 18:08 Delivers

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'

xfrozt54 avatar Sep 07 '22 12:09 xfrozt54

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

Delivers avatar Sep 21 '22 17:09 Delivers

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 avatar Oct 07 '22 13:10 adamhrv