You are not logged in.

#1 2024-04-28 20:17:03

b42
Member
Registered: 2023-07-20
Posts: 145

[SOLVED] hplip error

I am trying to set up my printer after a fresh installation. In my previous installation everything worked fine.

Now when I am doing sudo hp-setup -i I get this:

/usr/bin/hp-setup:82: SyntaxWarning: invalid escape sequence '\*' 
  ("To specify the port on a multi-port JetDirect:", "--port=<port> (Valid values are 1\*, 2, and 3. \*default)", "option", False), 
/usr/bin/hp-setup:86: SyntaxWarning: invalid escape sequence '\*' 
  ("Type of queue(s) to install:", "-t<typelist> or --type=<typelist>. <typelist>: print*, fax\* (\*default) (-i mode only)", "option", False), 
Traceback (most recent call last): 
  File "/usr/bin/hp-setup", line 47, in <module> 
    from base.g import * 
  File "/usr/share/hplip/base/g.py", line 240, in <module> 
    sys_conf = SysConfig() 
               ^^^^^^^^^^^ 
  File "/usr/share/hplip/base/g.py", line 185, in __init__ 
    ConfigBase.__init__(self, '/etc/hp/hplip.conf') 
  File "/usr/share/hplip/base/g.py", line 90, in __init__ 
    self.read() 
  File "/usr/share/hplip/base/g.py", line 131, in read 
    self.conf.readfp(fp) 
    ^^^^^^^^^^^^^^^^ 
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? 

Anyone got idea how to fix this?

hp-check

gives the same output.

Last edited by b42 (2024-05-02 16:40:41)

Offline

#2 2024-04-28 20:54:31

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED] hplip error

Probably somewhat related to https://bbs.archlinux.org/viewtopic.php?id=295282 - python 3.12 issue.
Is your printer https://wiki.archlinux.org/title/CUPS#A … Everywhere compatible?
Otherwise configure it from http://localhost:631 - or fix up HPs script for them… the error there looks like same cause as https://bbs.archlinux.org/viewtopic.php?id=295288

Offline

#3 2024-05-02 16:40:22

b42
Member
Registered: 2023-07-20
Posts: 145

Re: [SOLVED] hplip error

seems like it has been fixed with the new hplip version.

Offline

Board footer

Powered by FluxBB