astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
12.08k stars 425 forks source link

rye-x86_64-windows installer fails with "error: failed to provision internal cpython toolchain 3.12" #1161

Open furtnerthomas opened 2 weeks ago

furtnerthomas commented 2 weeks ago

Steps to Reproduce

Expected Result

installation of rye and python works

Actual Result

./rye-x86_64-windows.exe self install -y --no-modify-path --toolchain-version 3.12 Welcome to Rye!

This installer will install rye to \<workspace>/.rye This path can be changed by exporting the RYE_HOME environment variable.

Details: Rye Version: 0.34.0 Platform: windows (x86_64) Internal Toolchain Version: 3.12

Installed binary to \<workspace>/.rye\shims\rye.exe Bootstrapping rye internals Fetching requested internal toolchain 'cpython@3.12.3' Downloading cpython@3.12.3 Checking checksum Unpacking error: failed to provision internal cpython toolchain 3.12

Caused by: 0: unable to persist download (at ' \<workspace>/.rye\py\cpython@3.12.3') 1: Access is denied. (os error 5)

Version Info

0.34.0

Stacktrace

No response

furtnerthomas commented 1 week ago

the error seems to be related to setting RYE_HOME environment variable. When RYE_HOME is empty, everything works nicely, when RYE_HOME is set to \<workspace>/.rye, the error occurs