Bug 2291911
| Summary: | F41FailsToInstall: python3-scikit-image | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fedora Fails To Install <fti-bugs> |
| Component: | python-scikit-image | Assignee: | Sergio Pascual <sergio.pasra> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | awilliam, code, orion, sergio.pasra |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-18 18:49:45 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2279988, 2280964, 2291636, 2291711, 2291991 | ||
| Bug Blocks: | 2260877, 2244836, 2291647, 2291722, 2291792, 2291843, 2291957 | ||
|
Description
Fedora Fails To Install
2024-06-12 11:29:44 UTC
==================================== ERRORS ====================================
_______________ ERROR collecting skimage/draw/tests/test_draw.py _______________
/usr/lib/python3.13/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.13/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.13/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/usr/lib/python3.13/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/usr/lib/python3.13/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/usr/lib/python3.13/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/usr/lib/python3.13/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
skimage/draw/tests/test_draw.py:24: in <module>
from skimage.measure import regionprops
<frozen importlib._bootstrap>:1412: in _handle_fromlist
???
/usr/lib/python3.13/site-packages/lazy_loader/__init__.py:82: in __getattr__
submod = importlib.import_module(submod_path)
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
skimage/measure/_regionprops.py:1426: in <module>
_install_properties_docs()
skimage/measure/_regionprops.py:1421: in _install_properties_docs
getattr(RegionProperties, p).__doc__ = prop_doc[p]
E KeyError: 'area_bbox'
__________ ERROR collecting skimage/measure/tests/test_regionprops.py __________
/usr/lib/python3.13/site-packages/_pytest/runner.py:341: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.13/site-packages/_pytest/runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.13/site-packages/_pytest/python.py:531: in collect
self._inject_setup_module_fixture()
/usr/lib/python3.13/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
/usr/lib/python3.13/site-packages/_pytest/python.py:310: in obj
self._obj = obj = self._getobj()
/usr/lib/python3.13/site-packages/_pytest/python.py:528: in _getobj
return self._importtestmodule()
/usr/lib/python3.13/site-packages/_pytest/python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/usr/lib/python3.13/site-packages/_pytest/pathlib.py:567: in import_path
importlib.import_module(module_name)
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
/usr/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
skimage/measure/tests/test_regionprops.py:17: in <module>
from skimage.measure._regionprops import (
skimage/measure/_regionprops.py:1426: in <module>
_install_properties_docs()
skimage/measure/_regionprops.py:1421: in _install_properties_docs
getattr(RegionProperties, p).__doc__ = prop_doc[p]
E KeyError: 'area_bbox'
=========================== short test summary info ============================
ERROR skimage/draw/tests/test_draw.py - KeyError: 'area_bbox'
ERROR skimage/measure/tests/test_regionprops.py - KeyError: 'area_bbox'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
================= 5 skipped, 10 deselected, 2 errors in 5.35s ==================
I'm fairly sure this is the change to docstring indentation, *again*. skimage is doing some fairly sketchy regex-based magic to generate docstrings for properties from a big docstring for a function:
def _parse_docs():
import re
import textwrap
doc = regionprops.__doc__ or ''
matches = re.finditer(
r'\*\*(\w+)\*\* \:.*?\n(.*?)(?=\n [\*\S]+)', doc, flags=re.DOTALL
)
prop_doc = {m.group(1): textwrap.dedent(m.group(2)) for m in matches}
def _install_properties_docs():
prop_doc = _parse_docs()
for p in [member for member in dir(RegionProperties) if not member.startswith('_')]:
getattr(RegionProperties, p).__doc__ = prop_doc[p]
...where the regionprops docstring text looks like:
**area** : float
Area of the region i.e. number of pixels of the region scaled by pixel-area.
**area_bbox** : float
Area of the bounding box i.e. number of pixels of bounding box scaled by pixel-area.
**area_convex** : float
Area of the convex hull image, which is the smallest convex
polygon that encloses the region.
**area_filled** : float
Area of the region with all the holes filled in.
...so I'm pretty sure the deindentation thing is screwing it up (it's expecting four spaces before the text it wants to use as the property docstring). Testing a patch for it now, will clean it up and send it upstream if it works.
https://github.com/scikit-image/scikit-image/pull/7448 fixes the indentation thing. Orion reported the other two issues I saw in a mock build at https://github.com/scikit-image/scikit-image/issues/6993 , but he said there it magically went away for him after a bit. Not sure if it will for me. Trying a few things here. aha, those bugs are due to a missing image file in the cached data tarball. will fix. Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ All subpackages of a package against which this bug was filled are now installable or removed from Fedora 41. Thanks for taking care of it! |