ProjectPythia / intake-cookbook

Cookbook showing use of Intake
https://projectpythia.org/intake-cookbook/
Apache License 2.0
1 stars 4 forks source link

Builds failing on `intake.open_csv()` #33

Closed brian-rose closed 4 days ago

brian-rose commented 6 months ago

As of last month, the nightly build is failing

Failure occurs on the line

source = intake.open_csv('inventory.csv', csv_kwargs={'keep_default_na': False})

with

AttributeError: Unknown open method 'open_csv'. Do you need to install a new driver from the plugin directory? https://intake.readthedocs.io/en/latest/plugin-directory.html
Registered opener methods: ['open_netcdf', 'open_opendap', 'open_rasterio', 'open_remote-xarray', 'open_xarray_image', 'open_zarr', 'open_markdown', 'open_yaml_file_cat', 'open_yaml_files_cat', 'open_remote_xarray']

The timing of the failure seems to coincide with the release of Intake 2.0.

From the Intake docs, one of the features that was removed in 2.0 included

  • some niche source features such as CSV file pattern matching

The short term fix is probably just to pin to Intake < 2.0

brian-rose commented 6 months ago

I started looking at this because of an apparent issue with Intake in the xbatcher-ML-1 cookbook

brian-rose commented 6 months ago

However, since the purpose of this Cookbook is to demonstrate Intake usage, it doesn't make much sense to keep it pinned to an old version of Intake.

brian-rose commented 6 months ago

Any thoughts on this @jnmorley ?

erogluorhan commented 4 days ago

@jukent you seem to have the second largest contributions to this cookbook (I know they were mostly on configs and repair though). We are pinging the authors of failing cookbooks; would you mind having a look at this one as there has been no response from @jnmorley yet?

jukent commented 4 days ago

Thanks @erogluorhan I'll look into this today.

jukent commented 4 days ago

Build passing!

erogluorhan commented 4 days ago

Thanks a lot for quick fix!