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 in rat test Command and Google Earth Engine Connection Issue #119

Closed
jamesYu365 opened this issue Nov 20, 2024 · 2 comments
Closed
Assignees
Labels
help wanted Extra attention is needed

Comments

@jamesYu365
Copy link

Issue 1: TypeError during rat test command execution
When running the rat test command:

rat test -d ./rat_project/ -b GUNNISON -s ./rat_project/params/secrets.ini

I encountered the following error message:

object address  : 0x7f5ab8cd83a0
object refcount : 3
object type     : 0x5570a836d1c0
object type name: TypeError
object repr     : TypeError("unsupported operand type(s) for -: 'datetime.date' and 'datetime.datetime'")
lost sys.stderr

Could you provide guidance on resolving this issue?

Issue 2: Failed to Connect to Earth Engine
I followed the instructions for setting up Google Earth Engine (GEE) credentials as outlined in the Getting Ready and configured the secrets.ini file based on the RAT Secrets File.

However, the log file indicates that the connection to Earth Engine failed with the message:

2024-11-20 09:05:21 INFO:init_logger>> -------------------- INITIALIZED RAT-logs LOG ------------------
2024-11-20 09:05:21 INFO:init_logger>> TIME: 2024-11-20 09:05:21.447852
2024-11-20 09:05:21 INFO:init_logger>> LOG LEVEL: DEBUG
2024-11-20 09:05:21 INFO:init_logger>> Logging To Console: False
2024-11-20 09:05:21 INFO:init_logger>> LOG FILE: /home/yubin/rat_project/data/test_output/runs/logs/RAT_run-20241120-090521.log
2024-11-20 09:05:21 INFO:init_logger>> NOTIFY: False
2024-11-20 09:05:21 INFO:init_logger>> ----------------------------------------------------------

2024-11-20 09:05:21 DEBUG:run_rat>> Initiating Dask Client ...
2024-11-20 09:05:23 DEBUG:run_rat>> Started client with 72 workers. Dashboard link: http://127.0.0.1:8787/status
2024-11-20 09:05:23 INFO:run_rat>> Checking earth engine credentials
2024-11-20 09:05:25 INFO:run_rat>> Failed to connect to Earth engine. Wrong credentials. If you want to use Surface Area Estimations from RAT, please update the EE credentials.
2024-11-20 09:05:25 INFO:run_rat>> ############## Starting RAT for gunnison #################

Below is the configuration in my secrets.ini file:

# Enter service account (account_email, path to private json key) for Google Earth Engine
[ee]
service_account=rat-china-yubin@rat-china-442207.iam.gserviceaccount.com
key_file=/home/yubin/rat_project/params/rat-china-442207-7949a2af3cce.json

Could you please assist in resolving this connection issue with Google Earth Engine?

@SarathUW SarathUW pinned this issue Nov 27, 2024
@SarathUW SarathUW added the help wanted Extra attention is needed label Nov 27, 2024
@SanchitMinocha
Copy link
Member

SanchitMinocha commented Nov 30, 2024

Thank you @jamesYu365 for raising the issue. It has been resolved in v3.0.15.

@SanchitMinocha SanchitMinocha self-assigned this Nov 30, 2024
@SarathUW
Copy link
Collaborator

SarathUW commented Nov 30, 2024

Note: This also fixes RAT-CWRDM issues with surface area computation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants