This solution from Yuengdog1983 worked for me:
This issue may be a result of the Computer Name being left empty
- Open System Preferences and choose Sharing
- Enter a name for your computer
- Restart the Computer
- Test if you are able to print
It worked for me, and for Marcos Farhat, Bernard Perrin, rj1686, lalal14b, cwlb, WendyDM, AKM5, parcan64...
Hope it works for you.