HARK: cannot import name 'clock' from 'time'

Describe the bug When I try to load some of HARK using:

from HARK.distribution import (
    MeanOneLogNormal, 
    add_discrete_outcome_constant_mean
)

I get an error:

cannot import name 'clock' from 'time' (unknown location)

Expected behavior I expected the packages to load, as they do when using Python 3.9

Desktop:

  • OS: MacOS Ventura
  • Econ-ARK and Python version 0.10.2 and python 3.10

Additional context I believe the time.clock function is no longer supported starting with Python 3.8: https://stackoverflow.com/questions/65499013/importerror-cannot-import-name-clock-from-time-unknown-location

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Great, thanks!

damon

Hi @nomadj1s! Thanks for opening the issue, could you please update your HARK version? 0.10.2 is pretty old (~2.5 years). That should solve this issue 😃