• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Here is the solution for the error: "Encryption Credentials have expired" when attempting to print or scan from Mac OS or iOS devices: Click here to view the troubleshooting steps!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
Linux

In Linux I installed hplip and want to start with hp-setup to

plug-in HP-printer LaserJet Pro 200 Color M251n.

This was no problem in earlier versions of hplip !!

Output was after cancelling hp-setup of printer - I think there is some

spell-checking error in package of hplip :

 

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=usb, search=(None), desc=0)
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1395, in NextButton_clicked
self.showAddPrinterPage()
File "/usr/share/hplip/ui5/setupdialog.py", line 709, in showAddPrinterPage
self.findPrinterPPD()
File "/usr/share/hplip/ui5/setupdialog.py", line 798, in findPrinterPPD
self.print_ppd = cups.getPPDFile2(
File "/usr/share/hplip/prnt/cups.py", line 540, in getPPDFile2
family_class=getFamilyClassName(model)
File "/usr/share/hplip/prnt/cups.py", line 182, in getFamilyClassName
family_type= dict[m]['family-class']
KeyError: 'family-class'
breaking-off

2 REPLIES 2
HP Recommended

HPlip-package has the version :

 

hplip, Version: 3.23.5, Release: 56

 

This error output was already in an earlier version of hplip. There it was a spell-checking issue in code.

HP Recommended

Hi @dschinn1001,

 

Welcome to HP Support Community.  


Thank you for posting your query, I will be glad to help you.

 

If you're encountering issues with setting up an HP LaserJet Pro 200 Color M251n printer on Linux and the hp-setup command is breaking off due to an error related to class (possibly within HPLIP, Python, or CUPS), you can try the following troubleshooting steps.

 

Install Required Packages:

Ensure that you have the necessary packages installed on your Linux system. You will need HPLIP, CUPS, and Python libraries. You can typically install these using your distribution's package manager (e.g., apt, yum, dnf, or pacman).

 

For Debian/Ubuntu-based systems:

 

sudo apt-get install hplip cups python3

 

For Red Hat/Fedora-based systems:

 

sudo yum install hplip cups python3

 

Update HPLIP:

Make sure you have the latest version of HPLIP installed. You can download the latest HPLIP software from the official HP website: https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

After downloading, follow the installation instructions provided in the documentation or the installer script.

 

Check System Logs:

Review system logs for more detailed error messages. You can check the system logs using the journalctl command. Look for logs related to HPLIP or CUPS:

 

journalctl -xe | grep -i 'hplip\|cups\|python'

 

The logs may provide additional information about the error and help you pinpoint the issue.

 

Manual Configuration:

If the automatic setup with hp-setup continues to fail, you can try configuring the printer manually through the CUPS web interface. 

 

Open a web browser and enter the following URL:

 

http://localhost:631

 

From there, navigate to the "Administration" tab and click "Add Printer." Follow the on-screen instructions to manually configure your HP printer.

 

Update Python:

Ensure that your Python installation is up to date. Run the following command to check your Python version:

 

python3 --version

 

If it's not the latest version, consider updating it.

 

Check Dependencies:

Verify that all dependencies required by HPLIP are installed. The HPLIP documentation should list these dependencies, and you can install them using your package manager.

 

I hope this helps. 
 

Take care and have a good day.

 

Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!

 

Alden4
HP Support 

Raj_05
HP Support Community Moderator
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.