qmk / qmk_distro_msys

A Windows one-click installer for the QMK CLI
https://msys.qmk.fm/
GNU General Public License v3.0
187 stars 68 forks source link

[Bug] error for non ascii chars in path #49

Closed derpicknicker1 closed 3 years ago

derpicknicker1 commented 3 years ago

Describe the Bug

I have a german 'Umlaut' (ü) in my windows username. qmk setup fails because of that. I can not figure out how to use an other path for AppData/Local/QMK...

Additional Context

Wrote configuration to 'C:/Users/FlorianSchütte/AppData/Local/QMK/qmk/qmk.ini'
Error: %s: %s ('ImportError', ImportError("cannot import name 'format_ansi' from 'milc' (C:/QMK_MSYS/mingw64/lib/python3.8/site-packages/milc/__init__.py)"))
Traceback (most recent call last):
  File "C:/QMK_MSYS/mingw64/lib/python3.8/site-packages/qmk_cli/script_qmk.py", line 99, in main
    import qmk.cli  # noqa
  File "X:/qmk_firmware/lib/python/qmk/cli/__init__.py", line 13, in <module>
    from . import doctor
  File "X:/qmk_firmware/lib/python/qmk/cli/doctor.py", line 12, in <module>
    from qmk.questions import yesno
  File "X:/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' (C:/QMK_MSYS/mingw64/lib/python3.8/site-packages/milc/__init__.py)
derpicknicker1 commented 3 years ago

Forget about this...my fault...

jackhumbert commented 3 years ago

Just for posterity & searchability, this specific error is caused by an out-of-date qmk_firmware checkout - the CLI looks for any folder that might be a qmk_firmware folder, and if you aren't aware of what's in your home folder (I wasn't), you'll get this when you start QMK MSYS.