Error: Function Runtimes must have a valid version, for example [email protected]
./ The package vercel-python
is not published on the npm registry
#7390
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<#7390 (comment)>, 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.
-
Summary
I am facing below error while deploying:
Error: Function Runtimes must have a valid version, for example
[email protected]
.used in 18.x Node.js Version
in package.json : "engines": {
"node": "18.x"
vercel.json:
"functions": {
"api/app.py": {
"runtime": "@vercel/python",
"memory": 1024
}
tried this method as well:
"functions": {
"api/app.py": {
"runtime": "[email protected]",
"memory": 1024
}
Example
No response
Steps to Reproduce
vercel.json
{
"version": 2,
"functions": {
"api/app.py": {
"runtime": "@vercel/python",
"memory": 1024
}
},
"routes": [
{
"src": "/(.*)",
"dest": "api/app.py"
}
]
}
-----------
Beta Was this translation helpful? Give feedback.
All reactions