langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Langchain Mistral Module Deadlock

Open HzaRashid opened this issue 1 year ago • 0 comments

Bug Description

A module deadlock occurs for mistral components on backend initialization via make backend.

...
INFO:     Uvicorn running on http://0.0.0.0:7860 (Press CTRL+C to quit)
INFO:     Started reloader process [72311] using WatchFiles
INFO:     Started server process [72313]
INFO:     Waiting for application startup.
2025-10-08T21:06:48.411989Z [error    ] Failed to import module lfx.components.mistral.mistral: deadlock detected by _ModuleLock('langchain_mistralai.embeddings') at 128837303916144
INFO:     Application startup complete.

Reproduction

  1. Git clone main/Use environment as specified in OS section below.
  2. Run make backend (zsh).

Expected behavior

Initialize without the error. The module should import successfully without deadlock.

Who can help?

No response

Operating System

VS Code Dev Container, Ubuntu 24.04.3 (WSL2, Windows 11)

Langflow Version

1.6.4

Python Version

3.12

Screenshot

No response

Flow File

No response

HzaRashid avatar Oct 08 '25 22:10 HzaRashid