Skip to content
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

Cannot install CrewAI with LlamaIndex inside the same environment under Poetry #495

Open
chrispangg opened this issue Apr 23, 2024 · 0 comments

Comments

@chrispangg
Copy link
Contributor

chrispangg commented Apr 23, 2024

There is a dependencies conflict because crewai and llama-index require incompatible versions of pypdf. crewai needs pypdf versions >=3.11.0,<4.0.0, while llama-index requires pypdf versions >=4.0.1,<5.0.0.

Error:

Because no versions of embedchain match >0.1.98,<0.1.99 || >0.1.99,<0.1.100 || >0.1.100,<0.1.101 || >0.1.101,<0.1.102 || >0.1.102,<0.2.0
 and embedchain (0.1.102) depends on pypdf (>=3.11.0,<4.0.0), embedchain (>0.1.98,<0.1.99 || >0.1.99,<0.1.100 || >0.1.100,<0.1.101 || >0.1.101,<0.2.0) requires pypdf (>=3.11.0,<4.0.0).
    And because embedchain (0.1.101) depends on pypdf (>=3.11.0,<4.0.0)
 and embedchain (0.1.100) depends on pypdf (>=3.11.0,<4.0.0), embedchain (>0.1.98,<0.1.99 || >0.1.99,<0.2.0) requires pypdf (>=3.11.0,<4.0.0).
    And because embedchain (0.1.99) depends on pypdf (>=3.11.0,<4.0.0)
 and embedchain (0.1.98) depends on pypdf (>=3.11.0,<4.0.0), embedchain (>=0.1.98,<0.2.0) requires pypdf (>=3.11.0,<4.0.0).
    Because no versions of crewai match >0.28.8,<0.28.9rc1 || >0.28.9rc1,<0.29.0
 and crewai (0.28.9rc1) depends on embedchain (>=0.1.98,<0.2.0), crewai (>0.28.8,<0.29.0) requires embedchain (>=0.1.98,<0.2.0).
(1) Thus, crewai (>0.28.8,<0.29.0) requires pypdf (>=3.11.0,<4.0.0).

    Because llama-index (0.10.29) depends on llama-index-readers-file (>=0.1.4,<0.2.0)
 and llama-index (0.10.28) depends on llama-index-readers-file (>=0.1.4,<0.2.0), llama-index (0.10.28 || 0.10.29) requires llama-index-readers-file (>=0.1.4,<0.2.0).
    And because llama-index (0.10.27) depends on llama-index-readers-file (>=0.1.4,<0.2.0)
 and llama-index (0.10.26) depends on llama-index-readers-file (>=0.1.4,<0.2.0), llama-index (0.10.26 || 0.10.27 || 0.10.28 || 0.10.29) requires llama-index-readers-file (>=0.1.4,<0.2.0).
    And because llama-index (0.10.25) depends on llama-index-readers-file (>=0.1.4,<0.2.0)
 and no versions of llama-index match >0.10.24,<0.10.25 || >0.10.25,<0.10.26 || >0.10.26,<0.10.27 || >0.10.27,<0.10.28 || >0.10.28,<0.10.29 || >0.10.29,<0.10.30 || >0.10.30,<0.11.0, llama-index (>0.10.24,<0.10.30 || >0.10.30,<0.11.0) requires llama-index-readers-file (>=0.1.4,<0.2.0).
(2) So, because llama-index (0.10.30) depends on llama-index-readers-file (>=0.1.4,<0.2.0)
 and llama-index (0.10.24) depends on llama-index-readers-file (>=0.1.4,<0.2.0), llama-index (>=0.10.24,<0.11.0) requires llama-index-readers-file (>=0.1.4,<0.2.0).

    Because no versions of llama-index-readers-file match >0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0
 and llama-index-readers-file (0.1.4) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.5 || >0.1.5,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.5) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.6 || >0.1.6,<0.1.7 || >0.1.7,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.6) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.7) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.8 || >0.1.8,<0.1.9 || >0.1.9,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.8) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.9) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.11 || >0.1.11,<0.1.12 || >0.1.12,<0.1.13 || >0.1.13,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.11) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.13) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.12 || >0.1.12,<0.1.14 || >0.1.14,<0.1.15 || >0.1.15,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.14) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.15) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.12 || >0.1.12,<0.1.16 || >0.1.16,<0.1.17 || >0.1.17,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.16) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.17) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.12 || >0.1.12,<0.1.18 || >0.1.18,<0.1.19 || >0.1.19,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index-readers-file (0.1.18) depends on pypdf (>=4.0.1,<5.0.0)
 and llama-index-readers-file (0.1.19) depends on pypdf (>=4.0.1,<5.0.0), llama-index-readers-file (>=0.1.4,<0.1.12 || >0.1.12,<0.2.0) requires pypdf (>=4.0.1,<5.0.0).
    And because llama-index (>=0.10.24,<0.11.0) requires llama-index-readers-file (>=0.1.4,<0.2.0) (2), llama-index (>=0.10.24,<0.11.0) requires pypdf (>=4.0.1,<5.0.0) or llama-index-readers-file (0.1.12)
    And because llama-index-readers-file (0.1.12) depends on pypdf (>=4.0.1,<5.0.0), llama-index (>=0.10.24,<0.11.0) requires pypdf (>=4.0.1,<5.0.0).
    And because crewai (>0.28.8,<0.29.0) requires pypdf (>=3.11.0,<4.0.0) (1), crewai (>0.28.8,<0.29.0) is incompatible with llama-index (>=0.10.24,<0.11.0)
    And because crewai (0.28.8) depends on python-dotenv (1.0.0)
 and ai-poc depends on python-dotenv (^1.0.1), llama-index (>=0.10.24,<0.11.0) is incompatible with crewai (>=0.28.8,<0.29.0).
    So, because ai-poc depends on both llama-index (^0.10.24) and crewai (^0.28.8), version solving failed.

Resolution:
Can we upgrade/ use a new version of pypdf? i.e. pypdf versions >=4.0.1,<5.0.0?

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

No branches or pull requests

1 participant