cancel
Showing results for 
Search instead for 
Did you mean: 

Hi all: After upgrading ecosystem to 4.0.The python is 3.10.4,when hp-setup,the "SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats.".How can i do?or how can I install python 3.82 online?

zxiao.4
Associate III

Hplip is only 3.19.12, and there is no higher version.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @zxiao.4​ 

An updated package hplip 3.19.12-r2 is available from «apt-get install» command:

root@stm32mp1:~# apt-cache policy hplip
hplip:
  Installed: (none)
  Candidate: 3.19.12-r2
  Version table:
     3.19.12-r2 500
        500 http://packages.openstlinux.st.com/4.0 kirkstone/updates armhf Packages
     3.19.12-r0 500
        500 http://packages.openstlinux.st.com/4.0 kirkstone/untested armhf Packages

After installing hplip (and python3-dbus too) with the command:

root@stm32mp1:~# apt-get install hplip python3-dbus

hp-setup does no longer generate the error you reported earlier:

root@stm32mp1:~# 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.
 
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
 
 
Using connection type: usb
 
error: No device selected/specified or that supports this functionality.

Best regards,

--JM

View solution in original post

4 REPLIES 4
Jean-Marc B
ST Employee

Hello @zxiao.4​ 

Indeed, there is a break introduced with Python 3.10 as mentioned here: https://bugs.python.org/issue40943

related to this Python PEP published here: https://peps.python.org/pep-0353/

From what I can see, there is a fix to support Python 3.10 in last hplip versions.

I will try to bring a patch to the hplip package and will keep you posted.

Anyway, to reply to your question, there is no easy way to downgrade Python to python3.8 as provided in the ecosystem 3.1. Without any fix, the best way would be to come back to ecosystem 3.1 instead of ecosystem 4.0.

Best regards,

--JM

Edition: fix typos

OK,thanks.​

Hi @zxiao.4​ 

An updated package hplip 3.19.12-r2 is available from «apt-get install» command:

root@stm32mp1:~# apt-cache policy hplip
hplip:
  Installed: (none)
  Candidate: 3.19.12-r2
  Version table:
     3.19.12-r2 500
        500 http://packages.openstlinux.st.com/4.0 kirkstone/updates armhf Packages
     3.19.12-r0 500
        500 http://packages.openstlinux.st.com/4.0 kirkstone/untested armhf Packages

After installing hplip (and python3-dbus too) with the command:

root@stm32mp1:~# apt-get install hplip python3-dbus

hp-setup does no longer generate the error you reported earlier:

root@stm32mp1:~# 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.
 
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
 
 
Using connection type: usb
 
error: No device selected/specified or that supports this functionality.

Best regards,

--JM

Thank you very much for helping me and solving my big problem.