# Langchain compatibility issues through spacy-llm

**URL:** https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896
**Category:** Uncategorized
**Created:** [November 13, 2023, 9:48pm UTC](https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896 "2023-11-13T21:48:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ondraz](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ondraz/32/3728_2.png) [@ondraz](https://support.prodi.gy/u/ondraz)
#### Post date: [November 13, 2023, 9:48pm UTC](https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896/1 "2023-11-13T21:48:57Z")

</div>

Hi, prodigy 1.14.8 depends on spacy-llm 0.5.1 which expects langchain around version 0.0.249 when auto registering some functions. Newer versions (\>=0.0.303) of langchain don't work with prodigy. Calling `python -m prodigy textcat.manual my-labels label.csv --label label` fails with

```python
File "/some_my_dirs/.venv/lib/python3.9/site-packages/spacy_llm/models/langchain/model.py", line 38, in get_type_to_cls_dict
    return langchain.llms.type_to_cls_dict
  File "/some_my_dirs/.venv/lib/python3.9/site-packages/langchain/ __init__.py", line 308, in __getattr__
    raise AttributeError(f"Could not find: {name}")
AttributeError: Could not find: llms

```

I don't need langchain as part of spacy-llm. Is there a way to "turn off" this automatic call from prodigy to langchain via spacy-llm which tries to register some functions and fails? Or can we update prodigy with the latest version of spacy-llm?

Thank you very much.

---

<div class="post-metadata">

### Author: ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)
#### Post date: [November 13, 2023, 10:49pm UTC](https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896/2 "2023-11-13T22:49:04Z")

</div>

hi @ondraz,

Thanks for your post.

> [@ondraz](#):
>
> Or can we update prodigy with the latest version of spacy-llm?

We have a patch to release Prodigy `1.14.9` with support for `spacy-llm 0.6`. We tested today and should be able to release in a day or so.

---

<div class="post-metadata">

### Author: ![ondraz](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ondraz/32/3728_2.png) [@ondraz](https://support.prodi.gy/u/ondraz)
#### Post date: [November 14, 2023, 7:11am UTC](https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896/3 "2023-11-14T07:11:14Z")

</div>

You are the best, thank you.

---

<div class="post-metadata">

### Author: ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)
#### Post date: [November 14, 2023, 1:30pm UTC](https://support.prodi.gy/t/langchain-compatibility-issues-through-spacy-llm/6896/4 "2023-11-14T13:30:25Z")

</div>

Just published [v1.14.9](https://prodi.gy/docs/changelog#v1.14.9) 🎉
