I have a pyproject.toml file that looks like this:
[build]
builder = "gcr.io/buildpacks/builder:google-22"
[project]
name = "schoolProject"
version = "0.0.1"
authors = [
{ name="--REDACTED--", email="--REDACTED--"},
]
dependencies = [
'Flask',
'flask_apscheduler',
'numpy',
'datetime',
]
description = "Sample Description"
requires-python=">=3.7"
Unfortunately, I keep getting an error in my build logs:
Error Image Link
Naturally, I though that there was a capitalization error.
Nope! New error!
configuration error: `project` must not contain {'Name', 'Version'} properties
Now, I'm not quite sure what the issue is. I'm pretty sure that the pyproject.toml file is the issue (as the error changes) but I can't for the life of me figure out what to do with it. I've tried looking at documentation, and it seems like nothing is listed.
Please, from the bottom of my heart, help me.
Note: the server is Flask and my app runs locally just fine
Edit: I have since moved to deploying my build locally directly to Cloud Run and it works now. I never solved the initial problem.
1 Answer 1
It seems the build option is deprecated and new builder should use io.buildpacks instead. If it does not work please update your build command.
[io.buildpacks]
builder = "gcr.io/buildpacks/builder:google-22"
3 Comments
Explore related questions
See similar questions with these tags.
nameandversionfrom this file?