I am experiencing the same issue as @just I guess the problem are related to Arch packages that come from "community".
khard list
Traceback (most recent call last):
File "/usr/bin/khard", line 33, in <module>
sys.exit(load_entry_point('khard==0.17.0', 'console_scripts', 'khard')())
File "/usr/bin/khard", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: khard