Skip to content
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

Can't setup QMK in MacOS Big Sur #12501

Closed
zk2004mb opened this issue Apr 6, 2021 · 3 comments
Closed

Can't setup QMK in MacOS Big Sur #12501

zk2004mb opened this issue Apr 6, 2021 · 3 comments

Comments

@zk2004mb
Copy link

zk2004mb commented Apr 6, 2021

After installation in brew, the QMK can't be called.
Here is the error info:

(base) xxxxx@xxxxxx-iMac-Pro ~ % qmk
Error: %s: %s ('ImportError', ImportError("cannot import name 'format_ansi' from 'milc' (/usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/milc/init.py)"))
Traceback (most recent call last):
File "/usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/qmk_cli/script_qmk.py", line 99, in main
import qmk.cli # noqa
File "/Users/xxx/qmk_firmware/lib/python/qmk/cli/init.py", line 13, in
from . import doctor
File "/Users/xxx/qmk_firmware/lib/python/qmk/cli/doctor.py", line 13, in
from qmk.questions import yesno
File "/Users/xxx/qmk_firmware/lib/python/qmk/questions.py", line 4, in
from milc import cli, format_ansi
ImportError: cannot import name 'format_ansi' from 'milc' (/usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/milc/init.py)

System: MacOS Big Sur 11.2.1

@zk2004mb
Copy link
Author

zk2004mb commented Apr 6, 2021

Also when I check the milc package, it seems format_ansi has been removed.

Version 1.3.0
You can now set the program version number with os.environ['MILC_APP_VERSION'] = '1.2.3'
New global arguments: –unicode and –no-unicode
ANSIFormatter, ANSIStrippingFormatter, ANSIEmojiLoglevelFormatter, and ANSIStrippingEmojiLoglevelFormatter have been removed in favor of format_ansi() being color aware. The new MILCFormatter is being used in its place.

How should I deal with this?

@jeroentbt
Copy link

Your qmk_firmware directory probably is out of date.
Try renaming it and run qmk again. If that works you're probably just behind on upstream.

@zk2004mb
Copy link
Author

Your qmk_firmware directory probably is out of date.
Try renaming it and run qmk again. If that works you're probably just behind on upstream.

Thank you! It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants