Thank you for that: I can now see that pyUSB 1.0.2 gives the same results as pyUSB 1.2 with python 3.8 (program works only every second time it is run) so I have to look elsewhere for this bug.
(After I changed use dict.iteritems() -removed from python 3- to dict.items() the program ran OK every time.)
Pete
(After I changed use dict.iteritems() -removed from python 3- to dict.items() the program ran OK every time.)
Pete
(Dec-30-2021, 03:35 AM)Larz60+ Wrote: you can force pip to install an earlier version of pyusb.
Here are the release versions: https://pypi.org/project/pyusb/#history
usepip install pyusb==1.0.0a2
Change version number to desired version.