CUPS Cloud Print February Release – Better Logging, stability enhancements
This month’s release of CUPS Cloud Print is currently rolling out to the repositories, and brings a new round of bugfixes.
Most of the changes this month are related to logging output ( and fixing the annoying long standing ‘No handlers could be found for logger’ message ), and better maintenance of the file-system when packages are upgraded ( correct permissions on the config file, and managing the *.pyc files better through the package managers ).
Some Arch Linux users may also receive this error on upgrade:
cupscloudprint: /usr/share/cloudprint-cups/auth.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/cloudprintrequestor.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/__init__.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/anyjson.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/client.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/clientsecrets.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/crypt.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/locked_file.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/oauth2client/multistore_file.pyc exists in filesystem cupscloudprint: /usr/share/cloudprint-cups/printer.pyc exists in filesystem Errors occurred, no packages were upgraded.
The simple fix is to simply run this command as root, to remove the orphaned files, then re-run the upgrade of your system:
find /usr/share/cloudprint-cups/ -type f -iname '*.pyc' -delete
Full changelog:
- New: Show better error message if printer ppd not found
- Fix: Use python logging facility instead of writing to log files directly, fixes No handlers could be found for logger error
- Fix: Upgrade script now faster with multiple printers, now only gets list of PPDs once and filters for each printer
- Fix: Show better error if renewing OAUTH2 token fails
- Fix: Explicitely define dirs in rpm files list, ensures will be removed correctly on uninstall
- Fix: Deb package now deletes old pyc files on uninstall/upgrade
- Fix: Config file permissions now fixed to allow updating of access token when printing
- Fix: Compile python code on rpm install to ensure old files are removed on uninstall
- Fix: Compile python code on Gentoo install to ensure old files are removed on uninstall
- Fix: Compile python code on arch install to ensure old files are removed on uninstall
- Change: Merged submitjob.py script into backend script
- Change: Error out immediately if lpadmin command not in path on upgrade
More information, and packages for the most common Linux distributions are available on the CUPS Cloud Print home page .
Users using repositories to install CUPS Cloud Print will receive the update automatically when updating their system next.