Bug 2488362 - python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : Stream should be empty
Summary: python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : St...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django6
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS F46FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:25 UTC by Karolina Surma
Modified: 2026-09-17 00:52 UTC (History)
4 users (show)

Fixed In Version: python-django6-6.1.1-2.fc45 python-django6-6.1.1-2.fc44
Clone Of:
Environment:
Last Closed: 2026-09-17 00:17:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.

Comment 6 Fedora Update System 2026-09-17 00:17:26 UTC
FEDORA-2026-522a9411e7 (python-django6-6.1.1-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2026-09-17 00:52:35 UTC
FEDORA-2026-6613125727 (python-django6-6.1.1-2.fc44) has been pushed to the Fedora 44 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.