initze / noaaplotter_streamlit

streamlit app utilizing the noaaplotter package
MIT License
1 stars 0 forks source link

GEE initialize fails on deployed version #4

Open initze opened 1 year ago

initze commented 1 year ago

Error message

ee.ee_exception.EEException: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:

File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/app/noaaplotter_streamlit/streamlit_app.py", line 60, in <module>
    download_era5_from_gee(float(lat), float(lon), download_end, download_start, data_file)
File "/home/appuser/venv/lib/python3.9/site-packages/noaaplotter/download_utils.py", line 61, in download_era5_from_gee
    ee.Initialize()
File "/home/appuser/venv/lib/python3.9/site-packages/ee/__init__.py", line 130, in Initialize
    credentials = data.get_persistent_credentials()
File "/home/appuser/venv/lib/python3.9/site-packages/ee/data.py", line 224, in get_persistent_credentials
initze commented 1 year ago

Authenticate GEE https://medium.com/@mykolakozyr/using-google-earth-engine-in-a-streamlit-app-62c729793007