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'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
MVCE confirmation
Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
Complete example — the example is self-contained, including all data and the text of any traceback.
Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
New issue — a search of GitHub Issues suggests this is not a duplicate.
Relevant log output
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-xarray-2023.05.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-xarray-2023.05.0-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network' --pyargs xarrayImportError while loading conftest '/home/tkloczko/rpmbuild/BUILD/xarray-2023.05.0/xarray/tests/conftest.py'.xarray/__init__.py:1: in <module> from xarray import testing, tutorialxarray/testing.py:10: in <module> from xarray.core import duck_array_ops, formatting, utilsxarray/core/duck_array_ops.py:36: in <module> from xarray.core import dask_array_ops, dtypes, nputilsxarray/core/dask_array_ops.py:3: in <module> from xarray.core import dtypes, nputilsxarray/core/dtypes.py:7: in <module> from xarray.core import utilsxarray/core/utils.py:443: in <module> class Frozen(Mapping[K, V]):E TypeError: 'ABCMeta' object is not subscriptable
We haven't supported 3.8 since January. The error message you're seeing isn't really anything to do with xarray code, it's coming straight from a standard use of the collections.abc module. Maybe that's because of a different python version?
What happened?
Looks like pytest is failing on scanning units.
What did you expect to happen?
pytest should not fail.
Minimal Complete Verifiable Example
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)MVCE confirmation
Relevant log output
Here is pytest output:
Anything else we need to know?
No response
Environment
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: