Error using geemap in ArcPy "AttributeError: module 'ee.data' has no attribute '_credentials" #2319
Replies: 5 comments 3 replies
-
|
I'm having the same problem. I'm using a Jupyter Notebook, with a conda environment and updated packages. ee version 1.6.12 .. 'll follow along to see if I can find a solution. |
Beta Was this translation helpful? Give feedback.
-
|
I'm also having a similar problem. I've created new environments as well. Up until this point, geemap was working fine. |
Beta Was this translation helpful? Give feedback.
-
|
same issue here! GEE was working in an older environment, but I did a fresh install and now ee.Authenticate() returns "True", and the ee.Initialize("project_name") seems to run, but I get the same error when I try to create a map instance: m = geemap.Map() ..... |
Beta Was this translation helpful? Give feedback.
-
|
Try Map = geemap.Map(ee_initialize=False)
…On Tue, Oct 21, 2025 at 7:48 AM Joseph Shea ***@***.***> wrote:
same issue here! GEE was working in an older environment, but I did a
fresh install and now ee.Authenticate() returns "True", and the
ee.Initialize("project_name") seems to run, but I get the same error when I
try to create a map instance:
AttributeError: module 'ee.data' has no attribute '_credentials'
—
Reply to this email directly, view it on GitHub
<#2319 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5J3HQKX6LSMSNDAO3DBIL3YVYERAVCNFSM6AAAAACJGYNPXSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINZTGQ2DIOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
Try updating the ee package using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a python conda environment in ArcGIS to download Landsat collections using Google Earth Engine and I am running into this issue just when calling
Map = geemap.Map()I get this error
`Cell In[19], line 3
1 ee.Initialize()
2 ee.Authenticate()
----> 3 Map = geemap.Map()
File ~\AppData\Local\ESRI\conda\envs\max_arcpy_env\Lib\site-packages\geemap\geemap.py:158, in Map.init(self, **kwargs)
156 self._USER_AGENT_PREFIX = "geemap"
157 self.kwargs = kwargs
--> 158 super().init(**kwargs)
159 self._var_name = "Map" # The Map variable name for converting JS to Python
161 if kwargs.get("height"):
File ~\AppData\Local\ESRI\conda\envs\max_arcpy_env\Lib\site-packages\geemap\core.py:753, in Map.init(self, **kwargs)
751 # Authenticate and initialize EE.
752 if kwargs.get("ee_initialize", True):
--> 753 coreutils.ee_initialize(user_agent_prefix=self._USER_AGENT_PREFIX)
755 # Listen for layers being added/removed so we can update the layer manager.
756 self.observe(self._on_layers_change, "layers")
File ~\AppData\Local\ESRI\conda\envs\max_arcpy_env\Lib\site-packages\geemap\coreutils.py:75, in ee_initialize(token_name, auth_mode, auth_args, user_agent_prefix, project, **kwargs)
72 user_agent = f"{user_agent_prefix}/{version}"
73 ee.data.setUserAgent(user_agent)
---> 75 if ee.data._credentials is not None:
76 return
78 ee_token = get_env_var(token_name)
AttributeError: module 'ee.data' has no attribute '_credentials'`
It seems like an authentication error, but my other GEE code runs, and when I pass ee.Authorize() it comes back true. Not sure what the problem could be! Thanks for reading.
Beta Was this translation helpful? Give feedback.
All reactions