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

Error right after qmk setup #13191

Closed
ghost opened this issue Jun 12, 2021 · 5 comments
Closed

Error right after qmk setup #13191

ghost opened this issue Jun 12, 2021 · 5 comments
Labels
help wanted question stale Issues or pull requests that have become inactive without resolution.

Comments

@ghost
Copy link

ghost commented Jun 12, 2021

I just order the Anavi Macropad8 and while I am waiting for it to arrived I wanted to setup my own keymap. After pulling from git I run "qmk setup"

$ qmk setup
Ψ Found qmk_firmware at /home/jim/Downloads/qmk_firmware.
Ψ QMK Doctor is checking your environment.
Ψ QMK home: /home/jim/Downloads/qmk_firmware
Ψ Detected Linux.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 11.1.0
Ψ Found avr-gcc version 11.1.0
⚠ We do not recommend avr-gcc newer than 8. Downgrading to 8.x is recommended.
Ψ Found avrdude version 6.3
Ψ Found dfu-util version 0.10
Ψ Found dfu-programmer version 0.7.2
Ψ Submodules are up to date.
Ψ QMK is ready to go, but minor problems were found

So only thing is a warning about avr-gcc that is available on Arch Linux is to new.

Next I try to build the default keymap:

$ qmk setup
Ψ Found qmk_firmware at /home/jim/Downloads/qmk_firmware.
Ψ QMK Doctor is checking your environment.
Ψ QMK home: /home/jim/Downloads/qmk_firmware
Ψ Detected Linux.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 11.1.0
Ψ Found avr-gcc version 11.1.0
⚠ We do not recommend avr-gcc newer than 8. Downgrading to 8.x is recommended.
Ψ Found avrdude version 6.3
Ψ Found dfu-util version 0.10
Ψ Found dfu-programmer version 0.7.2
Ψ Submodules are up to date.
Ψ QMK is ready to go, but minor problems were found

Does anyone know what is going on? Thanks for the help.

@rgoulter
Copy link
Contributor

@AstroDrabb looks like you've copy-pasted the same code snipped twice. What was the actual error listing from qmk compile -kb anavi/macropad8 -km default?

@ghost
Copy link
Author

ghost commented Jun 13, 2021

@AstroDrabb looks like you've copy-pasted the same code snipped twice. What was the actual error listing from qmk compile -kb anavi/macropad8 -km default?

My bad. Here it is:

$ qmk compile -kb anavi/macropad8 -km default
<class 'AttributeError'>
☒ 'MILC' object has no attribute '_subcommand'
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/milc/milc.py", line 467, in __call__
    return self.__call__()
  File "/usr/lib/python3.9/site-packages/milc/milc.py", line 472, in __call__
    return self._entrypoint(self)
  File "/home/jim/Downloads/qmk_firmware/lib/python/qmk/decorators.py", line 20, in wrapper
    if cli.config_source[cli._subcommand.__name__]['keyboard'] != 'argument':
AttributeError: 'MILC' object has no attribute '_subcommand'

pulled r5.a0848659 from:
https://github.com/qmk/qmk_firmware.git

python-nose2 / 0.10.0-1
python-pep8-naming / 0.11.1-1
yapf / 0.31.0-1
python-milc / 1.3.0-1
qmk / 0.0.48-1
python-appdirs / 1.4.4-3
python-argcomplete / 1.12.1-1
python-colorama / 0.4.4-3
python-dotty-dict / 1.3.0-3
python-hidapi / 0.10.1-1
python-hjson / 3.0.2-3
python-jsonschema / 3.2.0-4
python-milc / 1.3.0-1
python-pygments / 2.9.0-1
python-pyusb / 1.1.1-1

@rgoulter
Copy link
Contributor

rgoulter commented Jun 13, 2021

Hmm. Looking at that lib/python/qmk/decorators.py file shows it was last changed in #13046, which mentions #13099 which is a duplicate of this.

#13099 (comment) suggests to run:

pip install milc --upgrade

@stale
Copy link

stale bot commented Sep 14, 2021

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

@stale stale bot added the stale Issues or pull requests that have become inactive without resolution. label Sep 14, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know.

@stale stale bot closed this as completed Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted question stale Issues or pull requests that have become inactive without resolution.
Projects
None yet
Development

No branches or pull requests

1 participant