Bug 1788565

Summary: python-werkzeug fails to build with Python 3.9
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-werkzeugAssignee: Rick Elrod <relrod>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aurelien, cstratak, danielmyoung, ian, karlthered, mhroncok, python-sig, relrod
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-15 12:07:42 UTC 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: 1690599    
Bug Blocks: 1785415    

Description Miro Hrončok 2020-01-07 14:09:09 UTC
python-werkzeug fails to build with Python 3.9.0a2.

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/sphinx/config.py", line 361, in eval_config_file
    execfile_(filename, namespace)
  File "/usr/lib/python3.9/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/conf.py", line 58, in <module>
    from werkzeug import __version__ as release
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/werkzeug/__init__.py", line 151, in <module>
    __import__('werkzeug.exceptions')
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/werkzeug/exceptions.py", line 71, in <module>
    from werkzeug.wrappers import Response
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/werkzeug/wrappers.py", line 27, in <module>
    from werkzeug.http import HTTP_STATUS_CODES, \
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/werkzeug/http.py", line 1148, in <module>
    from werkzeug.datastructures import Accept, HeaderSet, ETags, Authorization, \
  File "/builddir/build/BUILD/Werkzeug-0.14.1/docs/werkzeug/datastructures.py", line 16, in <module>
    from collections import Container, Iterable, MutableSet
ImportError: cannot import name 'Container' from 'collections' (/usr/lib64/python3.9/collections/__init__.py)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01140226-python-werkzeug/

For all our attempts to build python-werkzeug with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-werkzeug/

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

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33, but the initial bootstrapping has already started.
A build failure this early in the bootstrap sequence blocks us very much.

Comment 1 Miro Hrončok 2020-01-07 14:13:47 UTC
This has been fixed upstream in https://github.com/pallets/werkzeug/commit/759aa6836d3734ae8587656941185d4d6c947966 - 0.16.0  0.15.6 0.15.5 0.15.4 0.15.3 0.15.2 0.15.1 0.15.0