Bug 2252073 - python-ase fails to build with Python 3.13: TypeError: 'PosixPath' object does not support the context manager protocol
Summary: python-ase fails to build with Python 3.13: TypeError: 'PosixPath' object doe...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ase
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: marcindulak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-11-29 10:37 UTC by Karolina Surma
Modified: 2023-12-02 17:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-12-02 17:00:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-11-29 10:37:06 UTC
python-ase fails to build with Python 3.13.0a2.


==================================== ERRORS ====================================
______________________ ERROR at setup of test_add_columns ______________________

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all')

    @pytest.fixture(scope='module')
    def database(tmp_path_factory):
>       with tmp_path_factory.mktemp('dbtest') as dbtest:
E       TypeError: 'PosixPath' object does not support the context manager protocol

/builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError
________________________ ERROR at setup of test_favicon ________________________

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all')

    @pytest.fixture(scope='module')
    def database(tmp_path_factory):
>       with tmp_path_factory.mktemp('dbtest') as dbtest:
E       TypeError: 'PosixPath' object does not support the context manager protocol

/builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError
________________________ ERROR at setup of test_db_web _________________________

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all')

    @pytest.fixture(scope='module')
    def database(tmp_path_factory):
>       with tmp_path_factory.mktemp('dbtest') as dbtest:
E       TypeError: 'PosixPath' object does not support the context manager protocol

/builddir/build/BUILD/ase-3.22.1/ase/test/db/test_db_web.py:10: TypeError
________________________ ERROR at setup of test_paging _________________________

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f8b3b141a90>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all')

    @pytest.fixture(scope='module')
    def database(tmp_path_factory):
>       with tmp_path_factory.mktemp('dbtest') as dbtest:
E       TypeError: 'PosixPath' object does not support the context manager protocol

=========================== short test summary info ============================
ERROR db/test_db_web.py::test_add_columns - TypeError: 'PosixPath' object doe...
ERROR db/test_db_web.py::test_favicon - TypeError: 'PosixPath' object does no...
ERROR db/test_db_web.py::test_db_web - TypeError: 'PosixPath' object does not...
ERROR db/test_db_web.py::test_paging - TypeError: 'PosixPath' object does not...
= 1695 passed, 379 skipped, 2 xfailed, 742 warnings, 4 errors in 169.50s (0:02:49) =


https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692162-python-ase/

For all our attempts to build python-ase with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-ase/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

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 marcindulak 2023-12-02 17:00:19 UTC
A see a possible fix was implemented upstream in https://gitlab.com/ase/ase/-/commit/f9f0b430d27236725f4e527f35cba6683301ef25,
but there was no release since then.

Hopefully fixed temporarily by removing the failing test in https://koji.fedoraproject.org/koji/taskinfo?taskID=109813188


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