You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I run it, I get this error code:
Traceback (most recent call last):
File ~/anaconda3/lib/python3.10/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/Downloads/untitled3.py:30
data = xr.open_dataset(NetCDF4DataStore(data))
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:323 in init
self.format = self.ds.data_model
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:385 in ds
return self._acquire()
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:379 in _acquire
with self._manager.acquire_context(needs_lock) as root:
AttributeError: 'bytes' object has no attribute 'acquire_context'
I have not changed anything from the code given from unidata, as I'm just learning how to do this in general, but from what I've read this might have something to do with python3? Any help would be appreciated in resolving this issue.
The text was updated successfully, but these errors were encountered:
Thanks for opening your first issue here at xarray! Be sure to follow the issue template!
If you have an idea for a solution, we would really welcome a Pull Request with proposed changes.
See the Contributing Guide for more.
It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better.
Thank you!
@Cjseng - we'll need a reproducer and additional information about your system to help you here. Would you mind opening a new issue with the details filled out in our Bug Report form.
What is your issue?
I am attempting to follow this example code here:
https://unidata.github.io/python-training/workshop/Bonus/downloading-gfs-with-siphon/
However, when I run it, I get this error code:
Traceback (most recent call last):
File ~/anaconda3/lib/python3.10/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/Downloads/untitled3.py:30
data = xr.open_dataset(NetCDF4DataStore(data))
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:323 in init
self.format = self.ds.data_model
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:385 in ds
return self._acquire()
File ~/anaconda3/lib/python3.10/site-packages/xarray/backends/netCDF4_.py:379 in _acquire
with self._manager.acquire_context(needs_lock) as root:
AttributeError: 'bytes' object has no attribute 'acquire_context'
I have not changed anything from the code given from unidata, as I'm just learning how to do this in general, but from what I've read this might have something to do with python3? Any help would be appreciated in resolving this issue.
The text was updated successfully, but these errors were encountered: