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

Error with import geemap on Jupyter Notebook #2015

Closed
mirizarry-ortiz opened this issue May 16, 2024 · 3 comments
Closed

Error with import geemap on Jupyter Notebook #2015

mirizarry-ortiz opened this issue May 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@mirizarry-ortiz
Copy link

mirizarry-ortiz commented May 16, 2024

Environment Information

Please run the following code on your computer and share the output with us so that we can better debug your issue:

import geemap
geemap.Report()

Description

I cannot even import geemap into a Jupyter Notebook.
I get this error:
Please restart Jupyter kernel after installation if you encounter any errors when importing geemap. File "C:\ProgramData\Anaconda3\lib\site-packages\geemap\geemap.py", line 935 if layer_manager := self._layer_manager: ^ SyntaxError: invalid syntax

What I Did

I tried updating all the packages in my conda environment and that did not help.
@mirizarry-ortiz mirizarry-ortiz added the bug Something isn't working label May 16, 2024
@giswqs
Copy link
Member

giswqs commented May 16, 2024

Try creating a fresh conda env to install geemap. You should not install packages to the base env. It is likely your base env is corrupted.

conda create -n gee python=3.11
conda activate gee
conda install geemap -c conda-forge

@mirizarry-ortiz
Copy link
Author

Great! Thanks so much. Will try that!

@giswqs
Copy link
Member

giswqs commented May 16, 2024

Feel free to reopen the issue if the problem persists with a new conda env

@giswqs giswqs closed this as completed May 16, 2024
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

No branches or pull requests

2 participants