init environment failed: failed to find uv path #28

Closed
opened 2026-02-16 00:19:14 -05:00 by yindo · 5 comments
Owner

Originally created by @hieheihei on GitHub (Mar 9, 2025).

openai_api_compatible package install failed,the error is:

2025/03/09 21:18:46 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.7 2025/03/09 21:18:46 runtime_lifetime.go:76: [ERROR]init environment failed: failed to find uv path: exit status 1, retry in 30s

I use the latest code from the main branch and start it locally.

code that reported this error:

// using from uv._find_uv import find_uv_bin; print(find_uv_bin()) to find uv path
cmd := exec.Command(p.defaultPythonInterpreterPath, "-c", "from uv._find_uv import find_uv_bin; print(find_uv_bin())")
cmd.Dir = p.State.WorkingPath
output, err := cmd.Output()
if err != nil {
return fmt.Errorf("failed to find uv path: %s", err)
}

Originally created by @hieheihei on GitHub (Mar 9, 2025). openai_api_compatible package install failed,the error is: `2025/03/09 21:18:46 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.7 2025/03/09 21:18:46 runtime_lifetime.go:76: [ERROR]init environment failed: failed to find uv path: exit status 1, retry in 30s` I use the latest code from the main branch and start it locally. code that reported this error: // using `from uv._find_uv import find_uv_bin; print(find_uv_bin())` to find uv path cmd := exec.Command(p.defaultPythonInterpreterPath, "-c", "from uv._find_uv import find_uv_bin; print(find_uv_bin())") cmd.Dir = p.State.WorkingPath output, err := cmd.Output() if err != nil { return fmt.Errorf("failed to find uv path: %s", err) }
yindo closed this issue 2026-02-16 00:19:14 -05:00
Author
Owner

@hieheihei commented on GitHub (Mar 9, 2025):

OK I found out why,In the latest commit:

Install uv RUN python3.12 -m pip install uv

@hieheihei commented on GitHub (Mar 9, 2025): OK I found out why,In the latest commit: ` Install uv RUN python3.12 -m pip install uv `
Author
Owner

@kurokobo commented on GitHub (Mar 9, 2025):

The line had been already updated, pull the main again and give it a try.
(I'm commenting without testing, so no idea if the issue persists)

@kurokobo commented on GitHub (Mar 9, 2025): The line had been already updated, pull the `main` again and give it a try. (I'm commenting without testing, so no idea if the issue persists)
Author
Owner

@Yeuoly commented on GitHub (Mar 10, 2025):

Just try the latest image, It should have been fixed

@Yeuoly commented on GitHub (Mar 10, 2025): Just try the latest image, It should have been fixed
Author
Owner

@linqiu919 commented on GitHub (Mar 12, 2025):

It have been fixed,If you are using Python installed using Pyenv, you need to modify it PYTHON INTERPRETER PATH variable

@linqiu919 commented on GitHub (Mar 12, 2025): It have been fixed,If you are using Python installed using Pyenv, you need to modify it PYTHON INTERPRETER PATH variable
Author
Owner

@Yeuoly commented on GitHub (Mar 12, 2025):

Close due to fixed

@Yeuoly commented on GitHub (Mar 12, 2025): Close due to fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#28