UCL-EO / Workshop2022

Using Earth observation for Crop Monitoring (iEOCM) Workshop
GNU General Public License v3.0
8 stars 8 forks source link

bug in Satellite script #29

Open profLewis opened 2 years ago

profLewis commented 2 years ago

Ive tried to run Fengs script standalone, with an environment from the yml file.

I get the error below. So, you need the retry package, which Ive put in the environment file. And will retry....

Platform not recognized, using system temp directory for PCSE settings. Platform not recognized, using system temp directory for PCSE settings. Building PCSE demo database at: /var/folders/qk/t8kmgc253rg566r5qy3wrq9w0000gn/T/.pcse/pcse.db ... OK

ModuleNotFoundError Traceback (most recent call last) File ~/Documents/GitHub/Workshop2022/notebooks/create_map.py:21, in 19 from map_utils import get_lai_gif, get_pixel, get_field_bounds, da_pix, get_lai_color_bar 20 from map_utils import debounce ---> 21 from wofost_utils import create_ensemble, wofost_parameter_sweep_func, get_era5_gee 22 from wofost_utils import ensemble_assimilation 24 from ipywidgets import Image as ImageWidget

File ~/Documents/GitHub/Workshop2022/notebooks/./python/wofost_utils.py:35, in 33 import pip 34 import shutil ---> 35 from retry import retry 37 try: 38 ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com/")

ModuleNotFoundError: No module named 'retry'

jgomezdans commented 2 years ago

Hi,

We're using a binder sandbox for this, not the local environment. So maybe best to mirror the sandbox in this repository.

-- Dr José L Gómez-Dans NERC National Centre for Earth Observation (NCEO) RSU ■ Dept. of Geography ■ University College London ■ Gower St, London WC1E 6BT UK Tel: +44 (0) 20 767 90590


From: Professor Philip Lewis @.> Sent: 12 March 2022 19:36 To: UCL-EO/Workshop2022 @.> Cc: Subscribed @.***> Subject: [UCL-EO/Workshop2022] bug in Satellite script (Issue #29)

⚠ Caution: External sender

Ive tried to run Fengs script standalone, with an environment from the yml file.

I get the error below. So, you need the retry package, which Ive put in the environment file. And will retry.... Platform not recognized, using system temp directory for PCSE settings. Platform not recognized, using system temp directory for PCSE settings. Building PCSE demo database at: /var/folders/qk/t8kmgc253rg566r5qy3wrq9w0000gn/T/.pcse/pcse.db ... OK

ModuleNotFoundError Traceback (most recent call last) File ~/Documents/GitHub/Workshop2022/notebooks/create_map.py:21, in 19 from map_utils import get_lai_gif, get_pixel, get_field_bounds, da_pix, get_lai_color_bar 20 from map_utils import debounce ---> 21 from wofost_utils import create_ensemble, wofost_parameter_sweep_func, get_era5_gee 22 from wofost_utils import ensemble_assimilation 24 from ipywidgets import Image as ImageWidget

File ~/Documents/GitHub/Workshop2022/notebooks/./python/wofost_utils.py:35, in 33 import pip 34 import shutil ---> 35 from retry import retry 37 try: 38 ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com/https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fearthengine-highvolume.googleapis.com%2F&data=04%7C01%7Cj.gomez-dans%40ucl.ac.uk%7Ce3703de7ca5f435206d908da045fa554%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637827106094836313%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=HugoZvAUB%2FkaekE4qlHz9FvDieLj2edHlSlwxXoDMx4%3D&reserved=0")

ModuleNotFoundError: No module named 'retry'

— Reply to this email directly, view it on GitHubhttps://github.com/UCL-EO/Workshop2022/issues/29, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AABCAKEJFPD5VAYQ5DIBGU3U7TW43ANCNFSM5QSJCB6Q. Triage notifications on the go with GitHub Mobile for iOShttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cj.gomez-dans%40ucl.ac.uk%7Ce3703de7ca5f435206d908da045fa554%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637827106094836313%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=O47r1pknaUrOyDtse5vuN3Fsy6eA%2BrwLa2YiaSaeJZ4%3D&reserved=0 or Androidhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cj.gomez-dans%40ucl.ac.uk%7Ce3703de7ca5f435206d908da045fa554%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637827106094836313%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wBJ8eoMhVs9o6b9DzWAjqF1fH56JlAzRHYYm1bfqE0c%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>