griptape-ai / griptape

Modular Python framework for AI agents and workflows with chain-of-thought reasoning, tools, and memory.
https://www.griptape.ai
Apache License 2.0
1.95k stars 160 forks source link

Update pypdf version #1207

Open dylanholmes opened 1 day ago

dylanholmes commented 1 day ago

Is your feature request related to a problem? Please describe. I would like to install pypdf along side griptape at the latest version. Doing so gives me this error:

 ❯ poetry add pypdf
Using version ^5.0.0 for pypdf

Updating dependencies
Resolving dependencies... (0.1s)

Because griptape[loaders-pdf] (0.32.0) depends on pypdf (>=3.9,<4.0)
 and no versions of griptape match >0.32.0,<0.33.0, griptape[loaders-pdf] (>=0.32.0,<0.33.0) requires pypdf (>=3.9,<4.0).
So, because gtxl4 depends on both griptape[loaders-pdf] (^0.32.0) and pypdf (^5.0.0), version solving failed.

Describe the solution you'd like The ideal solution would be to allow different versions of pypdf, though I don't think this works with the way dependency resolution works in python. The next best solution would be to update the version of pypdf in griptape.