qmk/qmk_firmware

[Bug] qmk command failure

オープン

#13,079 opened on 2021/06/02

 (21 件のコメント) (0 件のリアクション) (0 人の担当者)C (43,867 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (20,368 個のスター)
PR merge metrics
 (平均マージ 20d 9h) (30d で 27 merged PRs)

説明

Describe the Bug

edited after seeing rgoulter's comment qmk script does not properly detect absence of required modules, namely hid and pyusb.

the error message looks like this.

File "${HOME}/qmk_firmware/lib/python/qmk/cli/console.py", line 9, in import hid ModuleNotFoundError: No module named 'hid'

this occurs after renewing a repository across the last breaking change.

How to reproduce

condition 1: make sure user.developer is set to None or False with qmk config. ex. qmk config user.developer=None condition 2: make sure hid module is not installed. ex. pip3 uninstall hid

then qmk hello to test its behaviour.

Quick fix

manually install required modules for now. pip3 install hid pyusb

or

comment out this line > # from . import console

System Information

Additional Context

https://github.com/qmk/qmk_firmware/issues/12455#issuecomment-852427803

コントリビューターガイド