Found the actual issue: some scanners require a plugin and hplib 3.22 wants a new version of the plugin. However, finding a misaligned version, rather than reporting “plugin misaligned” it says “I/O error” which is quite misleading.
IMHO the hplip package on major version upgrades should remove the older plugins, so that you can get a prompt to install a plugin or a sensible error.