I am stuck with the following error from the wasm-exported notebook that relies on netcdf4 and xarray.
OSError
This cell raised an exception: OSError('[Errno -128] NetCDF: Attempt to use feature that was not turned on when netCDF was built.:
This notebook relies on netCDF4 library indirectly through xarray as the driver library for netCDF I/O.
I do not have a deep understanding on how wasm or wasm export works, but it seemed that if I do not directly do
import netCDF4
, this dependency does not register with wasm.
- Is putting in
import netCDF4
(although it is not used directly) the best way to specify these indirect dependencies when exporting to wasm or is there a better way?
- How can I solve the OSError above? I have been working on this notebook for a while, and this error was not present in the same wasm-exported notebook ~1 month ago. It sounds like something on the pyodide side... but I'm stuck.
Thank you!