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/issues/6662#issuecomment-1146377099,https://api.github.com/repos/pydata/xarray/issues/6662,1146377099,IC_kwDOAMm_X85EVFOL,1197350,2022-06-03T21:30:48Z,2022-06-03T21:30:48Z,MEMBER,"Following up on the suggestion from @shoyer in to not use a context manager, if I redefine my function as ```python def open_pickle_and_reload(path): of = fsspec.open(path, mode='rb').open() ds1 = xr.open_dataset(of, engine='h5netcdf') # pickle it and reload it ds2 = loads(dumps(ds1)) ds2.load() ``` ...it appears to work fine.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1260047355 https://github.com/pydata/xarray/issues/6662#issuecomment-1146184372,https://api.github.com/repos/pydata/xarray/issues/6662,1146184372,IC_kwDOAMm_X85EUWK0,1197350,2022-06-03T17:05:00Z,2022-06-03T17:06:26Z,MEMBER,"```python with fsspec.open('http://127.0.0.1:8000/tiny.nc', mode='rb') as fp: with xr.open_dataset(fp, engine='h5netcdf') as ds1: print(type(fp)) print(fp.__dict__) ds1.load() ``` ``` {'asynchronous': False, 'url': 'http://127.0.0.1:8000/tiny.nc', 'session': , '_details': {'name': 'http://127.0.0.1:8000/tiny.nc', 'size': 6164, 'type': 'file'}, 'size': 6164, 'path': 'http://127.0.0.1:8000/tiny.nc', 'fs': , 'mode': 'rb', 'blocksize': 5242880, 'loc': 1075, 'autocommit': True, 'end': None, 'start': None, '_closed': False, 'kwargs': {}, 'cache': , 'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>} ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1260047355 https://github.com/pydata/xarray/issues/6662#issuecomment-1146159832,https://api.github.com/repos/pydata/xarray/issues/6662,1146159832,IC_kwDOAMm_X85EUQLY,6042212,2022-06-03T16:34:44Z,2022-06-03T16:34:44Z,CONTRIBUTOR,Can you please explicitly check the `type` and `__dict__` of `fp`?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1260047355 https://github.com/pydata/xarray/issues/6662#issuecomment-1146119478,https://api.github.com/repos/pydata/xarray/issues/6662,1146119478,IC_kwDOAMm_X85EUGU2,1197350,2022-06-03T16:04:21Z,2022-06-03T16:05:40Z,MEMBER,"The `http.server` apparently does not accept range requests. That could definitely be related. However, I don't understand why that would affect only the pickled version. If the server doesn't support range requests, how are we able to load the file at all? This works: ```python with fsspec.open('http://127.0.0.1:8000/tiny.nc', mode='rb') as fp: with xr.open_dataset(fp, engine='h5netcdf') as ds1: ds1.load() ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1260047355 https://github.com/pydata/xarray/issues/6662#issuecomment-1146099479,https://api.github.com/repos/pydata/xarray/issues/6662,1146099479,IC_kwDOAMm_X85EUBcX,1197350,2022-06-03T15:54:34Z,2022-06-03T15:54:34Z,MEMBER,"> Python's HTTP server does not normally provide content lengths without some extra work, that might be the difference. Don't think that's it. ``` % curl -I ""http://127.0.0.1:8000/tiny.nc"" HTTP/1.0 200 OK Server: SimpleHTTP/0.6 Python/3.9.9 Date: Fri, 03 Jun 2022 15:53:52 GMT Content-type: application/x-netcdf Content-Length: 6164 Last-Modified: Fri, 03 Jun 2022 15:00:52 GMT ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1260047355 https://github.com/pydata/xarray/issues/6662#issuecomment-1146079311,https://api.github.com/repos/pydata/xarray/issues/6662,1146079311,IC_kwDOAMm_X85ET8hP,6042212,2022-06-03T15:30:17Z,2022-06-03T15:30:17Z,CONTRIBUTOR,"Python's HTTP server does not normally provide content lengths without some extra work, that might be the difference.","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 1}",,1260047355