Skip to content

How to to work with packages added by langserve-cli? Getting module not found error #604

Answered by eyurtsev
quartermaine asked this question in Q&A
Discussion options

You must be logged in to vote

@quartermaine there's a poetry file at the root of the project.

It has a section that specifies the dependencies for the project. It'll look something like this

[tool.poetry.dependencies]
python = "^3.11"
uvicorn = "^0.23.2"
langserve = {extras = ["server"], version = ">=0.0.30"}
pydantic = "<2"
sqlvector = {path = "packages/sqlvector", develop = true}

Use pyproject to install the dependencies so that the package is added to your python path (or add it yourself).

Or else use vscode with poetry to have it install the environment properly

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quartermaine
Comment options

@quartermaine
Comment options

Answer selected by quartermaine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #603 on April 12, 2024 14:44.