Skip to content

Instantly share code, notes, and snippets.

@epifanio
Created November 18, 2020 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epifanio/dac53dde203cfbc77f143f1c54f45496 to your computer and use it in GitHub Desktop.
Save epifanio/dac53dde203cfbc77f143f1c54f45496 to your computer and use it in GitHub Desktop.
2020-11-18 14:39:40,058 Starting Bokeh server version 2.2.3 (running on Tornado 5.1.1)
2020-11-18 14:39:40,059 User authentication hooks NOT provided (default user enabled)
2020-11-18 14:39:40,070 Bokeh app running at: http://0.0.0.0:5100/test/TS-Plot
2020-11-18 14:39:40,070 Bokeh app running at: http://0.0.0.0:5100/test/prototype
2020-11-18 14:39:40,070 Bokeh app running at: http://0.0.0.0:5100/test/pybasket
2020-11-18 14:39:40,070 Starting Bokeh server with process id: 6
Cookie file cannot be read and written: (null)
Cookie file cannot be read and written: (null)
bokeh.application.application - ERROR - Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7f8693965520>: [Errno -37] NetCDF: Write to read only: b'https://hyrax.epinux.com/opendap/ctdiaoos_gi2007_2009.nc'
File "_netCDF4.pyx", line 1885, in netCDF4._netCDF4._ensure_nc_success:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/file_manager.py", line 199, in _acquire_with_cache_info
file = self._cache[self._key]
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/lru_cache.py", line 53, in __getitem__
value = self._cache[key]
KeyError: [<class 'netCDF4._netCDF4.Dataset'>, ('https://hyrax.epinux.com/opendap/ctdiaoos_gi2007_2009.nc',), 'r', (('clobber', True), ('diskless', False), ('format', 'NETCDF4'), ('persist', False))]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/TS-Plot/nc_transform.py", line 50, in get_plottable_variables
ds = xr.open_dataset(nc_url)
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/api.py", line 508, in open_dataset
store = backends.NetCDF4DataStore.open(
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/netCDF4_.py", line 358, in open
return cls(manager, group=group, mode=mode, lock=lock, autoclose=autoclose)
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/netCDF4_.py", line 314, in __init__
self.format = self.ds.data_model
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/netCDF4_.py", line 367, in ds
return self._acquire()
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/netCDF4_.py", line 361, in _acquire
with self._manager.acquire_context(needs_lock) as root:
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/file_manager.py", line 187, in acquire_context
file, cached = self._acquire_with_cache_info(needs_lock)
File "/usr/local/lib/python3.8/dist-packages/xarray/backends/file_manager.py", line 205, in _acquire_with_cache_info
file = self._opener(*self._args, **kwargs)
File "netCDF4/_netCDF4.pyx", line 2321, in netCDF4._netCDF4.Dataset.__init__
File "netCDF4/_netCDF4.pyx", line 1885, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -37] NetCDF: Write to read only: b'https://hyrax.epinux.com/opendap/ctdiaoos_gi2007_2009.nc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/bokeh/application/handlers/code_runner.py", line 197, in run
exec(self._code, module.__dict__)
File "/TS-Plot/main.py", line 397, in <module>
data = get_data(nc_url)
File "/TS-Plot/main.py", line 46, in get_data
variables_dict = get_plottable_variables(resource_url)
File "/TS-Plot/nc_transform.py", line 68, in get_plottable_variables
nc_fid = Dataset(nc_url, 'r')
File "netCDF4/_netCDF4.pyx", line 2321, in netCDF4._netCDF4.Dataset.__init__
File "netCDF4/_netCDF4.pyx", line 1885, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -37] NetCDF: Write to read only: b'https://hyrax.epinux.com/opendap/ctdiaoos_gi2007_2009.nc'
Compilation failed:
FileError: './node_modules/font-awesome/less/screen-reader.less' wasn't found. Tried - /TS-Plot/fontawesome/node_modules/font-awesome/less/screen-reader.less,node_modules/font-awesome/less/screen-reader.less in /TS-Plot/fontawesome/fontawesome.less on line 28, column 5:
27 @import "@{font-awesome}/less/icons.less";
28 @import "@{font-awesome}/less/screen-reader.less";
29 }
#################### VAR CHECK 1 ######################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment