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
I totally forgot to open up this issue last September, but I wanted to keep it on record in this repo.
In this xCDAT issue , a user found thatcf_xarray=0.7.0 breaks if xarray>=2022.6.0 is installed due to the import of module xr.core.resample.Resample. Maybe this module was moved to another location in the xarray codebase in that version?
Solution
Direct user solution: upgrade/install cf_xarray >=0.7.3 (this is what we found to work)
Developer solution: maybe a patch to constrain xarray>=2022.6.0 in the conda-forge feedstock?
Minimum example
Create and activate the environment (conda or mamba)
>>> import cf_xarray
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/global/homes/v/vo13/mambaforge/envs/cf-xarray-bug/lib/python3.11/site-packages/cf_xarray/__init__.py", line 1, in<module>
from .accessor import CFAccessor # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/global/homes/v/vo13/mambaforge/envs/cf-xarray-bug/lib/python3.11/site-packages/cf_xarray/accessor.py", line 41, in<module>
xr.core.resample.Resample,
^^^^^^^^^^^^^^^^
AttributeError: module 'xarray.core' has no attribute 'resample'
The text was updated successfully, but these errors were encountered:
tomvothecoder
changed the title
[Bug]: cf_xarray=0.7.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'
[Bug]: cf_xarray=0.7.0 + xarray>=2022.6.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'Sep 14, 2023
tomvothecoder
changed the title
[Bug]: cf_xarray=0.7.0 + xarray>=2022.6.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'
[Bug]: cf_xarray<0.7.4 + xarray>=2022.6.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'Sep 14, 2023
tomvothecoder
changed the title
[Bug]: cf_xarray<0.7.4 + xarray>=2022.6.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'
[Bug]: cf_xarray<0.7.3 + xarray>=2022.6.0 breaks with AttributeError: module 'xarray.core' has no attribute 'resample'Sep 14, 2023
I totally forgot to open up this issue last September, but I wanted to keep it on record in this repo.
In this xCDAT issue , a user found that
cf_xarray=0.7.0
breaks ifxarray>=2022.6.0
is installed due to the import of modulexr.core.resample.Resample
. Maybe this module was moved to another location in the xarray codebase in that version?Solution
cf_xarray >=0.7.3
(this is what we found to work)xarray>=2022.6.0
in the conda-forge feedstock?Minimum example
Create and activate the environment (conda or mamba)
Log Output
The text was updated successfully, but these errors were encountered: