Bug 2488362

Summary: python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : Stream should be empty
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-django6Assignee: Michel Lind <michel>
Status: ON_QA --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 45CC: infra-sig, michel, ngompa13, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2412434, 2433833, 2503726    

Description Karolina Surma 2026-06-12 14:25:20 UTC
python-django6 fails to build with Python 3.15.0b2.

FAIL: test_version (admin_scripts.tests.CommandTypes.test_version)
version is handled as a special case
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.15/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib64/python3.15/unittest/case.py", line 691, in run
    self._callTestMethod(testMethod)
    
  File "/usr/lib64/python3.15/unittest/case.py", line 637, in _callTestMethod
    result = method()
    ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 1945, in test_version
    self.assertNoOutput(err)
    ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 184, in assertNoOutput
    self.assertEqual(
    ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/unittest/case.py", line 949, in assertEqual
    assertion_func(first, second, msg=msg)
    ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/unittest/case.py", line 942, in _baseAssertEqual
    raise self.failureException(msg)
    ^^^^^^^^^^^
AssertionError: 796 != 0 : Stream should be empty: actually contains 'Error in import line from /usr/lib/python3.15/site-packages/sphinxcontrib_spelling-7.3.3-py3.15-nspkg.pth: import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('sphinxcontrib',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('sphinxcontrib', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('sphinxcontrib', [os.path.dirname(p)])));m = m or sys.modules.setdefault('sphinxcontrib', types.ModuleType('sphinxcontrib'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
  Traceback (most recent call last):
    File "<frozen site>", line 533, in _exec_imports
    File "<string>", line 1, in <module>
  KeyError: "local variable ''sitedir'' is not defined"

and probably more...

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

For our attempts to build python-django6 with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-django6&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Aoife Moloney 2026-08-17 14:50:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 2 Fedora Update System 2026-09-08 22:26:41 UTC
FEDORA-2026-522a9411e7 (python-django6-6.1.1-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-522a9411e7

Comment 3 Fedora Update System 2026-09-08 22:26:55 UTC
FEDORA-2026-6613125727 (python-django6-6.1.1-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-6613125727

Comment 4 Fedora Update System 2026-09-09 00:55:21 UTC
FEDORA-2026-522a9411e7 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-522a9411e7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-522a9411e7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-09-09 05:05:44 UTC
FEDORA-2026-6613125727 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-6613125727`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-6613125727

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.