sushantnadkar/vcgencmd

raise Exception("{0} must be one of {1}".format(source, source_list))

Opened this issue · 0 comments

>>> vcg.measure_clock('H264')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/vcgencmd/vcgencmd.py", line 87, in measure_clock
    out = self.__verify_command("measure_clock ", clock, self.__sources.get("clock"))
  File "/usr/local/lib/python3.7/dist-packages/vcgencmd/vcgencmd.py", line 26, in __verify_command
    raise Exception("{0} must be one of {1}".format(source, source_list))
Exception: h264 must be one of ['arm', 'core', 'H264', 'isp', 'v3d', 'uart', 'pwm', 'emmc', 'pixel', 'vec', 'hdmi', 'dpi']

There is no way that while I am trying the right command, it says it is wrong.