Thanks for the patch. The patch is the correct approach, but if you grep the whole source code of HPLIP for "QMessageBox" you find many more places (at least 25) with this problem.
To the HPLIP developers at HP: This is not a problem of distribution version support. It is a general bug of incorrectly using "QMessageBox". -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to hplip in Ubuntu. https://bugs.launchpad.net/bugs/1745383 Title: setup.py crashed with TypeError in readwriteFaxInformation(): critical(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton): argument 5 has unexpected type 'StandardButtons' Status in HPLIP: New Status in hplip package in Ubuntu: In Progress Bug description: Happened while creating print/fax queues for the HP OfficeJet Pro 8730 with "hp-setup". Queues got created, seems that the crash happened afterwards. Main window did not crash, only some sub process. ProblemType: Crash DistroRelease: Ubuntu 18.04 Package: hplip-data 3.17.10+repack0-2 ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13 Uname: Linux 4.13.0-25-generic x86_64 ApportVersion: 2.20.8-0ubuntu6 Architecture: amd64 CurrentDesktop: GNOME Date: Thu Jan 25 10:52:09 2018 Dependencies: gcc-7-base 7.2.0-18ubuntu2 libc6 2.26-0ubuntu2.1 [origin: unknown] libgcc1 1:7.2.0-18ubuntu2 liblzma5 5.2.2-1.3 xz-utils 5.2.2-1.3 ExecutablePath: /usr/share/hplip/setup.py InstallationDate: Installed on 2015-04-30 (1001 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422) InterpreterPath: /usr/bin/python3.6 MachineType: LENOVO 20A8X50300 PackageArchitecture: all Papersize: letter ProcCmdline: /usr/bin/python3 /usr/bin/hp-setup ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-25-generic root=UUID=ff9fee12-fd92-4cfd-88bf-c8f57ffba318 ro quiet splash nomdmonddf nomdmonisw vt.handoff=7 Python3Details: /usr/bin/python3.6, Python 3.6.4, python3-minimal, 3.6.3-0ubuntu2 PythonArgs: ['/usr/bin/hp-setup'] PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-2ubuntu1 SourcePackage: hplip Title: setup.py crashed with TypeError in readwriteFaxInformation(): critical(QWidget, str, str, buttons: Union[QMessageBox.StandardButtons, QMessageBox.StandardButton] = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton): argument 5 has unexpected type 'StandardButtons' UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip libvirt libvirtd lpadmin lxd plugdev sambashare sudo wireshark dmi.bios.date: 09/02/2014 dmi.bios.vendor: LENOVO dmi.bios.version: GRET40WW (1.17 ) dmi.board.asset.tag: Not Available dmi.board.name: 20A8X50300 dmi.board.vendor: LENOVO dmi.board.version: SDK0E50512 STD dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvrGRET40WW(1.17):bd09/02/2014:svnLENOVO:pn20A8X50300:pvrThinkPadX1Carbon2nd:rvnLENOVO:rn20A8X50300:rvrSDK0E50512STD:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.family: ThinkPad X1 Carbon 2nd dmi.product.name: 20A8X50300 dmi.product.version: ThinkPad X1 Carbon 2nd dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/hplip/+bug/1745383/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

