NASA-IMPACT / veda-docs

Documentation for the VEDA Project
https://nasa-impact.github.io/veda-docs
Apache License 2.0
7 stars 7 forks source link

Investigate errors from gif-generation.ipynb #121

Open abarciauskas-bgse opened 9 months ago

abarciauskas-bgse commented 9 months ago

There are at least 2 issues in https://github.com/NASA-IMPACT/veda-docs/blob/ab/gif-gen-errors/notebooks/tutorials/gif-generation.ipynb to address.

  1. Similar to https://github.com/NASA-IMPACT/veda-docs/pull/118, the no2-monthly dataset is missing cog_default from summaries so in that PR and in this version of the gif-generation notebook I use the item's assets
  2. With ⬆️ we can proceed but there is an issue emanating from the webdriver_manager package when it drives to look up a browser version.

I also found that this instruction from the pypi homepage

# selenium 4
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))

throws the same error (I was hoping it might fix it)

smohiudd commented 3 months ago

I unblocked the cog_default error and made the ChromeDriverManager().install() changes but now getting this error when running cell 14:

WebDriverException: Message: Service [/home/jovyan/.wdm/drivers/chromedriver/linux64/114.0.5735.90/chromedriver](https://hub.openveda.cloud/user/smohiudd/lab/tree/veda-docs/notebooks/tutorials/.wdm/drivers/chromedriver/linux64/114.0.5735.90/chromedriver) unexpectedly exited. Status code was: 127
wildintellect commented 3 months ago

I recommend switching to Matplotlib static image generation with Contextly package for a basemap instead of folium/selenium to greatly reduced the complexity of generating the images for the gif frames.