Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to download GFS data via Siphon-- Get an xarray error #8426

Closed
Cjseng opened this issue Nov 8, 2023 · 2 comments
Closed

Trying to download GFS data via Siphon-- Get an xarray error #8426

Cjseng opened this issue Nov 8, 2023 · 2 comments
Labels
needs triage Issue that has not been reviewed by xarray team member

Comments

@Cjseng
Copy link

Cjseng commented Nov 8, 2023

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.

@Cjseng Cjseng added the needs triage Issue that has not been reviewed by xarray team member label Nov 8, 2023
Copy link

welcome bot commented Nov 8, 2023

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!

@jhamman
Copy link
Member

jhamman commented Nov 8, 2023

@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.

@jhamman jhamman closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue that has not been reviewed by xarray team member
Projects
None yet
Development

No branches or pull requests

2 participants