greyghost Posted October 13, 2023 at 11:41 AM Posted October 13, 2023 at 11:41 AM Hallo, während ein "enumerate" bei mir problemlos funktioniert, bekomme ich bei Kombination mit "--execute" leider nur Fehlermeldungen wie diese: $ tinkerforge --host tf1 enumerate --execute echo Exception in thread Callback-Processor: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/lib/python3.9/threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "/usr/bin/tinkerforge", line 2243, in callback_loop self.dispatch_packet(data) File "/usr/bin/tinkerforge", line 2135, in dispatch_packet cb(uid, connected_uid, position, hardware_version, File "/usr/bin/tinkerforge", line 38025, in callback execute_response(ctx, args.execute, names, values) File "/usr/bin/tinkerforge", line 792, in execute_response formatted_values[name] = Tuple(value) File "/usr/bin/tinkerforge", line 785, in __init__ tuple.__init__(self, *args) TypeError: object.__init__() takes exactly one argument (the instance to initialize) Ich hatte das genau so in (wenn auch alten) Beispielen gefunden. Mache ich etwas falsch? Quote
photron Posted October 16, 2023 at 08:57 AM Posted October 16, 2023 at 08:57 AM Da scheint sich was in Python geändert zu haben. Dieser Code hat in älteren Python Versionen funktioniert. Ich habe das korrigiert. Teste bitte mal Beta2. tinkerforge_shell_bindings_2_1_33_beta2.zip 1 Quote
greyghost Posted November 1, 2023 at 08:13 AM Author Posted November 1, 2023 at 08:13 AM Sorry für die späte Antwort (war anders beschäftigt). Habe gerade die Beta2 heruntergeladen und ausprobiert, das funktioniert jetzt wie angedacht. Vielen Dank! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.