Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures with Python 3.12 #924

Closed
fabaff opened this issue Apr 4, 2024 · 1 comment
Closed

Test failures with Python 3.12 #924

fabaff opened this issue Apr 4, 2024 · 1 comment

Comments

@fabaff
Copy link

fabaff commented Apr 4, 2024

Describe the bug
Tests are failing on Python 3.12.

AttributeError: module 'importlib.abc' has no attribute 'Finder'

Expected behavior
What you expected to happen (please include a reference to the DICOM standard if relevant).

Steps To Reproduce
Run tests with pytest 8 and Python 3.12

============================= test session starts ==============================
platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0
rootdir: /build/source
plugins: pyfakefs-5.3.5
collected 2629 items / 2 errors / 502 deselected / 2127 selected               

==================================== ERRORS ====================================
_______________ ERROR collecting pynetdicom/tests/test_assoc.py ________________
pynetdicom/tests/test_assoc.py:69: in <module>
    from .hide_modules import hide_modules
pynetdicom/tests/hide_modules.py:33: in <module>
    _ModuleHiderBase = getattr(importlib.abc, "MetaPathFinder", importlib.abc.Finder)
/nix/store/fmwqa8nvva4sh18bqayzrilrzxq9fm0f-python3-3.12.2/lib/python3.12/importlib/abc.py:38: in __getattr__
    raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
E   AttributeError: module 'importlib.abc' has no attribute 'Finder'
_____________ ERROR collecting pynetdicom/tests/test_transport.py ______________
pynetdicom/tests/test_transport.py:34: in <module>
    from .hide_modules import hide_modules
pynetdicom/tests/hide_modules.py:33: in <module>
    _ModuleHiderBase = getattr(importlib.abc, "MetaPathFinder", importlib.abc.Finder)
/nix/store/fmwqa8nvva4sh18bqayzrilrzxq9fm0f-python3-3.12.2/lib/python3.12/importlib/abc.py:38: in __getattr__
    raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
E   AttributeError: module 'importlib.abc' has no attribute 'Finder'
=========================== short test summary info ============================
ERROR pynetdicom/tests/test_assoc.py - AttributeError: module 'importlib.abc' has no attribute 'Finder'
ERROR pynetdicom/tests/test_transport.py - AttributeError: module 'importlib.abc' has no attribute 'Finder'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
====================== 502 deselected, 2 errors in 5.23s =======================

Your environment
n/a

@mrbean-bremen
Copy link
Member

Duplicate of #851, needs a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants