Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1759925 - python-whitenoise fails to build in Fedora 32 with Django 3
Summary: python-whitenoise fails to build in Fedora 32 with Django 3
Alias: None
Product: Fedora
Classification: Fedora
Component: python-whitenoise
Version: 32
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Piotr Popieluch
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2019-10-09 12:37 UTC by Miro Hrončok
Modified: 2020-06-14 17:02 UTC (History)
3 users (show)

Fixed In Version: python-whitenoise-5.1.0-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-06-14 17:02:54 UTC
Type: Bug

Attachments (Terms of Use)

Description Miro Hrončok 2019-10-09 12:37:31 UTC
Description of problem:
python-whitenoise fails to build in Fedora with Django 3

Version-Release number of selected component (if applicable):

How reproducible:
[python-whitenoise (master)]$ fedpkg --release master build

+ python3 -m unittest discover
Traceback (most recent call last):
  File "/usr/lib64/python3.8/", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.8/", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib64/python3.8/unittest/", line 18, in <module>
  File "/usr/lib64/python3.8/unittest/", line 100, in __init__
  File "/usr/lib64/python3.8/unittest/", line 124, in parseArgs
  File "/usr/lib64/python3.8/unittest/", line 244, in _do_discovery
    self.createTests(from_discovery=True, Loader=Loader)
  File "/usr/lib64/python3.8/unittest/", line 154, in createTests
    self.test =, self.pattern,
  File "/usr/lib64/python3.8/unittest/", line 349, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/lib64/python3.8/unittest/", line 414, in _find_tests
    yield from self._find_tests(full_path, pattern, namespace)
  File "/usr/lib64/python3.8/unittest/", line 405, in _find_tests
    tests, should_recurse = self._find_test_path(
  File "/usr/lib64/python3.8/unittest/", line 460, in _find_test_path
    return self.loadTestsFromModule(module, pattern=pattern), False
  File "/usr/lib64/python3.8/unittest/", line 123, in loadTestsFromModule
    if isinstance(obj, type) and issubclass(obj, case.TestCase):
  File "/usr/lib/python3.8/site-packages/django/utils/", line 224, in inner
  File "/usr/lib/python3.8/site-packages/django/contrib/staticfiles/", line 500, in _setup
    self._wrapped = get_storage_class(settings.STATICFILES_STORAGE)()
  File "/usr/lib/python3.8/site-packages/django/contrib/staticfiles/", line 379, in __init__
    self.hashed_files = self.load_manifest()
  File "/usr/lib/python3.8/site-packages/django/contrib/staticfiles/", line 389, in load_manifest
    content = self.read_manifest()
  File "/usr/lib/python3.8/site-packages/django/contrib/staticfiles/", line 383, in read_manifest
    with as manifest:
  File "/usr/lib/python3.8/site-packages/django/core/files/", line 36, in open
    return self._open(name, mode)
  File "/usr/lib/python3.8/site-packages/django/core/files/", line 231, in _open
    return File(open(self.path(name), mode))
NotADirectoryError: [Errno 20] Not a directory: '/dev/null/staticfiles.json'

Comment 1 Miro Hrončok 2020-01-20 20:34:20 UTC
This blocks the Python 3.9 rebuild.

Comment 2 Piotr Popieluch 2020-01-21 08:11:29 UTC
Updated to 5.0.1, builds now with Django 3.0

Comment 3 Miro Hrončok 2020-01-21 10:04:02 UTC
Thank You for the quick fix.

Comment 4 Ben Cotton 2020-02-11 17:31:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 5 Miro Hrončok 2020-05-25 13:01:27 UTC
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask.

The Python 3.9 rebuild is in progress in a Koji side tag.

If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with:

    $ fedpkg build --target=f33-python

The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you.

You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together.

If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug:

Comment 6 Fedora Update System 2020-06-12 21:14:07 UTC
FEDORA-2020-924ad8311d has been submitted as an update to Fedora 32.

Comment 7 Fedora Update System 2020-06-14 17:02:54 UTC
python-whitenoise-5.1.0-1.fc32 has been pushed to the Fedora 32 stable repository. If problems still persist, 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.