Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when execute the rye sync command, error could not write production lockfile for project occured #1047

Open
hero opened this issue Apr 25, 2024 · 0 comments

Comments

@hero
Copy link

hero commented Apr 25, 2024

Steps to Reproduce

I did the following steps:

# Step 1
# Refer to the official documentation to create a runnable project
# https://rye-up.com/guide/basics/#executable-projects
$ rye init --script hello-rye
success: Initialized project in ~\Desktop\hello-rye

# Step 2
# Fix the Python version
$ rye pin 3.12
pinned 3.12.2 in ~\Desktop\hello-rye\.python-version

# Step 3
# First Sync
$ rye sync
Initializing new virtualenv in ~\Desktop\hello-rye\.venv
Python version: cpython@3.12.2
Generating production lockfile: ~\Desktop\hello-rye\requirements.lock
error: could not write production lockfile for project

Caused by:
    0: unable to run pip-compile
    1: 系统找不到指定的文件。 (os error 2)

Expected Result

After first rye sync, I could run the command:

$ rye run hello-rye

Actual Result

Reusing already existing virtualenv
Generating production lockfile: C:\Users\wuking\Desktop\hello-rye\requirements.lock
error: could not write production lockfile for project

Caused by:
    0: unable to run pip-compile
    1: 系统找不到指定的文件。 (os error 2)

Version Info

 $ rye --version
rye 0.33.0
commit: 0.33.0 (58523f69f 2024-04-24)
platform: windows (x86_64)
self-python: cpython@3.12.2
symlink support: true
uv enabled: false

Stacktrace

$ $env:RUST_BACKTRACE=1
$ rye sync
Reusing already existing virtualenv
Generating production lockfile: C:\Users\wuking\Desktop\hello-rye\requirements.lock
error: could not write production lockfile for project

Caused by:
    0: unable to run pip-compile
    1: 系统找不到指定的文件。 (os error 2)

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: BaseThreadInitThunk
  16: RtlUserThreadStart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant