You are not logged in.

#1 2021-12-14 11:30:19

broken pipe
Member
Registered: 2010-12-10
Posts: 248

[SOLVED] python 3.10 and hplip update stopped printing

Hi all,

after upgrading from python 3.9 to 3.10 and hplip, printing stopped working. The firmware is no longer loaded on the printer (HP 1020).

Log message:

Dez 14 12:24:02 print-server systemd-udevd[221]: 1-1: Process '/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer 001:002'' failed with exit code 1.

Error message:

root@print-server:[markus]> /usr/bin/hp-config_usb_printer 001:002
Traceback (most recent call last):
  File "/usr/bin/hp-config_usb_printer", line 140, in <module>
    device_uri, sane_uri, fax_uri = device.makeURI(param)
  File "/usr/share/hplip/base/device.py", line 334, in makeURI
    result_code, uri = hpmudext.make_usb_uri(usb_bus_id, usb_dev_id)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

maybe the core issue!?

PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Any ideas?


edit: solved with the latest hplip update smile

Last edited by broken pipe (2021-12-20 12:19:50)

Offline

#2 2021-12-14 14:52:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,375

Offline

Board footer

Powered by FluxBB