Page 1 of 1

[SOLVED] Creating Toshiba printer installation package

Published: April 26, 2024 - 10:14 AM
by sir_renater
Good morning,

I am looking to create a package to automatically deploy our Toshiba printers.

The driver is a unified driver package that I cannot use in creating a Python package, so I wanted to use the printer import package which seems to allow retrieving the configuration of a printer already deployed on a workstation.

When I try to run it, I get the following error:

Code: Select all

*** Remote Interpreter Reinitialized ***
Command Line : update-package-sources "C:\waptdev\gip-printer-import_20.1.2-8_windows_6.0_PROD\WAPT\.."
Using config file: C:\Users\dany.jeulin\AppData\Local\waptconsole\waptconsole.ini
2024-04-26 10:08:59,434 CRITICAL Fatal error in update_package  TypeError: the JSON object must be str, bytes or bytearray, not list:
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 8546, in call_python_code
    hookdata = hook_func()
  File "C:\waptdev\gip-printer-import_20.1.2-8_windows_6.0_PROD\update_package.py", line 65, in update_package
    selected_printers = json.loads(
  File "json\__init__.py", line 341, in loads
TypeError: the JSON object must be str, bytes or bytearray, not list

FATAL ERROR : TypeError: the JSON object must be str, bytes or bytearray, not list
Exit code:  3
>>> 
Is this a known problem?

Re: Creating a Toshiba printer installation package

Published: April 29, 2024 - 5:56 PM
by jpele
Hello,
I've just pushed a patch to the package; this should fix it.

Regards,
Jimmy