You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for such an amazing tool in uv, it has been an awesome addition in my work as an analyst in academic research. I'm trying to build out a docker image of the workspace using the docker guide in the docs, but I'm running into the following error while trying to build the image.
docker build .> [stage-0 5/7] RUN --mount=type=cache,target=/root/.cache/uv --mount=type=bind,source=uv.lock,target=uv.lock --mount=type=bind,source=pyproject.toml,target=pyproject.toml uv sync --frozen --no-install-project --no-install-workspace --compile-bytecode:
#10 5.139 Using CPython 3.11.10#10 5.139 Creating virtual environment at: .venv#10 8.494 error: Failed to prepare distributions#10 8.494 Caused by: Failed to fetch wheel: dracopy==1.4.0#10 8.494 Caused by: Build backend failed to determine requirements with `build_wheel()` (exit status: 1)#10 8.494 --- stdout:#10 8.494#10 8.494 --- stderr:#10 8.494 Traceback (most recent call last):#10 8.494 File "<string>", line 14, in <module>#10 8.494 File "/root/.cache/uv/builds-v0/.tmpVvUWy6/lib/python3.11/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel#10 8.494 return self._get_build_requires(config_settings, requirements=[])#10 8.494 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^#10 8.494 File "/root/.cache/uv/builds-v0/.tmpVvUWy6/lib/python3.11/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires#10 8.494 self.run_setup()#10 8.494 File "/root/.cache/uv/builds-v0/.tmpVvUWy6/lib/python3.11/site-packages/setuptools/build_meta.py", line 503, in run_setup#10 8.494 super().run_setup(setup_script=setup_script)#10 8.494 File "/root/.cache/uv/builds-v0/.tmpVvUWy6/lib/python3.11/site-packages/setuptools/build_meta.py", line 318, in run_setup#10 8.494 exec(code, locals())#10 8.494 File "<string>", line 6, in <module>#10 8.494 ModuleNotFoundError: No module named 'skbuild'#10 8.494 ---
------
executor failed running [/bin/sh -c uv sync --frozen --no-install-project --no-install-workspace --compile-bytecode]: exit code: 2
Hence, when we attempt to build that project in an isolated environment we see the error:
ModuleNotFoundError: No module named 'skbuild'
Is there a newer version of that package that properly declares its dependencies? If not you'll need to disable build isolation and manually install its build dependencies beforehand (i.e. uv pip install skbuild && uv sync --no-build-isolation-package dracopy).
Weirdly enough, this seems to be an issue of trying to build the image on an M1 Mac vs. on a Linux machine. DracoPy doesn't properly pull it's pre-built wheel when I attempt to build the image on Mac and tries to build from source (where the error is happening), but it works just fine when I build the image on my Ubuntu machine, with the same base image used on both. Thanks so much for your help and quick response, this is good to know for the future!
Thanks for such an amazing tool in
uv
, it has been an awesome addition in my work as an analyst in academic research. I'm trying to build out a docker image of the workspace using the docker guide in the docs, but I'm running into the following error while trying to build the image.My workspace looks like this:
My root
pyproject.toml
:and finally my Dockerfile
Any ideas on a solution would be great. Thanks!
The text was updated successfully, but these errors were encountered: