Thanks Jonor. hplip, hplip-common and hplip-libs are all present on system. I also have a hplip gui.
I tried disabling selinux, but no difference in behaviour.
I then tried this: tried installing the printer through cups (system>administration>print settings>add printer). I was able to add by copying the device url from the hplip.config file namely "hp:/usb/HP_LaserJet_1020?serial=S404LYD". and selecting the make and model as well as the driver shown on the menu. Printer added successfully, but test print failed with the print-queue message "not connected?"
After this, I found hplip does show the printer on the device manager page, but says "Device communication error code 5012"
Another observation:While rebooting fedora 25, I found several instances of the message
usb 1-2: device descriptor read/64, error -110
The printer was connected and switched on while booting Fedora. Coule it be a kernel related problem? The problem actually started after a kernel update about 10 days ago.
Thanks in advance for any advise.