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

geemap breaks when SamGeo is imported #342

Closed
dfguerrerom opened this issue Oct 17, 2024 · 3 comments · Fixed by #343
Closed

geemap breaks when SamGeo is imported #342

dfguerrerom opened this issue Oct 17, 2024 · 3 comments · Fixed by #343
Labels
bug Something isn't working

Comments

@dfguerrerom
Copy link

dfguerrerom commented Oct 17, 2024

To reproduce

import os
from samgeo import SamGeo

Map = geemap.Map()

it prints out the following error:

RuntimeError: Error creating a Maps API session:
{'error': {'code': 400, 'message': 'API key not valid. Please pass a valid API key.', 'errors': [{'message': 'API key not valid. Please pass a valid API key.', 'domain': 'global', 'reason': 'badRequest'}], 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'API_KEY_INVALID', 'domain': 'googleapis.com', 'metadata': {'service': 'tile.googleapis.com'}}]}}.

I found out that the culprit is this line

os.environ["GOOGLE_MAPS_API_KEY"] = "API-KEY"
, any reason to have that there?

@dfguerrerom dfguerrerom added the bug Something isn't working label Oct 17, 2024
@giswqs
Copy link
Member

giswqs commented Oct 17, 2024

It was used to use the Google base tiles. I guess it is no longer needed. It has been removed in #343. Will release a new version shortly.

@giswqs
Copy link
Member

giswqs commented Oct 17, 2024

I just released v0.12.1. Please try again.

@dfguerrerom
Copy link
Author

thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants