-
HI, Am trying to compile from source, but seem to be running into some issues when resolving the torch dependency. I ran
and it results in
I can install torch just fine on its own. I'm on linux x86_64. Have tried various versions of Python, none work. :/ |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Here's what I do . Let me know if this works / doesn't work, I've been meaning to throw a blog up for it. This creates a separate .venv for each version of PYTHON you're using. Change UV_PYTHON to whatever you want. * cccache is very helpful for reducing rebuilds, especially of the external duckdb submodule, I'd suggest uncommenting it and setting the BASEIDR. ** Also, run "uv self update" first... you might be running an older version of UV. ** I also re-enable UNITY (DISABLE_UNITY=0) in the pyproject.toml, this reduces build times for me. export UV_PYTHON=3.13
export UV_PROJECT_ENVIRONMENT=.venv_$UV_PYTHON
if [ ! -d $UV_PROJECT_ENVIRONMENT ]; then
uv venv
else
echo $UV_PROJECT_ENVIRONMENT exists
fi
source $UV_PROJECT_ENVIRONMENT/bin/activate
uv sync --no-install-project
# export CCACHE_PROGRAM=ccache
# export CCACHE_BASEDIR=...
uv sync --no-build-isolation -vv --reinstall |
Beta Was this translation helpful? Give feedback.
-
Looking at a recent CI build with py312 + win32 / amd64 I see that
This is also not supposed to happen when you run I suggest you:
|
Beta Was this translation helpful? Give feedback.
-
Same error. I did manage to build it if I commented out the torch and tensorflow dependencies. Below are logs. https://gist.github.com/jakkes/fd51951b64fcad4e13406ebe673d9288 |
Beta Was this translation helpful? Give feedback.
-
Yup, updating uv did it. Thanks all! |
Beta Was this translation helpful? Give feedback.
Did not look closely at the log, but - you're running an old version of uv. Run "uv self update" first.