langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.99k stars 131 forks source link

Langgraph Studio showing AttributeError: 'NoneType' object has no attribute 'pending_writes' #91

Closed henryf3 closed 3 months ago

henryf3 commented 3 months ago

Hi, I am using Langraph Studio 0.012, it was working perfectly until yesterday, now it shows this error: image

I think is due to the update to the langraph library, in this commit they added the method pending_writes(): https://github.com/langchain-ai/langgraph/commit/e916cab08ff2e1a044553e59939b05c7b93f274d

Now, I tried to fix my version to 0.2.4 (the one that works running python3 locally), but there is a dependency conflict saying:

image

But my requirements.txt file just has these lines regarding langgraph-langchain libraries:

langgraph<=0.2.3
langchain-anthropic
langchain
langchain-openai
dqbd commented 3 months ago

Hello @henryf3! I think you might need to update your requirements.txt to langgraph<=0.2.7?

henryf3 commented 3 months ago

@dqbd I need to use 0.2.4 or lower, do you restrict internally the langgraph version to be >= 0.2.7? Changing it to langgraph<=0.2.7 stills has the same problem: image

nfcampos commented 3 months ago

Hi @henryf3 we published a new version this morning that fixes this issue. We do not support using old langgraph versions with studio. Any particular reason you want to use 0.2.4?