Bug 2273606 - python-aws-sam-translator fails to build with pytest 8: ModuleNotFoundError: No module named 'bin'
Summary: python-aws-sam-translator fails to build with pytest 8: ModuleNotFoundError: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-aws-sam-translator
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-05 09:48 UTC by Tomáš Hrnčiar
Modified: 2024-04-05 15:57 UTC (History)
3 users (show)

Fixed In Version: python-aws-sam-translator-1.87.0-2.fc41
Clone Of:
Environment:
Last Closed: 2024-04-05 15:57:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-05 09:48:52 UTC
python-aws-sam-translator fails to build with pytest 8.

==================================== ERRORS ====================================
_____________ ERROR collecting tests/bin/test_public_interface.py ______________
ImportError while importing test module '/builddir/build/BUILD/serverless-application-model-1.87.0/tests/bin/test_public_interface.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/bin/test_public_interface.py:3: in <module>
    from bin.public_interface import _BreakingChanges, _detect_breaking_changes
E   ModuleNotFoundError: No module named 'bin'
=========================== short test summary info ============================
ERROR tests/bin/test_public_interface.py
================== 3955 passed, 1 error in 162.59s (0:02:42) ===================

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07260399-python-aws-sam-translator/

For all our attempts to build python-aws-sam-translator with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-aws-sam-translator/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2024-04-05 15:53:16 UTC
FEDORA-2024-714530368b (python-aws-sam-translator-1.87.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-714530368b

Comment 2 Fedora Update System 2024-04-05 15:57:21 UTC
FEDORA-2024-714530368b (python-aws-sam-translator-1.87.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.