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

ee.Initialize() error #105

Closed
LightningRpper opened this issue Nov 15, 2021 · 6 comments
Closed

ee.Initialize() error #105

LightningRpper opened this issue Nov 15, 2021 · 6 comments

Comments

@LightningRpper
Copy link

Hello, I'm trying to run a Python file for Google Earth. That application unfortunately isn't taking python files so I'm trying to run it in VS code. When I put in this code here,
import ee ee.Initialize()
I get an error that says
Exception has occurred: AttributeError module 'collections' has no attribute 'Callable'
Why is it saying that and what can I do to fix it?

@gena
Copy link
Collaborator

gena commented Nov 15, 2021

Google Earth or Google Earth Engine?

That application unfortunately isn't taking python files
What application?

If your goal is just to run a Python script using EE API - you probably need to check https://developers.google.com/earth-engine/guides/python_install

@gena gena closed this as completed Nov 15, 2021
@LightningRpper
Copy link
Author

Google Earth or Google Earth Engine?

That application unfortunately isn't taking python files
What application?

If your goal is just to run a Python script using EE API - you probably need to check https://developers.google.com/earth-engine/guides/python_install

Google Earth. I input code that imported Earth Engine and initialized it to sync up with Google Earth but that has done nothing.

@gena
Copy link
Collaborator

gena commented Nov 15, 2021

Google Earth. I input code that imported Earth Engine and initialized it to sync up with Google Earth but that has done nothing.

But this is the repository for QGIS Earth Engine plugin, please ask questions about Google Earth maybe in https://support.google.com/earth/?hl=en#topic=7364880

@mnowatzki
Copy link

Hello, I'm trying to run a Python file for Google Earth. That application unfortunately isn't taking python files so I'm trying to run it in VS code. When I put in this code here, import ee ee.Initialize() I get an error that says Exception has occurred: AttributeError module 'collections' has no attribute 'Callable' Why is it saying that and what can I do to fix it?

Have you found a solution to this yet? Having the same issue...

@karina-marques
Copy link

I am having the same issue. Any help?

@XavierCLL
Copy link
Collaborator

XavierCLL commented Apr 7, 2022

Hi @mnowatzki @karina-marques @LightningRpper

The issue is not directly from this plugin, it comes from a library that uses ee that is not yet compatible with Python 3.10, the (temporal) solution is using (downgrade) the Qgis with a Python < 3.10 (alternative use the Qgis from Conda)

Related issue: https://github.com/google/earthengine-api/issues/181

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

5 participants