-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] qmk command failure #13079
Comments
As well as From e.g. QMK MSYS, when I checked out the develop branch I needed to |
when pyusb is not installed, at this line,
edit: above is the case when user.developer == True. (and pyusb is not installed) |
These two modules are listed in the "requirements-dev.txt" file, but not in the "requirements.txt" file, which is what util/qmk_install.sh uses, among other things. |
More specifically, #12828 added The above PR also changed the This is less of an issue for those using the global @skullydazed could you clarify: the comment here indicates that |
moving pyusb and hid from requirements-dev.txt to requirements.txt is not a solution.
quote from #12978 (comment) so I guess we are still at a situation where only first aid is applied. |
After writing that comment I created (and we merged) #13199. If there is still a problem being encountered we can continue to work through it. I know it's frustrating when you are subject to a corner case but we are trying to solve the general problem here (allowing us to add new requirements without breaking the ability to use essential commands like |
Adding a Python dependency which has a native dependency could be described as a corner case. I'd quibble, though: I think "running I tried re-running the commands in a Docker container per #12978 (comment), and still observed the same error. Whereas I'd expect the commands given in the docs to work in a fresh Linux environment. |
It's not happening for most people, which is why I call it a corner case. I'm dedicated to making this work.
Apparently I haven't broken my machine enough so that it "doesn't work on my machine." 🙂 I'll get the metaphorical sledgehammer out to properly recreate your situation, but I may not be able to do that for a few days. |
The effort is appreciated. Thanks for looking into it. :) |
I'm also getting this error:
Although running
I tried following issues instruction but I had no luck solving my problem. |
This helped me move forward through the setup guide. Thanks! |
#13324 has been merged, but I still get an error on MSYS2.
The workaround for this issue is to run |
and the utils script did not help either. The only sub commands I get are
I've did the setup in the past, and updated that local repo, so maybe it has something to do with that. Any ideas what I can do? Update: What solved the problem for me was |
This is a new problem which I have addressed in qmk/qmk_cli#63. @CreamyCookie Glad you got that figured out. |
@skullydazed almost, almost there. Our scenario follows this description.
Let's assume one had qmk command version 0.0.45 installed and the repository was at somewhere around tag/0.12.34 . Yes, I know updating qmk command to the latest will solve the situation. |
I think it would make sense to mention the update command ( |
Describe the Bug
edited after seeing rgoulter's comment
qmk script does not properly detect absence of required modules, namely
hid
andpyusb
.the error message looks like this.
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
#12455 (comment)
The text was updated successfully, but these errors were encountered: