↓ Skip to main content

Troubleshooting

pybadges Fails on Python 3.13: How to Fix "No module named 'imghdr'"

pybadges Fails on Python 3.13: How to Fix "No module named 'imghdr'"

·746 words·4 mins
pybadges 3.0.1 imports imghdr, which Python 3.13 removed, and pkg_resources, which setuptools 82 removed, so it fails with “No module named ‘imghdr’” or “No module named ‘pkg_resources’”. The project is archived and will not get a fix. Three ways out: pin around it for now, use the patched Debian package, or switch to badgepy, a drop-in continuation that I maintain.