Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2020 11:04:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244017] print/hplip: hp-setup fails
Message-ID:  <bug-244017-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244017

            Bug ID: 244017
           Summary: print/hplip: hp-setup fails
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: woodsb02@freebsd.org
          Reporter: gerard_seibert@outlook.com
          Assignee: woodsb02@freebsd.org
             Flags: maintainer-feedback?(woodsb02@freebsd.org)

FreeBSD 11.3-RELEASE-p6 FreeBSD 11.3-RELEASE-p6 amd64

When attempting to run "hp-setup", the following error message is displayed
when I run the utility as 'root' as HP recommends
https://developers.hp.com/hp-linux-imaging-and-printing/install/manual/dist=
ros/freebsd:

~ # hp-setup

HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup Utility ver. 9.0

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.

QStandardPaths: wrong ownership on runtime directory /var/run/user/1001, 10=
01
instead of 0
QStandardPaths: wrong ownership on runtime directory /var/run/user/1001, 10=
01
instead of 0
Searching... (bus=3Dnet, timeout=3D5, ttl=3D4, search=3D(None) desc=3D0, me=
thod=3Dslp)
Created directory: /var/net-snmp
Created directory: /var/net-snmp/mib_indexes
Traceback (most recent call last):
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 1305, in
NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 729, in
showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 1128, in
readwriteFaxInformation
    self.fax_number =3D to_unicode(d.getPhoneNum())
  File "/usr/local/share/hplip/fax/pmlfax.py", line 146, in getPhoneNum
    data =3D utils.printable(self.getPML(pml.OID_FAX_LOCAL_PHONE_NUM)[1])
  File "/usr/local/share/hplip/base/utils.py", line 958, in printable
    return s.translate(identity, unprintable)
TypeError: translate() takes exactly one argument (2 given)
Abort trap (core dumped)

If I run it as an unprivileged user:

~ $ hp-setup

HP Linux Imaging and Printing System (ver. 3.19.12)
Printer/Fax Setup Utility ver. 9.0

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.

Searching... (bus=3Dnet, timeout=3D5, ttl=3D4, search=3D(None) desc=3D0, me=
thod=3Dslp)
Traceback (most recent call last):
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 1305, in
NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 729, in
showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/local/share/hplip/ui5/setupdialog.py", line 1128, in
readwriteFaxInformation
    self.fax_number =3D to_unicode(d.getPhoneNum())
  File "/usr/local/share/hplip/fax/pmlfax.py", line 146, in getPhoneNum
    data =3D utils.printable(self.getPML(pml.OID_FAX_LOCAL_PHONE_NUM)[1])
  File "/usr/local/share/hplip/base/utils.py", line 958, in printable
    return s.translate(identity, unprintable)
TypeError: translate() takes exactly one argument (2 given)
Abort trap (core dumped)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244017-7788>