langgenius / langgenius/dify-sandbox
pip can't install deps with PIP_MIRROR_URL
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 326
- Avg merge
- 56m
- Merged PRs (30d)
- 3
Description
I add some deps in python-requirements.txt and set PIP_MIRROR_URL = xxxxx. Docker run failed with following error:
`2024-11-18 2024/11/18 18:84:45 server.go:47:[INFO]installing python dependencies...
2024-11-18 2024/1/18 18:84:46 setup.go:148: [INFO]Looking in indexes: xxxxxxxx
2024-11-18 2024/11/18 18:84:46 setup.go:146: [ERROR]failed to wait for the comand to complete
2024-11-18 2024/11/18 18:84:46 server.go:51: [PANIC]failed to install python dependencies: exit status 1
2824-11-18 panic:`
But in the container I can successfully execute 'pip3 install -r python-requirements.txt -i xxxxx' and status code 0 is returned with 'echo $?'.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the dependency-installation path reported at setup.go:148 and the related logging at server.go:47 and server.go:51, then compare it with the successful pip3 command run inside the container. Reproduce the Docker run using python-requirements.txt and PIP_MIRROR_URL; done means the dependencies install successfully and the command exits without the reported panic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go, python
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100