rye
rye copied to clipboard
Rye warning about "warning: unable to mark virtualenv ignored for cloud sync: Not supported (os error 95)" by default, during `rye sync`
Steps to Reproduce
I'm running Ubuntu LTS (22.04). My home directory is on an ext4 filesystem.
In a new project under /tmp/moo, if I run rye sync
, then I get output like this:
Reusing already existing virtualenv
warning: unable to mark virtualenv ignored for cloud sync: Not supported (os error 95)
Generating production lockfile: /tmp/x/moo/requirements.lock
Generating dev lockfile: /tmp/x/moo/requirements-dev.lock
Installing dependencies
Found existing installation: moo 0.1.0
Uninstalling moo-0.1.0:
Successfully uninstalled moo-0.1.0
Looking in indexes: https://pypi.org/simple/
Obtaining file:///. (from -r /tmp/tmp5wsbmnta (line 1))
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: moo
Building editable for moo (pyproject.toml) ... done
Created wheel for moo: filename=moo-0.1.0-py3-none-any.whl size=1199 sha256=8283338ed8504b4f051d0711a6423d1d9e8f7d82d61dc78411b477858b67f895
Stored in directory: /tmp/pip-ephem-wheel-cache-_ga_6zva/wheels/8b/19/c8/73a63a20645e0f1ed9aae9dd5d459f0f7ad2332bb27cba6c0f
Successfully built moo
Installing collected packages: moo
Successfully installed moo-0.1.0
Done!
I think what this means is that the new "support for marking virtualenvs ignored for cloud sync" (#589 ) feature is causing warnings on my OS by default.
I am (thankfully) able to disable this behavior on my OS and filesystem by updating ~/.rye/config.toml with this setting, as mentioned in recent rye doc changes:
venv-mark-sync-ignore = false
What I don't like about this workaround is that if myself or other people sometime work on filesystems that do support the flag, then .env
still won't be synced.
Maybe by default squelch the warning unless a verbose (-v) flag is used with rye sync
?
Expected Result
(no error logged, or error/warning only logged in verbose/debug mode)
Actual Result
warning: unable to mark virtualenv ignored for cloud sync: Not supported (os error 95)
Version Info
rye 0.22.0 commit: 0.22.0 (203a0f33f 2024-02-09) platform: linux (x86_64) self-python: [email protected] symlink support: true
Stacktrace
No response