-
-
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
qmk setup command fails? #12455
Comments
Make sure your repo is up to date. |
Updating it worked partially - now it begins to install, says there are missing packages, and asks to install them. Saying yes seems to freeze the program - not that it doesn't respond, but it doesn't do anything and says it's working on stuff when you go to close it. Here's the output below: Would you like to install dependencies? [Y/n] Y |
Indicates you downloaded the .zip file from GitHub, rather than letting Make sure everything you want to keep in there is backed up, then delete the |
Allowing it to set up its own repository fixed that error, but the dependencies are having trouble installing themselves. It asks if I'd like to, yes, and then it hangs up. It doesn't throw an error or anything; it just sits doing nothing until you close the window. Here's the output: Would you like to install the dependencies? [Y/n] Y |
This line:
should be a little more detailed now, so your repo is not quite up to date.
|
Updating the CLI Python package didn't change anything, so I did a fresh install and QMK is up and running after putting the MingW64.exe into the QMK_MSYS folder. Thank you for the help! |
i'm seeing the same issue on OSX with the brew install method, my current theory is that somehow the brew / pip based install paths on mac have some env leakage, so i'm trying out the nix shell on my computer to see if that works |
|
@cartazio your repo is out of date, as mentioned earlier. The Python code in the qmk_firmware repo is expecting one of the dependencies (MILC) of the QMK CLI Python package to have a function named If you have not committed to your master branch you can simply run |
Yup I realized that later today and got stuff mostly working. ;) |
Thx! |
I have the same problem in WSL. The qmk cli was installed just before. It's also the thing cloning the repo.
|
@OBenjaminT this is a different problem, you need to install hidapi. |
Thanks, I did that, then had some other problems but existing issues already answered those. |
Git has unstashed/uncommitted changes. I have this problem i need help to solove this |
me too |
Replying to a closed issue is not the way to seek help. It would be better to come and ask questions on the QMK discord server, or post a new issue with your specific problem. |
Thanks for the advice, I would do that, my apologies! |
While setting up the QMK environment with Msys2 on Windows, things installed correctly until the qmk setup command. It throws the error below. What does an import error mean and how can I fix it?
$ qmk setup Error: %s: %s ('ImportError', ImportError("cannot import name 'format_ansi' from 'milc' (D:/oi23/documents/qmk_toolbox/msys2/mingw64/lib/python3.8/site-packages/milc/__init__.py)")) Traceback (most recent call last): File "D:/oi23/documents/qmk_toolbox/msys2/mingw64/lib/python3.8/site-packages/qmk_cli/script_qmk.py", line 99, in main import qmk.cli # noqa File "D:/oi23/Documents/QMK_Toolbox/qmk_firmware/lib/python/qmk/cli/__init__.py", line 13, in <module> from . import doctor File "D:/oi23/Documents/QMK_Toolbox/qmk_firmware/lib/python/qmk/cli/doctor.py", line 12, in <module> from qmk.questions import yesno File "D:/oi23/Documents/QMK_Toolbox/qmk_firmware/lib/python/qmk/questions.py", line 4, in <module> from milc import cli, format_ansi ImportError: cannot import name 'format_ansi' from 'milc' (D:/oi23/documents/qmk_toolbox/msys2/mingw64/lib/python3.8/site-packages/milc/__init__.py)
The text was updated successfully, but these errors were encountered: