-
Notifications
You must be signed in to change notification settings - Fork 290
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
Private package fails with error: option --home not recognized
#240
Comments
What specifically did you add to your requirements.txt file? And if that repo is public, can you just share the actual repo url instead of hiding it so we can debug further? |
What @AndrewFarley said. Do you have the |
@dschep - yes, I have:
in my @AndrewFarley - unfortunately, it is not a public repo so I am unable to share the url. However, I have also tried replacing my private repo with the requests library in a very similar form under my
This works to install locally, but not within the serverless project with serverless-python-requirements |
Hey guys, want a good laugh, this appears to be a pip/python bug. :P Check it out...
But if I remove the
Thought it'd make you laugh a little like it did me. I did some extended testing, the |
ah damn, good catch @AndrewFarley - looks like its been a well-documented bug in pip that they have been trying to reconcile pypa/pip#4390 I really appreciate the assistance and the package guys! |
@bryantbiggs As mentioned here: pypa/pip#562 (comment) please try to remove the |
Agreed, |
Oh, it absolutely could! :) I tried removing /var/task and it doesn't work, I tried chdir-ing into the /var/task folder before running the command and it mostly worked but had some bugs. So, I think auto-stripping the -e makes a lot of sense. I'll MR that (instead) then, eh? The only problem might be that @dschep is that -e puts stuff in Sooo... maybe just a warning is best? |
So I tried removing |
Alright thanks for that I’ll play with it a bit tomorrow and see if I can come up with a nice workaround. By the way do you know if it worked on an older version of this plugin? Eg 4.1.0? |
Thanks @AndrewFarley - I just tried v4.1.0 and v4.0.0 and neither of those worked. Different error message though:
|
We just have better debugging in the new version. Okay well at least the new stuff didn’t break this for you. That is good to hear. So I’m heading out but I’ll try to manage a fix for this tomorrow if I can |
Yeah, now that you mention it @bryantbiggs I think this has never worked. See: #36 |
Hey, I ran into this. Thanks for reporting. |
Thanks, ran into this too. |
Previously, there were various with installing editable packages in different python / pip versions. serverless#240 This adds logic to strip out all '-e' editable flags from the requirements.txt file and issues a warning to the CLI. fixes serverless#240
Previously, there were various with installing editable packages in different python / pip versions. serverless#240 This adds logic to strip out all '-e' editable flags from the requirements.txt file and issues a warning to the CLI. fixes serverless#240
Previously, there were various with installing editable packages in different python / pip versions. serverless#240 This adds logic to strip out all '-e' editable flags from the requirements.txt file and issues a warning to the CLI. fixes serverless#240
I have a private repo on Github with a python package located under a subdirectory
sdk/
that I can pip install locally with:Trying to add this to the
requirments.txt
, it fails with a permission denied - even with adding:So I tried using a Git token to get around SSH issue for now; again it works locally with:
However, now I am getting the error
error: option --home not recognized
Output from
SLS_DEBUG=* sls deploy --stage=dev
:For reference, my
setup.py
:serverless: 1.31.1
serverless-python-requirements: 4.2.1
Any thoughts?
The text was updated successfully, but these errors were encountered: