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
I'm new to rye and I have a question. I've been using it as my daily package and env manager but I recently stumbled upon an error that I am not able to get past. It probably has to do with the shims which is the part of the project that I understand less.
So I created a new project via rye init myproject, then pinned 3.12 and rye sync with an error I did not store/remember. I then tried to revert to rye pin 3.10 but rye sync gets stuck here:
Bootstrapping rye internals
Found a compatible Python version: [email protected]
If I now try to create a new fresh rye project I get the following error:
➜ test_rye rye init new_test
success: Initialized project in /Users/<user>/Documents/test_rye/new_test
Run `rye sync` to get started
➜ test_rye cd new_test
➜ new_test git:(master) ✗ rye sync
Bootstrapping rye internals
Found a compatible Python version: [email protected]
× Querying Python at `/Users/<user>/.rye/py/[email protected]/bin/python3` failed with status signal: 9 (SIGKILL) with signal: 9 (SIGKILL)
│ --- stdout:
│ --- stderr:
│ ---
error: could not sync because bootstrap failed
Caused by:
Failed to create self venv using /Users/<user>/.rye/py/[email protected]/bin/python3. uv exited with status: exit status: 1
EDIT: I removed /Users/<user>/.rye/py/[email protected] and now fresh rye envs are working. I'm guessing I cut the python 3.12 download and that messed up things internally. However the global python issue I describe below still there:
Also, I installed rye so as to be able to use the base/system python outside of a rye project. However, now when I run python without any env activated outside of a rye project I get:
error: Target Python binary 'python' not found.
You are currently outside of a project. To resolve this, consider enabling global shims. Global shims allow for a Rye-managed Python installation.
For more information: https://rye-up.com/guide/shims/#global-shims
I am able, for instance to properly run a different python env through e.g. conda or a previous venv created by rye but I cannot use the base python install or create any new rye projects. I am using a M2 Mac if that may be relevant.
I am not quite sure how to proceed and fix this problem so any help would be really appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm new to
rye
and I have a question. I've been using it as my daily package and env manager but I recently stumbled upon an error that I am not able to get past. It probably has to do with the shims which is the part of the project that I understand less.So I created a new project viarye init myproject
, then pinned 3.12 andrye sync
with an error I did not store/remember. I then tried to revert torye pin 3.10
butrye sync
gets stuck here:If I now try to create a new fresh rye project I get the following error:EDIT: I removed
/Users/<user>/.rye/py/[email protected]
and now fresh rye envs are working. I'm guessing I cut the python 3.12 download and that messed up things internally. However the global python issue I describe below still there:Also, I installed
rye
so as to be able to use the base/system python outside of a rye project. However, now when I runpython
without any env activated outside of a rye project I get:I am able, for instance to properly run a different python env through e.g. conda or a previous venv created by rye but I cannot use the base python install or create any new rye projects. I am using a M2 Mac if that may be relevant.
I am not quite sure how to proceed and fix this problem so any help would be really appreciated!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions