pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: problems with hplip package
On Wed, Aug 26, 2026 at 09:27:21PM +0100, Dave Tyson wrote:
> Running any of the utilities results in an error. e.g:
>
> hp-probe -bnet
> /usr/pkg/bin/hp-probe:45: SyntaxWarning: invalid escape sequence '\*'
> ("", "<bus>: cups, usb\*, net, bt, fw, par (\*default) (Note: bt and
> fw not supported in this release.)", "option", False),
> /usr/pkg/bin/hp-probe:49: SyntaxWarning: invalid escape sequence '\*'
> ("", "<filter list>: comma separated list of one or more of: scan,
> pcard, fax, copy, or none\*. (\*none is the default)", "option",
> False),
> Traceback (most recent call last):
> File "/usr/pkg/bin/hp-probe", line 37, in <module>
> from base.g import *
> File "/usr/pkg/share/hplip/base/g.py", line 240, in <module>
> sys_conf = SysConfig()
> File "/usr/pkg/share/hplip/base/g.py", line 185, in __init__
> ConfigBase.__init__(self, '/usr/pkg/etc/hp/hplip.conf')
> ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/pkg/share/hplip/base/g.py", line 90, in __init__
> self.read()
> ~~~~~~~~~^^
> File "/usr/pkg/share/hplip/base/g.py", line 131, in read
> self.conf.readfp(fp)
> ^^^^^^^^^^^^^^^^
> AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did
> you mean: 'read'?
This patch looks relevant, can you try it?
https://gitlab.archlinux.org/archlinux/packaging/packages/hplip/-/commit/694b4720d7802f6c679e810551de39d242b0b1b6
Cheers,
Thomas
Home |
Main Index |
Thread Index |
Old Index