# Packaging version conflict with RASA and Langchain

**URL:** <https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361>\
**Category:** Rasa Open Source\
**Created:** [March 18, 2024, 8:07am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361 "2024-03-18T08:07:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiCodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/micodes/32/23999_2.png) [@MiCodes](https://forum.rasa.com/u/MiCodes)\
**Post date:** [March 18, 2024, 8:07am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/1 "2024-03-18T08:07:19Z")

</div>

Hi All,

I am integrating RASA with external LLM. While doing so, I am facing version conflict issues. Rasa wants packaging version \>=20, \<21 while langchain wants packaging version \<24.o, \>23.2. How to resolve this?

Error messages:

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. langchain-core 0.1.32 requires packaging\<24.0,\>=23.2, but you have packaging 20.9 which is incompatible.

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. rasa 3.6.15 requires packaging\<21.0,\>=20.0, but you have packaging 23.2 which is incompatible.

Please help. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Apatsi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/apatsi/32/20526_2.png) [@Apatsi](https://forum.rasa.com/u/Apatsi)\
**Post date:** [May 21, 2024, 11:31am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/2 "2024-05-21T11:31:58Z")

</div>

Any solution on this??

---

<div class="post-metadata">

**Author:** ![BelenAleman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/belenaleman/32/13902_2.png) [@BelenAleman](https://forum.rasa.com/u/BelenAleman)\
**Post date:** [May 22, 2024, 10:44am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/3 "2024-05-22T10:44:24Z")

</div>

Same issue here!

---

<div class="post-metadata">

**Author:** ![andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@andy](https://forum.rasa.com/u/andy)\
**Post date:** [May 22, 2024, 3:50pm UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/4 "2024-05-22T15:50:39Z")

</div>

Same issue, I try with several version of rasa and we can’t use langchain-core

---

<div class="post-metadata">

**Author:** ![karan](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@karan](https://forum.rasa.com/u/karan)\
**Post date:** [June 30, 2024, 10:20am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/5 "2024-06-30T10:20:09Z")

</div>

Problem still persists till date. Any solutions or work around?

---

<div class="post-metadata">

**Author:** ![manju1607](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@manju1607](https://forum.rasa.com/u/manju1607)\
**Post date:** [August 28, 2024, 1:32pm UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/7 "2024-08-28T13:32:18Z")

</div>

Is there any solutions or work around?

---

<div class="post-metadata">

**Author:** ![MiCodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/micodes/32/23999_2.png) [@MiCodes](https://forum.rasa.com/u/MiCodes)\
**Post date:** [September 5, 2024, 6:43pm UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/8 "2024-09-05T18:43:50Z")

</div>

Hello all,

Sorry for the late response. I found a workaround. Please install following packages: langchain==0.2.16 langchain-community==0.2.12 langchain-core==0.2.38 langchain-openai==0.1.23 langchain-text-splitters==0.2.4 langchain-together==0.1.5 langsmith==0.1.114

This will install the latest packaging version. Please uninstall it and install packaging==20.9 at last. It will work.

---

<div class="post-metadata">

**Author:** ![MiCodes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/micodes/32/23999_2.png) [@MiCodes](https://forum.rasa.com/u/MiCodes)\
**Post date:** [September 17, 2024, 6:33am UTC](https://forum.rasa.com/t/packaging-version-conflict-with-rasa-and-langchain/61361/9 "2024-09-17T06:33:21Z")

</div>

**A robust solution for production**

- **Separate LLM from Action Server** :

- **Handle User Input for RAG** :

- **Resolve Version Conflicts** :

This approach helps in managing dependencies and avoiding conflicts between different components.
