issue_comments: 530182624
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/pull/3199#issuecomment-530182624 | https://api.github.com/repos/pydata/xarray/issues/3199 | 530182624 | MDEyOklzc3VlQ29tbWVudDUzMDE4MjYyNA== | 1197350 | 2019-09-11T01:36:23Z | 2019-09-11T01:36:23Z | MEMBER | It looks like the doc build is failing with this error ``` Sphinx parallel build error: nbsphinx.NotebookError: CellExecutionError in examples/ERA5-GRIB-example.ipynb: ds = xr.load_dataset('data/era5-2mt-2019-03-uk.grib', engine='cfgrib')--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-2-90ecf53ec89c> in <module> ----> 1 ds = xr.load_dataset('data/era5-2mt-2019-03-uk.grib', engine='cfgrib') ~/work/1/s/xarray/backends/api.py in load_dataset(filename_or_obj, kwargs) 256 raise TypeError("cache has no effect in this context") 257 --> 258 with open_dataset(filename_or_obj, kwargs) as ds: 259 return ds.load() 260 ~/work/1/s/xarray/backends/api.py in open_dataset(filename_or_obj, group, decode_cf, mask_and_scale, decode_times, autoclose, concat_characters, decode_coords, engine, chunks, lock, cache, drop_variables, backend_kwargs, use_cftime) 516 elif engine == "cfgrib": 517 store = backends.CfGribDataStore( --> 518 filename_or_obj, lock=lock, **backend_kwargs 519 ) 520 ~/work/1/s/xarray/backends/cfgrib_.py in init(self, filename, lock, backend_kwargs) 41 lock = ECCODES_LOCK 42 self.lock = ensure_lock(lock) ---> 43 self.ds = cfgrib.open_file(filename, backend_kwargs) 44 45 def open_store_variable(self, name, var): /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/dataset.py in open_file(path, grib_errors, indexpath, filter_by_keys, kwargs)
601 ):
602 """Open a GRIB file as a /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/dataset.py in open_fileindex(path, grib_errors, indexpath, filter_by_keys) 594 filter_by_keys = dict(filter_by_keys) 595 stream = messages.FileStream(path, message_class=cfmessage.CfMessage, errors=grib_errors) --> 596 return stream.index(ALL_KEYS, indexpath=indexpath).subindex(filter_by_keys) 597 598 /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/messages.py in index(self, index_keys, indexpath) 235 def index(self, index_keys, indexpath='{path}.{short_hash}.idx'): 236 # type: (T.List[str], str) -> FileIndex --> 237 return FileIndex.from_indexpath_or_filestream(self, index_keys, indexpath) 238 239 /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/messages.py in from_indexpath_or_filestream(cls, filestream, index_keys, indexpath, log) 331 log.exception("Can't read index file %r", indexpath) 332 --> 333 return cls.from_filestream(filestream, index_keys) 334 335 def iter(self): /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/messages.py in from_filestream(cls, filestream, index_keys) 262 offsets = collections.OrderedDict() 263 count_offsets = {} # type: T.Dict[int, int] --> 264 for message in filestream: 265 header_values = [] 266 for key in index_keys: /usr/share/miniconda/envs/xarray-tests/lib/python3.7/site-packages/cfgrib/messages.py in iter(self) 208 def iter(self): 209 # type: () -> T.Generator[Message, None, None] --> 210 with open(self.path, 'rb') as file: 211 valid_message_found = False 212 while True: FileNotFoundError: [Errno 2] No such file or directory: '/home/vsts/work/1/s/doc/examples/data/era5-2mt-2019-03-uk.grib' FileNotFoundError: [Errno 2] No such file or directory: '/home/vsts/work/1/s/doc/examples/data/era5-2mt-2019-03-uk.grib' ``` It appears that you are loading the data from a local file, rather than from the tutorial datasets api. This won't work, because the local file is not available in the build environment. That's why we added it to the tutorial repo in https://github.com/pydata/xarray-data/pull/14. Can you try something like
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
479063574 |