Skip to content

不支持rapidocr >= 3.4.3,希望尽快适配 #47

@YuanJie2001

Description

@YuanJie2001

默认环境使用
"fastapi>=0.136.1",
"onnxruntime>=1.25.1",
"pymupdf>=1.26.6",
"python-multipart>=0.0.27",
"rapidocr>=3.8.1",
"requests>=2.33.1",
"uvicorn[standard]>=0.46.0",

但rapid-doc[gpu]支持rapidocr <=3.4.3

uv sync --extra gpu
× No solution found when resolving dependencies for split (included: rapidocrapi[gpu]; excluded: rapidocrapi[cpu]):
╰─▶ Because only the following versions of rapid-doc[gpu] are available:
rapid-doc[gpu]==0.1.0
rapid-doc[gpu]==0.2.0
rapid-doc[gpu]==0.3.0
rapid-doc[gpu]==0.4.0
rapid-doc[gpu]==0.5.0
rapid-doc[gpu]==0.5.1
rapid-doc[gpu]==0.6.0
rapid-doc[gpu]==0.6.1
rapid-doc[gpu]==0.7.0
rapid-doc[gpu]==0.8.0
rapid-doc[gpu]==0.9.0
rapid-doc[gpu]==0.9.1
rapid-doc[gpu]==0.9.2
rapid-doc[gpu]==0.9.3
and rapid-doc==0.1.0 depends on rapidocr>=3.1.0,<=3.4.1, we can conclude that rapid-doc[gpu]<0.2.0 depends on rapidocr>=3.1.0,<=3.4.1.
And because rapid-doc>=0.2.0,<=0.5.0 depends on rapidocr>=3.1.0,<=3.4.2 and rapidocr>=3.1.0,<=3.4.2, we can conclude that rapid-doc[gpu]<0.4.0 depends on rapidocr>=3.1.0,<=3.4.2.
And because rapid-doc>=0.4.0,<=0.5.0 depends on rapidocr>=3.1.0,<=3.4.2 and rapidocr>=3.1.0,<=3.4.2, we can conclude that rapid-doc[gpu]<0.5.1 depends on rapidocr>=3.1.0,<=3.4.2.
And because rapid-doc==0.5.1 depends on rapidocr>=3.4.0,<=3.4.2 and rapidocr>=3.4.0,<=3.4.3, we can conclude that rapid-doc[gpu]<0.6.1 depends on rapidocr>=3.1.0,<=3.4.3.
And because rapid-doc>=0.6.1 depends on rapidocr>=3.4.0,<=3.4.3 and rapidocr>=3.4.0,<=3.4.3, we can conclude that rapid-doc[gpu]<0.8.0 depends on rapidocr>=3.1.0,<=3.4.3.
And because rapid-doc>=0.8.0 depends on rapidocr>=3.4.0,<=3.4.3 and rapidocr>=3.4.0,<=3.4.3, we can conclude that rapid-doc[gpu]<0.9.1 depends on rapidocr>=3.1.0,<=3.4.3.
And because rapid-doc>=0.9.1 depends on rapidocr>=3.4.0,<=3.4.3 and rapidocr>=3.4.0,<=3.4.3, we can conclude that rapid-doc[gpu]<0.9.3 depends on rapidocr>=3.1.0,<=3.4.3.
And because rapid-doc==0.9.3 depends on rapidocr>=3.4.0,<=3.4.3 and rapidocrapi[gpu] depends on rapid-doc[gpu], we can conclude that rapidocrapi[gpu] depends on rapidocr>=3.1.0,<=3.4.3.
And because your project depends on rapidocr>=3.8.1 and your project requires rapidocrapi[gpu], we can conclude that your project's requirements are unsatisfiable.

  hint: `rapid-doc` was found on https://mirrors.aliyun.com/pypi/simple/, but not at the requested version (all of:
      rapid-doc<0.1.0
      rapid-doc>0.1.0,<0.2.0
      rapid-doc>0.2.0,<0.3.0
      rapid-doc>0.3.0,<0.4.0
      rapid-doc>0.4.0,<0.5.0
      rapid-doc>0.5.0,<0.5.1
      rapid-doc>0.5.1,<0.6.0
      rapid-doc>0.6.0,<0.6.1
      rapid-doc>0.6.1,<0.7.0
      rapid-doc>0.7.0,<0.8.0
      rapid-doc>0.8.0,<0.9.0
      rapid-doc>0.9.0,<0.9.1
      rapid-doc>0.9.1,<0.9.2
      rapid-doc>0.9.2,<0.9.3
      rapid-doc>0.9.3
  ). A compatible version may be available on a subsequent index (e.g., https://mirrors.huaweicloud.com/repository/pypi/simple). By default, uv will only consider versions that are published on the
  first index that contains a given package, to avoid dependency confusion attacks. If all indexes are equally trusted, use `--index-strategy unsafe-best-match` to consider all versions from all indexes,    
  regardless of the order in which they were defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions