HP-plugin -i fails

I need to install my proprietary plugin on my home server for my HP printer to be able to print with CUPS. When I executed hp-plugin -i it throws errors.

hp-plugin -i
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file

When I point to the path where I have the plugin downloaded it fails there.

error: /home/serveruser/.hplip/hplip-3.25.2-plugin.run file does not match its checksum. File may have been corrupted or altered

My only search results for similar errors are 6+ years old and I’m stuck. I tried running from an older snapshot, but did not resolve the issue.

Trying to run hp-lip as downloaded from HP that is unable to install due to a python3-pyqt4 requirement not being met. Installing hplip through zypper does not resolve my plugin issue either.

Is there some magic I might try to get my printer back in business?

Use
hp-plugin
executed as user.

I’m doing that and that throws the errors.

Maybe you have to install a lower python Version?

Post
python3 --version

Also post
zypper se -si hplip

~> python3 --version
Python 3.13.5
~> sudo zypper se -si hplip
[sudo] password for root: 
Loading repository data...
Reading installed packages...

S  | Name             | Type    | Version    | Arch   | Repository
---+------------------+---------+------------+--------+-----------
i+ | hplip            | package | 3.25.2-1.1 | x86_64 | repo-oss
i+ | hplip-hpijs      | package | 3.25.2-1.1 | x86_64 | repo-oss
i  | hplip-sane       | package | 3.25.2-1.1 | x86_64 | repo-oss
i+ | hplip-udev-rules | package | 3.25.2-1.1 | x86_64 | repo-oss

To be complete:

NAME="openSUSE Tumbleweed-Slowroll"
# VERSION="20250701"
ID="opensuse-slowroll"
ID_LIKE="opensuse-tumbleweed opensuse suse"
VERSION_ID="20250701"
PRETTY_NAME="openSUSE Tumbleweed-Slowroll"

@t_neo copy the run file to say $HOME;

chmod 0755 hplip-3.25.2-plugin.run
./hplip-3.25.2-plugin.run --noexec --target ./plugin
cd plugin/
./hplip-plugin-install -i

I have installed slowroll now and I get this when I install via the download option in hp-plugin:

stephan@vbox:~> hp-plugin 
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file

HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Checking for network connection...
Downloading plug-in from: 
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
Receiving digital keys: /usr/bin/gpg --homedir /home/stephan/.hplip/.gnupg --no-permission-warning --keyserver pgp.surf.nl --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 Plug-in installation successful 

Done.
stephan@vbox:~> 

As the download does not work I have downloaded the files manually. But that leads to the checksum error. When I let the hp-plugin -i download the file it does not download anything, it throws an error. Then it moves to install something, but that does not happen for 45 minutes and I terminated the process.

error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file

HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


HP Linux Imaging and Printing System (ver. 3.25.2)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.25.2 |
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)            
  p           Specify a path to the plug-in (advanced)          
  q           Quit hp-plugin (skip installation)                

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: 
Downloading plug-in: [\                                                                                      ] 0%   error: Error: 'ConfigParser' object has no attribute 'readfp'. Retrying with read_file
Receiving digital keys: /usr/bin/gpg --homedir /home/admin/.hplip/.gnupg --no-permission-warning --keyserver pgp.surf.nl --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
 

----------------------
| INSTALLING PLUG-IN |
----------------------

The error message suggests that hp-plugin depends on a python version older than 3.12. “readfp” functions where removed from python-3.12 onwards.

When you use
hp-plugin
with the automatically download function, it take some time to download.

So maybe you have to wait.

When I try to do as you suggest it throws another error:

~/downloads> ./hplip-3.25.2-plugin.run --noexec --target ./plugin
Creating directory ./plugin
Verifying archive integrity...  100%   All good.
Uncompressing HPLIP 3.25.2 Plugin Self Extracting Archive  100%  
~/downloads> cd plugin/
~/downloads/plugin> ./hplip-plugin-install -i
Traceback (most recent call last):
  File "./plugin_install.py", line 98, in <module>
    from base.g import *
  File "/usr/share/hplip/base/g.py", line 133
    log.error(f"Error: {e}. Retrying with read_file")
                                                   ^
SyntaxError: invalid syntax

@t_neo sounds like a slowroll bug…

Hmm. I’ll check bugzilla. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.