poetry: how to install from git subdirectory?

Viewed 1545

I want to install feast python package with poetry.

pip3 install git+https://github.com/feast-dev/feast#subdirectory=sdk/python works okay,

but poetry add git+https://github.com/feast-dev/feast#subdirectory=sdk/pythongives an error:

  CalledProcessError

  Command '['git', '--git-dir', '/tmp/pypoetry-git-feas51ct2_me/.git', '--work-tree', '/tmp/pypoetry-git-feas51ct2_me', 'checkout', 'subdirectory=sdk/python']' returned non-zero exit status 1.

  at /usr/lib/python3.8/subprocess.py:516 in run
       512│             # We don't call process.wait() as .__exit__ does that for us.
       513│             raise
       514│         retcode = process.poll()
       515│         if check and retcode:
    →  516│             raise CalledProcessError(retcode, process.args,
       517│                                      output=stdout, stderr=stderr)
       518│     return CompletedProcess(process.args, retcode, stdout, stderr)
       519│ 
       520│ 

How can I fix it?

0 Answers
Related