Hi Patrick, I did the pip upgrade and... it works !!!
I can now disconnect then reconnect.
Congratulations and thank you for your effort, much appreciated !
Yours sincerely,
Anthony.
It looks like the python library got missed for the 1.22.20250324 release. I have pushed a release just now. The pip package includes it's own copy of the native library, and you can see what version is being run from the logfile. Let me know if that fixes the issue.
Patrick, thanks for the feedback, unfortunately, I had already upgraded the Phidgets22 install to the latest (see screenshot). The Version: 1.22.20250106 was referring to the Python API, which is already the latest version ...
Hello Patrick,
thanks for investigating.
So I ran the code with logging and here is the attached logfile.
(note : I removed second open and so no more already open warning)
Yours sincerely,
Anthony.
... you would normally register event handler before calling open. You may also want to try the latest libraries and see if the problems persists. -Patrick
Thanks Patrick - it all works now as expected - it seems it was a combination of VS glitch/needing-deep-reset-of-environment and me not realising that I should look for the runtimes folder in Release.
Thanks Patrick, it's .NET Framework (net481) so I guess I need to copy native DLLs from the Nuget store. Note that native dlls do not get included during build process into eg bin\Release folder which is unusual. So if I copy ...
... manual work to make sure the native library is in the right location during packaging (although I would expect it to just work here as well). -Patrick