Traceback (most recent call last):


 "/usr/local/lib/python3.5/asyncio/events.py", line 127, in _run

self._callback(*self._args)


 "/usr/local/lib/python3.5/site-packages/twisted/internet/asyncioreactor.py", line 290, in run

f(*args, **kwargs)


 "/usr/local/lib/python3.5/site-packages/daphne/server.py", line 213, in application_checker

if not application_instance.done():
AttributeError: 'NoneType' object has no attribute 'done'

Traceback (most recent call last):


 "datetime_problem.py", line 11, in <module>

ds.sel(dates=ds.dates.values[2])


 "/Users/leifdenby/miniconda3/envs/lagtraj/lib/python3.8/site-packages/xarray/core/dataset.py", line 2101, in sel

pos_indexers, new_indexes = remap_label_indexers(


 "/Users/leifdenby/miniconda3/envs/lagtraj/lib/python3.8/site-packages/xarray/core/coordinates.py", line 396, in remap_label_indexers

pos_indexers, new_indexes = indexing.remap_label_indexers(


 "/Users/leifdenby/miniconda3/envs/lagtraj/lib/python3.8/site-packages/xarray/core/indexing.py", line 270, in remap_label_indexers

idxr, new_idx = convert_label_indexer(index, label, dim, method, tolerance)


 "/Users/leifdenby/miniconda3/envs/lagtraj/lib/python3.8/site-packages/xarray/core/indexing.py", line 189, in convert_label_indexer

indexer = index.get_loc(


 "/Users/leifdenby/miniconda3/envs/lagtraj/lib/python3.8/site-packages/pandas/core/indexes/datetimes.py", line 622, in get_loc

raise KeyError(key)
KeyError: 946857600000000000
