oTree Forum >

SQLAlchemy dependencies

#1 by EvgenyK

Hi oTree team,

I'm working on an experiment that integrates LLM/RAG features (using LangChain/LangGraph) with oTree, and I have encountered a dependency conflict:

oTree 5.11.4 requires sqlalchemy==1.3.22 (exact pin)
LangChain/LangGraph require SQLAlchemy>=1.4
These are incompatible, making it impossible to use modern AI/ML packages with current oTree.

Is it possible to upgrade oTree to make it compatible with SQLAlchemy>=1.4?

Thank you in advance.

#2 by xindamate_com

Hi EvgenyK,

maybe you can try to build two diffent projects, one for otree and one for LLM/RAG, so that the dependences will not conflict.

another way is to fork the otree project, and update the version of SQLAlchemy, but this maybe a bit complex.

#3 by Chris_oTree

Yes I recommend a separate Python virtualenv and start a separate python process. You can pass data back and forth using a file and command line, or run a server on a different port.

#4 by EvgenyK

Thanks for sharing these ideas!

Write a reply

Set forum username