0

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.

2
  • did you tried to remove name and version from this file? Commented Jul 9, 2025 at 4:39
  • @furas I did try that; however, unfortunately, it did not work and instead got mad at me :( Commented Jul 10, 2025 at 2:54

1 Answer 1

0

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" 
answered Jul 9, 2025 at 4:11
Sign up to request clarification or add additional context in comments.

3 Comments

I attempted that, but it gave the same error
Please update your question with the build system you are using, and where you see the error log. Something for us to reproduce the issue.
I am no longer using Cloud Build and have switched to local deployment to Cloud Run. I will mark this question as such.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.