Ubuntu Noble: flake8 AttributeError: 'EntryPoints' object has no attribute 'get'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
Undecided
|
Ghanshyam Mann | ||
Blazar |
Fix Released
|
Undecided
|
Ghanshyam Mann | ||
python-cinderclient |
Fix Released
|
Undecided
|
Unassigned | ||
tacker |
Fix Released
|
Undecided
|
Ghanshyam Mann | ||
zaqar |
Fix Released
|
Undecided
|
Takashi Kajinami |
Bug Description
As per OpenStack 2025.1 testing runtime[1], we need to migrate all project testing on Ubuntu Noble.
But pep8 job on Noble fail with the below error:
- https:/
Traceback (most recent call last):
File "/home/
sys.
^^^^^^
File "/home/
app.run(argv)
File "/home/
self._run(argv)
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
self.manager = PluginManager(
File "/home/
self.
File "/home/
eps = importlib_
AttributeError: 'EntryPoints' object has no attribute 'get'
pep8: 4880 C exit 1 (0.17 seconds) /home/zuul/
[1] https:/
Changed in barbican: | |
status: | New → In Progress |
tags: | added: migrate-to-noble |
description: | updated |
Changed in barbican: | |
assignee: | nobody → Ghanshyam Mann (ghanshyammann) |
Changed in blazar: | |
assignee: | nobody → Ghanshyam Mann (ghanshyammann) |
Changed in zaqar: | |
assignee: | nobody → Ghanshyam Mann (ghanshyammann) |
Changed in tacker: | |
status: | New → In Progress |
Changed in python-cinderclient: | |
status: | New → In Progress |
This basically hitting this issue - https:/ /github. com/python/ importlib_ metadata/ issues/ 406
To solve this, you can upgrade the flake8. That can be done when you use the latest hacking (7.0.0.) which use latest flake8 7.1.1. With this you might need to fix a few more pep8 error which is again a good thing to do.
https:/ /review. opendev. org/c/openstack /tacker/ +/935421