OpenBekenIOT / hid_download_py

BK7231T/BK7231N python-based flasher (both read and write), used mostly to flash https://github.com/openshwprojects/OpenBK7231T_App
61 stars 17 forks source link

AttributeError: module 'bkutils' has no attribute 'CHIP_TYPE_BK7231' #6

Open nhangeland opened 2 years ago

nhangeland commented 2 years ago

After installing according to instructions, i received this error message when trying to run hidprogram. AttributeError: module 'bkutils' has no attribute 'CHIP_TYPE_BK7231'

Issue seems to be related to this commit: https://github.com/OpenBekenIOT/hid_download_py/commit/137a4c9298e3274c05d76c63720c6db675bf441d

Uncommenting the lines solved the issue.

staspika commented 1 year ago

Same error here:

$ ./hidprogram Traceback (most recent call last): File "./hidprogram", line 19, in <module> "bk7231": bkutils.CHIP_TYPE_BK7231, AttributeError: module 'bkutils' has no attribute 'CHIP_TYPE_BK7231'

Reverting the commit mentioned by @nhangeland solves the issue. Apparently, according to README.md, HID usage is "disabled in this repo":