Select to view content in your preferred language

AttributeError: module 'time' has no attribute 'clock'

2592
3
07-18-2022 03:05 PM
NatureTrust
Emerging Contributor

I am trying to run an external tool, Linkage Mapper, and receive the following error:

Python error on **line 129** of s1_getAdjacencies.py in Linkage Mapper Version 3.0.0:
AttributeError: module 'time' has no attribute 'clock'

It seems this is a Python issue, but I do not know how to correct it. Can anyone direct me to the correct resources?

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

clock ... deprecated in python 3.3, removed in 3.8

time.clock() removed in Python3.8 replace with time.perf_counter() · Issue #1510 · wxWidgets/Phoenix...

Pro uses python 3.9, so replacement is time.time()


... sort of retired...
0 Kudos
NatureTrust
Emerging Contributor

Would this then be an issue with the external tool, Linkage Mapper?

0 Kudos
DanPatterson
MVP Esteemed Contributor

No clue, but if Linkage Mapper is using python and its version is < 3.3, then yes


... sort of retired...
0 Kudos