Error: Function Runtimes must have a valid version, for example [email protected]
./ The package vercel-python
is not published on the npm registry
#7390
-
SummaryI am facing below error while deploying: used in 18.x Node.js Version vercel.json: tried this method as well: "functions": { ExampleNo response Steps to Reproducevercel.json { ----------- |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Could you try this configuration?
|
Beta Was this translation helpful? Give feedback.
-
Tried both ways, did not work:
Here is the error message:
Error: Function Runtimes must have a valid version, for example ***@***.***`.
Thanks,
From: Pauline P. Narvas ***@***.***>
Sent: Monday, July 8, 2024 5:19 AM
To: vercel/community ***@***.***>
Cc: Vinaykumarvuppala ***@***.***>; Mention ***@***.***>
Subject: Re: [vercel/community] Error: Function Runtimes must have a valid version, for example ***@***.***`./ The package `vercel-python` is not published on the npm registry (Discussion #7390)
Hi @Vinaykumarvuppala<https://github.com/Vinaykumarvuppala>!
Could you try this configuration?
{
"version": 2,
"functions": {
"api/app.py": {
"runtime": ***@***.******@***.***>", // or ***@***.******@***.***>
"memory": 1024
}
},
"routes": [
{
"src": "/(.*)",
"dest": "api/app.py"
}
]
}
-
Reply to this email directly, view it on GitHub<https://github.com/orgs/vercel/discussions/7390#discussioncomment-9985251>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A46RG447QSQOSSYAEIHBP4DZLJKRTAVCNFSM6AAAAABKOXI7ISVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSOBVGI2TC>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
@pawlean any update here? Does Python deployment currently work for Vercel? I am getting the same error with the following configuration (my project is currently on Node 20.x) Error: Function Runtimes must have a valid version, for example
|
Beta Was this translation helpful? Give feedback.
-
You don't need the "runtime" property at all if you are trying to deploy Python - it's one of the built-in languages for Vercel. In fact, unless you are trying to override some of the other configuration options (like |
Beta Was this translation helpful? Give feedback.
-
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.
You don't need the "runtime" property at all if you are trying to deploy Python - it's one of the built-in languages for Vercel. In fact, unless you are trying to override some of the other configuration options (like
memory
ormaxDuration
), then there is no need to have that "functions" object at all. You can delete it.