Skip to content

[Bug] qmk make fails with latest ghcr.io/qmk/qmk_cli due to missing Python packages. #220

@uk-taniyama

Description

@uk-taniyama

Describe the Bug

In a qmk_firmware 1.26–based environment, the Docker build that was previously executed via util/docker_build.sh no longer works.

When I echo the docker run command and execute it manually, it fails with the following behavior/error:

$ docker run --rm -it   \
  --privileged -v /dev:/dev   \
  --user 1000:1000   \
  -w /qmk_firmware   \
  -v /home/taniyama/qmk_firmware:/qmk_firmware:z \
  -e SKIP_GIT= \
  -e SKIP_VERSION=  \
  -e MAKEFLAGS=   \
  ghcr.io/qmk/qmk_cli \
  make dz60:default

Please run `/opt/uv/tools/qmk/bin/python3 -m pip install -r /qmk_firmware/requirements.txt` to install required python dependencies.
make: *** No rule to make target 'dz60:default'. Stop.
|
| QMK's make format is:
|     make keyboard_folder:keymap_folder[:target]
|
| Where `keyboard_folder` is the path to the keyboard relative to
| `qmk_firmware/keyboards/`, and `keymap_folder` is the name of the
| keymap folder under that board's `keymaps/` directory.
|
| Examples:
|     keyboards/dz60, keyboards/dz60/keymaps/default
|       -> make dz60:default
|       -> qmk compile -kb dz60 -km default
|     keyboards/planck/rev6, keyboards/planck/keymaps/default
|       -> make planck/rev6:default:flash
|       -> qmk flash -kb planck/rev6 -km default
|
ERROR: Cannot run "qmk hello"!

 Please run qmk setup to install all the dependencies QMK requires.

make: *** [Makefile:402: dz60:default] Error 1

When using an older Docker image specified by its sha256 digest, the build succeeds.
ex. ghcr.io/qmk/qmk_cli@sha256:d8ebfab96c46d3ab948dd4e87be8a976095bd31268700021a74716cbd6e5b4c1

Making dz60 with keymap default

Generating: .build/obj_dz60_default/src/info_deps.d                                                 [OK]

Additional Context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions