openstack-tox-pep8 failure in stable/wallaby: import name 'OrderedDict' from 'typing_extensions'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Unassigned |
Bug Description
During the setup of the openstack-tox-pep8 job on stable/wallaby, a Python exception is raised when starting ansible-lint:
[1966] /home/zuul/
Traceback (most recent call last):
File "/home/
from ansiblelint.
File "/home/
from enrich.console import should_do_markup
File "/home/
import rich.console as rich_console
File "/home/
from ._log_render import FormatTimeCallable, LogRender
File "/home/
from .text import Text, TextType
File "/home/
from rich.emoji import EmojiVariant
File "/home/
from .jupyter import JupyterMixin
File "/home/
from .segment import Segment
File "/home/
from .cells import (
File "/home/
from ._lru_cache import LRUCache
File "/home/
from typing_extensions import OrderedDict
ImportError: cannot import name 'OrderedDict' from 'typing_extensions' (/home/
ERROR: InvocationError for command /home/zuul/
pep8 finish: run-test after 51.86 seconds
pep8 start: run-test-post
Changed in tripleo: | |
importance: | Undecided → Critical |
milestone: | none → yoga-3 |
Changed in tripleo: | |
status: | New → Fix Released |
Sounds like typing_extensions uc for wallaby is 3.7.4.3. However, ansible-lint expects 4.1.1[2].
The issue has surfaced after openstacksdk was bumped to use proper constraints[3].
We can probably try pinning ansible-lint < 6.0.0.
[1] https:/ /github. com/openstack/ requirements/ blob/stable/ wallaby/ upper-constrain ts.txt# L574 /github. com/ansible/ ansible- lint/blob/ v6.0.1/ requirements. txt#L57 /github. com/openstack/ requirements/ commit/ 8b04528e19dbc0c 9ebc2b0674eebc3 f2bcc86a4a
[2] https:/
[3] https:/