Zuul error "cannot import name 'Mapping' from 'collections'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
In Progress
|
Low
|
Navum Gupta |
Bug Description
Zuul raised the error "cannot import name 'Mapping' from 'collections'",
when I run FT(function test) that tacker-
This FT causes this error including code that can only run on python3.9 or lower.
The Robotframework used in this FT calls "from collections import Mapping",[2]
but this code can only be used with Python 3.9 or lower.
If you use Python 3.10+,
this program should call 'from collections.abc import Mapping'.
However, the latest version of the robotframework fixes this error,
but this FT uses version 3.1[3][4].
We can choose two methods to fix this error.
1. Downgrade Python 3.9 or lower running in zuul.
2. Upgrade the Robotframework.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
error log
```
from .misc import plural_or_not
File "/home/
from .robottypes import is_integer
File "/home/
from .robottypes3 import (is_bytes, is_dict_like, is_integer, is_list_like,
File "/home/
from collections import Mapping, UserString
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/
======
Totals
======
Ran: 3 tests in 0.0022 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 3
Sum of execute time for each test: 0.0004 sec.
==============
Worker Balance
==============
- Worker 0 (3 tests) => 0:00:00.002190
Test id Runtime (s)
-------
unittest.
unittest.
unittest.
dsvm-compliance
dsvm-compliance
dsvm-compliance
.pkg: 44044 W _exit> python /usr/local/
Backend: run command _exit with args {}
Backend: Wrote response {'return': 0} to /tmp/pep517_
.pkg: 44046 I exit None (0.00 seconds) /home/zuul/
.pkg: 44119 D delete package /home/zuul/
dsvm-
evaluation failed :( (44.00 seconds)
```
summary: |
- Zuul error cannot import name 'Mapping' from 'collections' + Zuul error "cannot import name 'Mapping' from 'collections'" |
description: | updated |
Changed in tacker: | |
importance: | Undecided → Low |
Changed in tacker: | |
assignee: | nobody → Navum Gupta (navum) |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/892135
Review: https:/