jawo
September 12, 2024, 2:09pm
1
Hi everyone,
I have updated SweepMe from 1.5.5 to 1.5.6. When running the same settings, I get the error message, that the module time (which is loaded in one of the custom drivers), has no attribute “clock”. Could you please help me?
Kind regards and many thanks!
Jakob
1 Like
Axel
September 12, 2024, 2:39pm
2
Hi Jakob,
this is for sure related to the change of the Python version from SweepMe! 1.5.5 (Python 3.6) to SweepMe! 1.5.6 (Python 3.9).
In Python 3.9 the use of time.clock() is deprecated. We also had to change all SweepMe! drivers using this function to work with SweepMe! 1.5.6.
You can change it to time.time() or time.perf_counter() to fix it:
https://docs.python.org/3/library/time.html#time.time
https://docs.python.org/3/library/time.html#time.perf_counter
A full overview about the changes in SweepMe! 1.5.6 can be found here:
https://sweep-me.net/changes/version_1-5-6
We also have a migration guide that should ease the transition towards SweepMe! 1.5.6
https://wiki.sweep-me.net/wiki/Migration_guide
Hope this helps and let me know if you still face any issues with the upgrade.
Best, Axel
2 Likes