Bug 1976465 - [hplip] PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Summary: [hplip] PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:358f67abe3f1e99b1b32742404f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-26 11:27 UTC by Nathan
Modified: 2021-07-11 01:03 UTC (History)
5 users (show)

Fixed In Version: hplip-3.21.2-8.fc33 hplip-3.21.2-8.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-11 01:02:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (700 bytes, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details
File: cpuinfo (2.15 KB, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details
File: environ (934 bytes, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details
File: mountinfo (2.88 KB, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details
File: namespaces (172 bytes, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details
File: open_fds (979 bytes, text/plain)
2021-06-26 11:27 UTC, Nathan
no flags Details

Description Nathan 2021-06-26 11:27:36 UTC
Description of problem:
The problem occurred after the pc restarted. 

Version-Release number of selected component:
hplip-3.21.2-6.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/system.slice/cups.service
cmdline:        /usr/bin/python3 -B /usr/lib/cups/backend/hpfax
crash_function: probeDevices
exception_type: SystemError
executable:     /usr/lib/cups/backend/hpfax
interpreter:    python3-3.10.0~b3-1.fc35.x86_64
kernel:         5.13.0-0.rc7.20210624git7426cedc7dad.54.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
device.py:558:probeDevices:SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Traceback (most recent call last):
  File "/usr/lib/cups/backend/hpfax", line 151, in <module>
    probed_devices = device.probeDevices(['usb', 'par'], filter={'fax-type': (operator.gt, 0)})
  File "/usr/share/hplip/base/device.py", line 558, in probeDevices
    result_code, data = hpmudext.probe_devices(bn)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Local variables in innermost frame:
bus: ['usb', 'par']
timeout: 10
ttl: 4
filter: {'fax-type': (<built-in function gt>, 0)}
search: ''
net_search: 'slp'
back_end_filter: ('hp',)
num_devices: 0
ret_devices: {}
b: 'usb'
bn: 1

Comment 1 Nathan 2021-06-26 11:27:44 UTC
Created attachment 1794731 [details]
File: backtrace

Comment 2 Nathan 2021-06-26 11:27:46 UTC
Created attachment 1794732 [details]
File: cpuinfo

Comment 3 Nathan 2021-06-26 11:27:48 UTC
Created attachment 1794733 [details]
File: environ

Comment 4 Nathan 2021-06-26 11:27:50 UTC
Created attachment 1794734 [details]
File: mountinfo

Comment 5 Nathan 2021-06-26 11:27:52 UTC
Created attachment 1794735 [details]
File: namespaces

Comment 6 Nathan 2021-06-26 11:27:53 UTC
Created attachment 1794736 [details]
File: open_fds

Comment 7 Zdenek Dohnal 2021-06-28 05:15:35 UTC
Hi Nathan,

thank you for reporting the issue!

It is caused by Python 3.10 change[1]:

The PY_SSIZE_T_CLEAN macro must now be defined to use PyArg_ParseTuple() and Py_BuildValue() formats which use #: es#, et#, s#, u#, y#, z#, U# and Z#. See Parsing arguments and building values and the PEP 353. (Contributed by Victor Stinner in bpo-40943.)

I'll update hplip.


[1] https://docs.python.org/3.10/whatsnew/3.10.html#id2

Comment 8 Zdenek Dohnal 2021-06-28 12:45:40 UTC
I can reproduce in rawhide by running /usr/lib/cups/backend/hpfax.

I'll see where else it needs to be fixed.

Comment 9 Zdenek Dohnal 2021-06-29 12:09:13 UTC
Reported upstream https://bugs.launchpad.net/hplip/+bug/1933973 .

Comment 10 Zdenek Dohnal 2021-06-30 04:13:39 UTC
*** Bug 1977478 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2021-07-02 06:20:08 UTC
FEDORA-2021-547a66e937 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-547a66e937

Comment 12 Fedora Update System 2021-07-02 06:54:34 UTC
FEDORA-2021-205d10fc51 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-205d10fc51

Comment 13 Fedora Update System 2021-07-03 01:04:26 UTC
FEDORA-2021-205d10fc51 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-205d10fc51`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-205d10fc51

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2021-07-03 01:04:34 UTC
FEDORA-2021-547a66e937 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-547a66e937`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-547a66e937

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2021-07-11 01:02:52 UTC
FEDORA-2021-205d10fc51 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-07-11 01:03:08 UTC
FEDORA-2021-547a66e937 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.