Bug 1852635

Summary: python-scikit-image is broken with Python 3.9
Product: [Fedora] Fedora Reporter: Elliott Sales de Andrade <quantum.analyst>
Component: python-scikit-imageAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, mhroncok, orion, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3.9-3.9.0~b4-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 13:50:23 UTC Type: Bug
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:    
Bug Blocks: 1785415    

Description Elliott Sales de Andrade 2020-07-01 00:19:13 UTC
All tests fail like so:
____________ ERROR collecting segmentation/tests/test_boundaries.py ____________
ImportError while importing test module '/builddir/build/BUILDROOT/python-scikit-image-0.16.2-4.fc33.x86_64/usr/lib64/python3.9/site-packages/skimage/segmentation/tests/test_boundaries.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
skimage/segmentation/tests/__init__.py:1: in <module>
    from ..._shared.testing import setup_test, teardown_test
skimage/_shared/testing.py:22: in <module>
    from .. import data, io
skimage/io/__init__.py:7: in <module>
    from .manage_plugins import *
skimage/io/manage_plugins.py:24: in <module>
    from .collection import imread_collection_wrapper
skimage/io/collection.py:13: in <module>
    from ..external.tifffile import TiffFile
skimage/external/tifffile/__init__.py:1: in <module>
    from .tifffile import imsave, imread, imshow, TiffFile, TiffWriter, \
skimage/external/tifffile/tifffile.py:285: in <module>
    from xml.etree import cElementTree as etree
E   ImportError: cannot import name 'cElementTree' from 'xml.etree' (/usr/lib64/python3.9/xml/etree/__init__.py)

except test failures are ignored, so the build is 'fine'.


Version-Release number of selected component (if applicable):
python-scikit-image-0.16.2-4.fc33


Steps to Reproduce:
1. fedpkg clone python-scikit-image
2. fedpkg mockbuild

Or

1. mock -r fedora-rawhide-x86_64 --install python3-scikit-image
2. mock -r fedora-rawhide-x86_64 --shell
3. python3 -c 'import skimage.io'

Actual results:
See above.


Expected results:
Imports and tests work.

Comment 1 Miro HronĨok 2020-07-01 00:35:45 UTC
"The xml.etree.cElementTree module has been removed, use the xml.etree.ElementTree module instead. Since Python 3.3 the xml.etree.cElementTree module has been deprecated, the xml.etree.ElementTree module uses a fast implementation whenever available."

However, this change in Python was recently reverted and will be gone in next beta (scheduled for 2020-06-29 but not yet released).

Comment 2 Charalampos Stratakis 2020-07-07 16:04:20 UTC
There is a new version out (17.2) now which might be fixing some of the issues, however it requires a new dependency to be packaged which was bundled before (tifffile).