-
Notifications
You must be signed in to change notification settings - Fork 140
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
Can not install custom python dependency from custom git url #555
Comments
Hi, thanks for raising this issue. This is a result of how the package resolution logic works in Lambda Builders. Essentially, if the pip workflow finds a package that is not built already (the langchain fork that is provided), it'll try to resolve some basic info from that package by looking at the While we look for a proper way forward, would it be possible to build this package locally and reference it inside of the |
Hello, thank you for the workaround. Indeed compiling my version of langchain into a wheel and passing it as a local file pointer worked. I am sure that you're aware of the fact that Also, in langchain package the |
Thanks for confirming that building the project and then using the wheel file worked. As for moving away from setup.py, this would have to be something that would likely be taken in as a feature request since this is something that we don't currently check/handle. Using the url fragments as you've done in the requirements file works fine however (though granted the project would probably have to have a |
When referencing a dependency using a git URL was-lambda-builder raises an error if there is no setup.py aws/aws-lambda-builders#555
I would also like to see |
Description:
I am trying to install a python dependency from a custom git repo, with a specific commit and a subdirectory specified.
Steps to reproduce:
I have the following line in my requirements.txt:
langchain @ git+https://github.com/mrtj/langchain.git@7b52eff#subdirectory=libs/langchain
Observed result:
sam build
fails with the errorPythonPipBuilder:ResolveDependencies - Unable to retrieve name/version for package
Expected result:
sam build
works.Note:
pip install -r requirements.txt
do correctly install the required version of the package.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Add --debug flag to command you are running
Debug output:
The text was updated successfully, but these errors were encountered: