Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.67k stars 449 forks source link

unable to install 0.3.4 version of the layoutparser due to assertion error #141

Closed felixgao closed 1 year ago

felixgao commented 2 years ago

Describe the bug poetry add layoutparser Using version ^0.3.4 for layoutparser

Updating dependencies Resolving dependencies... (0.0s)

AssertionError

at ~/.poetry/lib/poetry/mixology/incompatibility.py:111 in str 107│ ) 108│ 109│ def str(self): 110│ if isinstance(self._cause, DependencyCause): → 111│ assert len(self._terms) == 2 112│ 113│ depender = self._terms[0] 114│ dependee = self._terms[1] 115│ assert depender.is_positive()

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version, see the Layout Parser Releases

To Reproduce Steps to reproduce the behavior:

  1. poetry add layoutparser

Environment

  1. Please describe your Platform [MacOS]
  2. Please show the Layout Parser version
  3. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source] poetry
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback If applicable, paste the error traceback here.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

lolipopshock commented 2 years ago

Thanks! I think you might want to take a look at poetry's config -- https://github.com/python-poetry/poetry/issues/3491#issuecomment-872230288 .