https://bugzilla.redhat.com/show_bug.cgi?id=2159621
Bug ID: 2159621
Summary: Importing xarray.tests.test_dataset fails
Product: Fedora
Version: rawhide
Status: NEW
Component: python-xarray
Assignee: quantum.analyst(a)gmail.com
Reporter: david08741(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: epel-packagers-sig(a)lists.fedoraproject.org,
jonathan(a)almalinux.org,
python-packagers-sig(a)lists.fedoraproject.org,
quantum.analyst(a)gmail.com
Target Milestone: ---
Classification: Fedora
Description of problem:
Running
from xarray.tests.test_dataset import create_test_data
fails with:
missing pytest if only python3-xarray has been installed
Once python3-pytest is installed, the error is the following:
ImportError while importing test module
'/builddir/build/BUILD/xbout-0.3.4/xbout/tests/test_plot.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
xbout/tests/test_plot.py:8: in <module>
from xbout.tests.test_load import bout_xyt_example_files
xbout/tests/test_load.py:14: in <module>
from xarray.tests.test_dataset import create_test_data
/usr/lib/python3.11/site-packages/xarray/tests/test_dataset.py:11: in <module>
from pandas.core.computation.ops import UndefinedVariableError
E ImportError: cannot import name 'UndefinedVariableError' from
'pandas.core.computation.ops'
(/usr/lib64/python3.11/site-packages/pandas/core/computation/ops.py)
_________________ ERROR collecting xbout/tests/test_region.py
__________________
Version-Release number of selected component (if applicable):
2022.03.0
How reproducible:
always
Steps to Reproduce:
1. python3 -c "import xarray.tests.test_dataset"
Alternatively try to build python-xbout 0.3.4 for rawhide:
https://koji.fedoraproject.org/koji/taskinfo?taskID=95936268
Actual results:
An ImportError is raised. Presumably that is due to a change in pandas.
Expected results:
Import works
Additional info:
This seems to be fixed in 2022.12
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2159621