Vorrei creare un pacchetto per distribuire automaticamente le nostre stampanti Toshiba.
Il driver è un pacchetto driver unificato che non posso utilizzare per creare un pacchetto Python, quindi ho voluto utilizzare il pacchetto di importazione della stampante che sembra consentire di recuperare la configurazione di una stampante già distribuita su una workstation.
Quando provo ad eseguirlo, ricevo il seguente errore:
Codice: Seleziona tutto
*** 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
>>> 