Skip to content

Python - module 'time' has no attribute 'clock' #12

@MatejBosansky

Description

@MatejBosansky

I tired to run Python examples but for all of them I received error

12.48inch e-paper B Demo...
EPD init...
set wiringPi lib success !!!
clearing...
Traceback (most recent call last):
  File "/home/pi/eink2/12.48inch_e-Paper_Module_Code/python/examples/epd_12in48B_test.py", line 29, in <module>
    epd.clear()
  File "/home/pi/eink2/12.48inch_e-Paper_Module_Code/python/lib/epd12in48b.py", line 231, in clear
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

Looks like your epd12in48b.py driver is not compatible with latest python. Based on replies in
https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8
time.clock() was removed in 3.8 Python version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions