Vercel ignoring poetry exported requirements.txt #6848
Replies: 2 comments
-
been tried your example step to reproduce this issue, and i think you already solve this issue using hardcoded requirement.txt file. can we close this discussion i think? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Im trying to deploy a FastAPI application on Vercel with Serverless Functions using the Python Runtime.
And Im use poetry as package manager for python.
Since vercel-python doesnt supports poetry yet, it looks for
requirements.txt
at root dir.Example
requirements.txt
format:Vercel recognize this format and everything runs smoothly with successful deployment.
At the same time
poetry
can exportrequirements.txt
from its virtual environment with the command:poetry export -f requirements.txt --without-hashes --output requirements.txt
This export
requirements.txt
but in different format:If I try to deploy with this
requirements.txt
format, vercel doesnt recognize it, so it install nothing.ps: I get this error: Code: FUNCTION_INVOCATION_FAILED
But if I try to install in my system from this format:
It works!!!
I tried exporting with hashes and without, yet no hope :\
my
vercel.json
:working repo link: https://github.com/tokitouq/mangareader-api
Example
https://mangareader-h3tmewgmq-tokitos-projects.vercel.app/
Steps to Reproduce
poetry install
poetry export -f requirements.txt --without-hashes --output requirements.txt
vercel.json
and try to deployBeta Was this translation helpful? Give feedback.
All reactions