You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tldr; the geocoding enrichment still works although the error messages discussed below is created, so this isn't critical.
I forked and then modified the datasette-enrichments-opencage package to use the google maps API instaed of opencage. The new repository is called enrichments-gmap-geocode.
When the datasette-leaflet-freedraw plugin is installed, this same issue from the datasette-leaflet-freedraw is caused.
Uninstalling the plugin resolves the issue, but... my larger datasette ecosystem will need both the enrichment and the plugin in the following use case:
Use Case
One table stores ham radio QSO (contact) logs including the location of the transmitting and receiving ham radio stations (lat and lng.) This table will is used along with the freedraw to search for QSOs at different transmit or receive locations (click through for video use case demo).
or statically:
Another table (perhaps just the first one mentioned above?) will contain callsigns for new QSOs. These callsigns will be passed through two enrichments in turn, one that uses qrz.com to lookup the callsign address, and then enrichments-gmap-geocode to geocode the station locations.
Is there a resolution other than uninstalling the freedraw plugin?
To recreate:
Clone and install the gmaps API enrichment. To install I used pip install -e '.[test]'
that is loaded into a sqlite db in any manner you like. (I used csvs-to-sqlite ../test_addr.csv gm_test.db)
Then, start datasette with the following command line: python3 -m datasette gm_test.db --metadata qso_loc.yml --load-extension=/usr/lib/x86_64-linux-gnu/mod_spatialite.so --template-dir plugins/templates --root
Go through the normal flow to enrich the address data and the error will appear.
Also!? The data will still be enriched, so maybe it doesn't matter? (It does make development a bit more difficult because of the time to isolate the above mentioned error message vs. actual error issues.)
Here's the error:
But the geocoding actually still worked:
The text was updated successfully, but these errors were encountered:
tldr; the geocoding enrichment still works although the error messages discussed below is created, so this isn't critical.
I forked and then modified the datasette-enrichments-opencage package to use the google maps API instaed of opencage. The new repository is called enrichments-gmap-geocode.
When the datasette-leaflet-freedraw plugin is installed, this same issue from the datasette-leaflet-freedraw is caused.
Uninstalling the plugin resolves the issue, but... my larger datasette ecosystem will need both the enrichment and the plugin in the following use case:
Use Case
One table stores ham radio QSO (contact) logs including the location of the transmitting and receiving ham radio stations (lat and lng.) This table will is used along with the freedraw to search for QSOs at different transmit or receive locations (click through for video use case demo).
or statically:
Another table (perhaps just the first one mentioned above?) will contain callsigns for new QSOs. These callsigns will be passed through two enrichments in turn, one that uses qrz.com to lookup the callsign address, and then enrichments-gmap-geocode to geocode the station locations.
Is there a resolution other than uninstalling the freedraw plugin?
To recreate:
Clone and install the gmaps API enrichment. To install I used
pip install -e '.[test]'
at the top level of the cloned repo
Then, create an addresses table:
that is loaded into a sqlite db in any manner you like. (I used
csvs-to-sqlite ../test_addr.csv gm_test.db
)Then, start datasette with the following command line:
python3 -m datasette gm_test.db --metadata qso_loc.yml --load-extension=/usr/lib/x86_64-linux-gnu/mod_spatialite.so --template-dir plugins/templates --root
Go through the normal flow to enrich the address data and the error will appear.
Also!? The data will still be enriched, so maybe it doesn't matter? (It does make development a bit more difficult because of the time to isolate the above mentioned error message vs. actual error issues.)
Here's the error:
But the geocoding actually still worked:
The text was updated successfully, but these errors were encountered: