Skip to content

Avoid calling the ._credentials attribute on gee obj#619

Merged
vergauwenthomas merged 2 commits intomasterfrom
fix_ee_bug
Mar 16, 2026
Merged

Avoid calling the ._credentials attribute on gee obj#619
vergauwenthomas merged 2 commits intomasterfrom
fix_ee_bug

Conversation

@vergauwenthomas
Copy link
Copy Markdown
Owner

Fix for #618

Copilot AI review requested due to automatic review settings March 16, 2026 14:58
@vergauwenthomas vergauwenthomas self-assigned this Mar 16, 2026
@vergauwenthomas vergauwenthomas merged commit cf48306 into master Mar 16, 2026
9 of 13 checks passed
@vergauwenthomas vergauwenthomas deleted the fix_ee_bug branch March 16, 2026 15:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the GEE authentication flow to avoid relying on the removed private ee.data._credentials attribute (issue #618), and bumps the package version to ship the fix.

Changes:

  • Update connect_to_gee() to authenticate after a failed ee.Initialize() without accessing ee.data._credentials.
  • Bump package version from 1.0.2 to 1.0.3 in both runtime and packaging metadata.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/metobs_toolkit/gee_api.py Removes use of ee.data._credentials and ensures authentication is attempted when default initialization fails.
src/metobs_toolkit/settings_collection/version.py Updates internal toolkit version to 1.0.3.
pyproject.toml Updates project/package version to 1.0.3.

You can also share your feedback on Copilot code review. Take the survey.

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

Successfully merging this pull request may close these issues.

AttributeError: module 'ee.data' has no attribute '_credentials'

2 participants