Bug 2325170 - python-zope-interface fails to build with Python 3.14: zope.interface.exceptions.InvalidInterface: Concrete attribute, __classdictcell__
Summary: python-zope-interface fails to build with Python 3.14: zope.interface.excepti...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-zope-interface
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-11 11:57 UTC by Karolina Surma
Modified: 2024-11-28 10:57 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-28 10:57:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github zopefoundation zope.interface issues 334 0 None open Test failure with Python 3.14 2024-11-25 06:06:47 UTC

Description Karolina Surma 2024-11-11 11:57:36 UTC
python-zope-interface fails to build with Python 3.14.0a1.

+ python3 -m unittest discover -vv -s zope/interface -t .
zope.interface (unittest.loader._FailedTest.zope.interface) ... ERROR

======================================================================
ERROR: zope.interface (unittest.loader._FailedTest.zope.interface)
----------------------------------------------------------------------
ImportError: Failed to import test module: zope.interface
Traceback (most recent call last):
  File "/usr/lib64/python3.14/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.14/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/__init__.py", line 58, in <module>
    _wire()
    ~~~~~^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 1154, in _wire
    from zope.interface.interfaces import IElement
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interfaces.py", line 56, in <module>
    class IElement(Interface):
    ...<93 lines>...
            """
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 794, in __init__
    self.__attrs = self.__compute_attrs(attrs)
                   ~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 813, in __compute_attrs
    aname: update_value(aname, aval)
           ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-zope-interface-7.1.1-build/BUILDROOT/usr/lib64/python3.14/site-packages/zope/interface/interface.py", line 809, in update_value
    raise InvalidInterface("Concrete attribute, " + aname)
zope.interface.exceptions.InvalidInterface: Concrete attribute, __classdictcell__


----------------------------------------------------------------------
Ran 1 test in 0.000s

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08240886-python-zope-interface/

For all our attempts to build python-zope-interface with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-zope-interface/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Lumír Balhar 2024-11-25 06:06:48 UTC
Reported upstream.

Comment 2 Lumír Balhar 2024-11-28 10:57:52 UTC
Fixed in https://src.fedoraproject.org/rpms/python-zope-interface/pull-request/23, merged, no rawhide build
Built manually without docs in Python 3.14 COPR


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