ansible-lint crashes in 24.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-wcmatch (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running ansible-lint in Ubuntu 24.04 on my role ends up with a stack trace:
Traceback (most recent call last):
File "/usr/bin/
from ansiblelint.
File "/usr/lib/
from ansiblelint import cli
File "/usr/lib/
from ansiblelint.
File "/usr/lib/
import wcmatch.pathlib
File "/usr/lib/
class PurePosixPath(
File "/usr/lib/
_flavour = pathlib.
AttributeError: module 'pathlib' has no attribute '_posix_flavour'
This is due to python3-
I think the following portion of changes can be added to library package for Noble release:
https:/
Versions of installed packages:
ansible-lint:
Installed: 6.17.2-1
Candidate: 6.17.2-1
Version table:
*** 6.17.2-1 500
500 http://
500 http://
100 /var/lib/
python3-wcmatch:
Installed: 8.4-2
Candidate: 8.4-2
Version table:
*** 8.4-2 500
500 http://
500 http://
100 /var/lib/
tags: | added: noble |
The Python compatibility is actually fixed in the upstream wcmatch package: /github. com/facelessuse r/wcmatch/ releases/ tag/8.5
https:/
(Update: Sorry - I did not see that this already got reported.)