Try trashing the desktop icon for the printer, and trashall "HP" files from the Extensions subfolder found in the System Folder on the hard drive. Restart the Mac. Empty the trash. Try to set up the printer again.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.