Closed matteodefelice closed 2 years ago
@matteodefelice - I'm curious what version of cf_xarray
you have? It isn't showing up in your Environment list.
I have the 0.7.0, this is the output of my conda list:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
aiohttp 3.8.1 py310h7f8727e_1
aiosignal 1.2.0 pyhd8ed1ab_0 conda-forge
alsa-lib 1.2.3 h516909a_0 conda-forge
anyio 3.5.0 py310h06a4308_0
appdirs 1.4.4 pyh9f0ad1d_0 conda-forge
argon2-cffi 21.3.0 pyhd8ed1ab_0 conda-forge
argon2-cffi-bindings 21.2.0 py310h7f8727e_0
asciitree 0.3.3 py_2 conda-forge
asttokens 2.0.5 pyhd8ed1ab_0 conda-forge
async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge
attrs 21.4.0 pyhd8ed1ab_0 conda-forge
babel 2.9.1 pyhd3eb1b0_0
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.1 pyhd3eb1b0_0
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
beautifulsoup4 4.11.1 py310h06a4308_0
blas 1.0 openblas
bleach 4.1.0 pyhd8ed1ab_0 conda-forge
blinker 1.4 py310h06a4308_0
bokeh 2.4.3 py310h06a4308_0
bottleneck 1.3.5 py310ha9d4c09_0
brotli 1.0.9 h5eee18b_7
brotli-bin 1.0.9 h5eee18b_7
brotlipy 0.7.0 py310h7f8727e_1002
bzip2 1.0.8 h7b6447c_0
c-ares 1.18.1 h7f8727e_0
ca-certificates 2022.07.19 h06a4308_0
cached-property 1.5.2 hd8ed1ab_1 conda-forge
cached_property 1.5.2 pyha770c72_1 conda-forge
cachetools 5.0.0 pyhd8ed1ab_0 conda-forge
cartopy 0.20.2 py310he9c7799_3 conda-forge
cdsapi 0.5.1 pyhd8ed1ab_0 conda-forge
certifi 2022.6.15.1 pyhd8ed1ab_0 conda-forge
cf_xarray 0.7.0 pyhd8ed1ab_0 conda-forge
cffi 1.15.1 py310h74dc2b5_0
cfgrib 0.9.10.0 pyhd8ed1ab_0 conda-forge
cftime 1.6.0 py310hde88566_0 conda-forge
charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge
click 8.0.4 py310h06a4308_0
cloudpickle 2.0.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.5 py310h06a4308_0
cryptography 37.0.1 py310h9ce1e76_0
curl 7.83.1 h2283fc2_0 conda-forge
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
cytoolz 0.11.2 py310h6acc77f_1 conda-forge
dask 2022.5.0 py310h06a4308_0
dask-core 2022.5.0 py310h06a4308_0
dbus 1.13.6 h5008d03_3 conda-forge
debugpy 1.5.1 py310h295c915_0
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
distributed 2022.5.0 py310h06a4308_0
eccodes 2.24.2 h11d1a29_0 conda-forge
entrypoints 0.4 py310h06a4308_0
esmf 8.2.0 mpi_mpich_h4975321_100 conda-forge
esmpy 8.2.0 mpi_mpich_py310hd9c82d4_101 conda-forge
executing 0.8.3 pyhd8ed1ab_0 conda-forge
expat 2.4.6 h27087fc_0 conda-forge
fasteners 0.17.3 pyhd8ed1ab_0 conda-forge
fastprogress 1.0.3 pyhd8ed1ab_0 conda-forge
findlibs 0.0.2 pyhd8ed1ab_0 conda-forge
flit-core 3.7.1 pyhd8ed1ab_0 conda-forge
font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge
font-ttf-inconsolata 3.000 h77eed37_0 conda-forge
font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge
font-ttf-ubuntu 0.83 hab24e00_0 conda-forge
fontconfig 2.13.96 ha180cfb_0 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 0 conda-forge
fonttools 4.29.1 py310h6acc77f_0 conda-forge
freeglut 3.2.2 h9c3ff4c_1 conda-forge
freetype 2.11.0 h70c0345_0
frozenlist 1.3.0 py310h5764c6d_1 conda-forge
fsspec 2022.7.1 py310h06a4308_0
gcsfs 2022.7.1 pyhd8ed1ab_0 conda-forge
geos 3.10.2 h9c3ff4c_0 conda-forge
gettext 0.21.0 hf68c758_0
giflib 5.2.1 h7b6447c_0
google-api-core 2.8.2 pyhd8ed1ab_0 conda-forge
google-auth 2.9.1 pyh6c4a22f_0 conda-forge
google-auth-oauthlib 0.5.2 py310h06a4308_0
google-cloud-core 2.3.2 pyhd8ed1ab_0 conda-forge
google-cloud-storage 2.4.0 pyh6c4a22f_0 conda-forge
google-crc32c 1.1.2 py310h7f8727e_0
google-resumable-media 2.3.3 pyhd8ed1ab_0 conda-forge
googleapis-common-protos 1.56.4 py310h06a4308_0
grpcio 1.46.1 py310hba10ccf_0 conda-forge
gst-plugins-base 1.18.5 hf529b03_3 conda-forge
gstreamer 1.18.5 h9f60fe5_3 conda-forge
h5netcdf 0.14.1 pyhd8ed1ab_0 conda-forge
h5py 3.6.0 nompi_py310he751f51_100 conda-forge
hdf4 4.2.15 h10796ff_3 conda-forge
hdf5 1.12.1 mpi_mpich_h5d83325_4 conda-forge
heapdict 1.0.1 py_0 conda-forge
icu 69.1 h9c3ff4c_0 conda-forge
idna 3.3 pyhd8ed1ab_0 conda-forge
importlib-metadata 4.11.3 py310h06a4308_0
importlib_metadata 4.11.3 hd3eb1b0_0
importlib_resources 5.4.0 pyhd8ed1ab_0 conda-forge
intake 0.6.5 pyhd8ed1ab_0 conda-forge
intake-esm 2021.8.17 pyhd8ed1ab_0 conda-forge
ipykernel 6.15.2 py310h06a4308_0
ipython 8.4.0 py310h06a4308_0
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.6.5 pyhd3eb1b0_1
jasper 2.0.33 ha77e612_0 conda-forge
jbig 2.1 hdba287a_0
jedi 0.18.1 py310h06a4308_1
jinja2 3.0.3 pyhd8ed1ab_0 conda-forge
joblib 1.1.0 pyhd8ed1ab_0 conda-forge
jpeg 9e h7f8727e_0
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.4.0 py310h06a4308_0
jupyter 1.0.0 py310h06a4308_8
jupyter_client 7.3.5 py310h06a4308_0
jupyter_console 6.4.3 pyhd3eb1b0_0
jupyter_core 4.10.0 py310h06a4308_0
jupyter_server 1.18.1 py310h06a4308_0
jupyterlab 3.4.4 py310h06a4308_0
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
jupyterlab_server 2.12.0 py310h06a4308_0
jupyterlab_widgets 1.0.2 pyhd8ed1ab_0 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
kiwisolver 1.4.2 py310h295c915_0
krb5 1.19.3 h08a2579_0 conda-forge
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
lerc 3.0 h295c915_0
libaec 1.0.6 h9c3ff4c_0 conda-forge
libblas 3.9.0 13_linux64_openblas conda-forge
libbrotlicommon 1.0.9 h5eee18b_7
libbrotlidec 1.0.9 h5eee18b_7
libbrotlienc 1.0.9 h5eee18b_7
libcblas 3.9.0 13_linux64_openblas conda-forge
libclang 13.0.1 default_hc23dcda_0 conda-forge
libcrc32c 1.1.2 h9c3ff4c_0 conda-forge
libcurl 7.83.1 h2283fc2_0 conda-forge
libdeflate 1.10 h7f98852_0 conda-forge
libedit 3.1.20210910 h7f8727e_0
libev 4.33 h7f8727e_1
libevent 2.1.10 h28343ad_4 conda-forge
libffi 3.4.2 h295c915_4
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgfortran-ng 11.2.0 h00389a5_1
libgfortran5 11.2.0 h1234567_1
libglib 2.70.2 h174f98d_4 conda-forge
libglu 9.0.0 hf484d3e_1
libgomp 12.1.0 h8d9b700_16 conda-forge
libiconv 1.16 h7f8727e_2
liblapack 3.9.0 13_linux64_openblas conda-forge
libllvm11 11.1.0 h9e868ea_5
libllvm13 13.0.1 hf817b99_2 conda-forge
libnetcdf 4.8.1 mpi_mpich_h319fa22_1 conda-forge
libnghttp2 1.47.0 he49606f_0 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libogg 1.3.5 h27cfd23_1
libopenblas 0.3.18 pthreads_h8fe5266_0 conda-forge
libopus 1.3.1 h7b6447c_0
libpng 1.6.37 hbc83047_0
libpq 14.4 he2d8382_0 conda-forge
libprotobuf 3.20.1 h4ff587b_0
libsodium 1.0.18 h7b6447c_0
libssh2 1.10.0 ha35d2d1_2 conda-forge
libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge
libtiff 4.3.0 h542a066_3 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libvorbis 1.3.7 h7b6447c_0
libwebp 1.2.2 h55f646e_0
libwebp-base 1.2.2 h7f8727e_0
libxcb 1.13 h1bed415_1
libxkbcommon 1.0.3 he3ba5ed_0 conda-forge
libxml2 2.9.12 h885dcf4_1 conda-forge
libzip 1.9.2 hc929e4a_0 conda-forge
libzlib 1.2.12 h166bdaf_2 conda-forge
llvmlite 0.38.1 py310h58363a5_0 conda-forge
locket 1.0.0 py310h06a4308_0
lz4 3.1.3 py310h7f8727e_0
lz4-c 1.9.3 h295c915_1
markupsafe 2.1.1 py310h7f8727e_0
matplotlib 3.5.2 py310h06a4308_0
matplotlib-base 3.5.2 py310hf590b9c_0
matplotlib-inline 0.1.6 py310h06a4308_0
mistune 0.8.4 py310h7f8727e_1000
mpi 1.0 mpich
mpi4py 3.1.3 py310h853ac07_0 conda-forge
mpich 4.0.1 h846660c_100 conda-forge
msgpack-python 1.0.3 py310hd09550d_0
multidict 6.0.2 py310h5764c6d_1 conda-forge
munkres 1.1.4 pyh9f0ad1d_0 conda-forge
mysql-common 8.0.29 h26416b9_1 conda-forge
mysql-libs 8.0.29 hbc51c84_1 conda-forge
nbclassic 0.3.5 pyhd3eb1b0_0
nbclient 0.5.13 py310h06a4308_0
nbconvert 6.4.4 py310h06a4308_0
nbformat 5.3.0 py310h06a4308_0
ncurses 6.3 h5eee18b_3
nest-asyncio 1.5.5 py310h06a4308_0
netcdf-fortran 4.5.4 mpi_mpich_h1364a43_0 conda-forge
netcdf4 1.5.8 nompi_py310hd7ca5b8_101 conda-forge
notebook 6.4.12 py310h06a4308_0
nspr 4.33 h295c915_0
nss 3.74 h0370c37_0
numba 0.55.2 py310ha5257ce_0 conda-forge
numcodecs 0.9.1 py310h122e73d_2 conda-forge
numexpr 2.7.3 py310hfd7a2a2_1
numpy 1.22.4 py310h4ef5377_0 conda-forge
oauthlib 3.2.0 pyhd3eb1b0_1
openjpeg 2.4.0 h3ad879b_0
openssl 3.0.5 h166bdaf_2 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.4.3 py310h6a678d5_0
pandoc 2.17.1.1 ha770c72_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parameterized 0.8.1 pypi_0 pypi
parso 0.8.3 pyhd8ed1ab_0 conda-forge
partd 1.2.0 pyhd3eb1b0_1
patsy 0.5.2 py310h06a4308_1
pcre 8.45 h295c915_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 py_1003 conda-forge
pillow 9.2.0 py310hace64e9_1
pip 22.1.2 py310h06a4308_0
pooch 1.6.0 pyhd8ed1ab_0 conda-forge
proj 8.2.1 ha227179_0
prometheus_client 0.14.1 py310h06a4308_0
prompt-toolkit 3.0.27 pyha770c72_0 conda-forge
prompt_toolkit 3.0.27 hd8ed1ab_0 conda-forge
properscoring 0.1 py_0 conda-forge
protobuf 3.20.1 py310h295c915_0
psutil 5.9.0 py310h5eee18b_0
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
pyasn1 0.4.8 py_0 conda-forge
pyasn1-modules 0.2.8 py_0
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pygments 2.11.2 pyhd8ed1ab_0 conda-forge
pyjwt 2.4.0 py310h06a4308_0
pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge
pyparsing 3.0.9 py310h06a4308_0
pyproj 3.3.0 py310h162314d_0
pyqt 5.12.3 py310hff52083_8 conda-forge
pyqt-impl 5.12.3 py310h1f8e252_8 conda-forge
pyqt5-sip 4.19.18 py310h122e73d_8 conda-forge
pyqtchart 5.12 py310hfcd6d55_8 conda-forge
pyqtwebengine 5.12.1 py310hfcd6d55_8 conda-forge
pyrsistent 0.18.1 py310h6acc77f_0 conda-forge
pyshp 2.2.0 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 py310h06a4308_0
python 3.10.5 ha86cf86_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-eccodes 1.4.0 py310h96516ba_0 conda-forge
python-fastjsonschema 2.16.2 py310h06a4308_0
python_abi 3.10 2_cp310 conda-forge
pytz 2022.1 py310h06a4308_0
pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge
pyyaml 6.0 pypi_0 pypi
pyzmq 23.2.0 py310h6a678d5_0
qt 5.12.9 ha98a1a1_5 conda-forge
qtconsole 5.3.2 py310h06a4308_0
qtconsole-base 5.2.2 pyhd8ed1ab_1 conda-forge
qtpy 2.2.0 py310h06a4308_0
readline 8.1.2 h7f8727e_1
requests 2.28.1 py310h06a4308_0
requests-oauthlib 1.3.1 pyhd8ed1ab_0 conda-forge
rsa 4.9 pyhd8ed1ab_0 conda-forge
scikit-learn 1.1.1 py310h6a678d5_0
scipy 1.8.0 py310hea5193d_1 conda-forge
seaborn 0.11.2 hd8ed1ab_0 conda-forge
seaborn-base 0.11.2 pyhd8ed1ab_0 conda-forge
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 63.4.1 py310h06a4308_0
shapely 1.8.0 py310h1b8dd88_5 conda-forge
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py310h06a4308_1
sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge
soupsieve 2.3.1 pyhd3eb1b0_0
sparse 0.13.0 pyhd8ed1ab_0 conda-forge
sqlite 3.39.2 h5082296_0
stack_data 0.2.0 pyhd8ed1ab_0 conda-forge
statsmodels 0.13.2 py310h7f8727e_0
tbb 2021.5.0 hd09550d_0
tblib 1.7.0 pyhd8ed1ab_0 conda-forge
terminado 0.13.2 py310hff52083_0 conda-forge
testpath 0.6.0 py310h06a4308_0
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge
tk 8.6.12 h1ccaba5_0
toolz 0.11.2 pyhd8ed1ab_0 conda-forge
tornado 6.2 py310h5eee18b_0
tqdm 4.64.0 py310h06a4308_0
traitlets 5.1.1 pyhd8ed1ab_0 conda-forge
typing-extensions 4.3.0 py310h06a4308_0
typing_extensions 4.3.0 py310h06a4308_0
tzdata 2022a hda174b7_0
unicodedata2 14.0.0 py310h7f8727e_0
urllib3 1.26.11 py310h06a4308_0
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py310h06a4308_1
websocket-client 0.58.0 py310h06a4308_4
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
widgetsnbextension 3.5.2 py310h06a4308_0
xarray 2022.6.0 pyhd8ed1ab_1 conda-forge
xcdat 0.3.1 pyhd8ed1ab_0 conda-forge
xesmf 0.6.2 pyhd8ed1ab_0 conda-forge
xhistogram 0.3.1 pyhd8ed1ab_0 conda-forge
xmca 1.4.2.post2 pypi_0 pypi
xorg-fixesproto 5.0 h7f98852_1002 conda-forge
xorg-inputproto 2.3.2 h7f98852_1002 conda-forge
xorg-kbproto 1.0.7 h7f98852_1002 conda-forge
xorg-libx11 1.7.2 h7f98852_0 conda-forge
xorg-libxau 1.0.9 h7f98852_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xorg-libxext 1.3.4 h7f98852_1 conda-forge
xorg-libxfixes 5.0.3 h7f98852_1004 conda-forge
xorg-libxi 1.7.10 h7f98852_0 conda-forge
xorg-xextproto 7.3.0 h7f98852_1002 conda-forge
xorg-xproto 7.0.31 h27cfd23_1007
xskillscore 0.0.24 pyhd8ed1ab_0 conda-forge
xz 5.2.5 h7f8727e_1
yaml 0.2.5 h7b6447c_0
yarl 1.8.1 py310h5eee18b_0
zarr 2.12.0 pyhd8ed1ab_0 conda-forge
zeromq 4.3.4 h2531618_0
zict 2.1.0 py310h06a4308_0
zipp 3.8.0 py310h06a4308_0
zlib 1.2.12 h7f8727e_2
zstd 1.5.2 ha4553b6_0
Hi @matteodefelice, thank you opening up this issue and #342!
To sum of why you are receiving this error:
cf_xarray
, which is a dependency of xcdat
.cf_xarray
in your environment is v0.7.0, while the latest version is v0.7.4.
cf_xarray=v0.7.0
does not seem to be compatible with the latest version of xarray=2022.6.0
cf_xarray
's recipe shows no version constraint for xarray
, so there is a risk of incompatible versions being installed together (which happened in your case).Typically, installing xcdat
in a new conda environment will pull in the latest dependencies.
Did you happen to install xcdat
in an existing environment, which had cf_xarray
0.7.0 already installed? If so, I suggest running conda install -c conda-forge cf_xarray=0.7.4
and trying import xcdat
again.
A few things we might want to consider on our end:
cf_xarray
for the devs to add version constraints for xarray
to ensure compatibilitycf_xarray
and/or xarray
in xcdat's recipe.thanks, this solved the issue!
@matteodefelice, great to hear! Let us know if you need anything else while you use xcdat
.
What happened?
Just installed on Linux via Anaconda. When I do
import xcdat
I get the following error:I have Python 3.10.5, xarray 2022.6.0 and xcdat 0.3.1
What did you expect to happen?
No response
Minimal Complete Verifiable Example
No response
Relevant log output
No response
Anything else we need to know?
No response
Environment
INSTALLED VERSIONS
commit: None python: 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:06:46) [GCC 10.3.0] python-bits: 64 OS: Linux OS-release: 5.15.57.1-microsoft-standard-WSL2 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: ('en_US', 'UTF-8') libhdf5: 1.12.1 libnetcdf: 4.8.1
xarray: 2022.6.0 pandas: 1.4.3 numpy: 1.22.4 scipy: 1.8.0 netCDF4: 1.5.8 pydap: None h5netcdf: 999 h5py: 3.6.0 Nio: None zarr: 2.12.0 cftime: 1.6.0 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: 0.9.10.0 iris: None bottleneck: 1.3.5 dask: 2022.05.0 distributed: 2022.5.0 matplotlib: 3.5.2 cartopy: 0.20.2 seaborn: 0.11.2 numbagg: None fsspec: 2022.7.1 cupy: None pint: None sparse: 0.13.0 flox: None numpy_groupies: None setuptools: 63.4.1 pip: 22.1.2 conda: None pytest: None IPython: 8.4.0 sphinx: None