Bug 2081919 - python-pytest-httpbin FTBFS with werkzeug 2.1.2
Summary: python-pytest-httpbin FTBFS with werkzeug 2.1.2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-httpbin
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Williamson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2069345
TreeView+ depends on / blocked
 
Reported: 2022-05-05 01:48 UTC by Charalampos Stratakis
Modified: 2022-05-05 16:35 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-05 16:35:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log (187.75 KB, text/plain)
2022-05-05 01:48 UTC, Charalampos Stratakis
no flags Details

Description Charalampos Stratakis 2022-05-05 01:48:16 UTC
Created attachment 1877194 [details]
build.log

The latest version of python-werkzeug, 2.1.2, intended for rawhide makes python-pytest-httpbin FTBFS with:

Traceback (most recent call last):
  File "/usr/bin/py.test-3", line 8, in <module>
    sys.exit(console_main())
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 187, in console_main
    code = main()
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 145, in main
    config = _prepareconfig(args, plugins)
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 324, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 55, in _multicall
    gen.send(outcome)
  File "/usr/lib/python3.10/site-packages/_pytest/helpconfig.py", line 102, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1016, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1304, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1187, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 287, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/lib64/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
    exec(co, module.__dict__)
  File "/builddir/build/BUILD/pytest-httpbin-1.0.0/pytest_httpbin/plugin.py", line 3, in <module>
    from httpbin import app as httpbin_app
  File "/usr/lib/python3.10/site-packages/httpbin/__init__.py", line 3, in <module>
    from .core import *
  File "/usr/lib/python3.10/site-packages/httpbin/core.py", line 22, in <module>
    from werkzeug.wrappers import BaseResponse
ImportError: cannot import name 'BaseResponse' from 'werkzeug.wrappers' (/usr/lib/python3.10/site-packages/werkzeug/wrappers/__init__.py)


Possibly failing through httpbin. See also https://github.com/kevin1024/pytest-httpbin/issues/72

Full build logs attached.

Comment 1 Adam Williamson 2022-05-05 15:37:23 UTC
Yes, that is failing through httpbin, as you can see - httpbin/core.py tries to import something from werkzeug which werkzeug no longer exports.

Thus, pytest-httpbin can't do anything about this, httpbin needs to fix it.

Comment 2 Adam Williamson 2022-05-05 16:35:41 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=86685690 should fix this, I hope.


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