Skip to content

Issue with poetry and editable dependencies #379

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

Closed
nbarraille opened this issue Jul 5, 2019 · 2 comments
Closed

Issue with poetry and editable dependencies #379

nbarraille opened this issue Jul 5, 2019 · 2 comments
Labels

Comments

@nbarraille
Copy link

nbarraille commented Jul 5, 2019

Hello,
I'm getting the following error when deploying an app with poetry that has an editable dependency on another local package

    ERROR: Complete output from command /var/lang/bin/python3.6 -c 'import setuptools, tokenize;__file__='"'"'/app/tintlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --home=/tmp/pip-target-dvzgxbfh:
    ERROR: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
    
    error: option --home not recognized

My current workaround is to set usePoetry: false in serverless.yml and do the following:

poetry export --without-hashes -f requirements.txt
sed 's/-e //g' requirements.txt > requirements2.txt
mv requirements2.txt requirements.txt
sls deploy

Thanks!

@dschep dschep added the bug label Jul 23, 2019
@tpansino
Copy link
Contributor

tpansino commented Jul 25, 2019

Likely will be fixed by #362 #390

@bsamuel-ui
Copy link
Contributor

#390 is merged; happy to reopen if the bug is persisting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants