You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a build failure when I try running code from a Flutter Chaquopy tutorial (https://pub.dev/packages/chaquopy). I'm getting the following build failure, but I don't understand what buildPython means, as I can't find it anywhere in the code.
Here is the build failure:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:mergeDebugPythonSources' (type 'DefaultTask').
- Property 'buildPython' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'buildPython'.
2. Mark property 'buildPython' as optional.
Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#value_not_set for more details about this problem.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 47s
Exception: Gradle task assembleDebug failed with exit code 1
This is probably caused by the detection process failing to find any Python at all, and assigning the property as null. The buildPython detection changed a lot between Chaquopy versions 12 and 13, but this scenario may be a gap in our testing, so the issue probably still exists.
The Gradle documentation doesn't make this obvious, but any input property that can have a null value must be marked as optional, otherwise null values will cause this error when the task tries to run.
We had a test for a missing buildPython with the generatePythonRequirements task, but not for the other two tasks that used it (mergePythonSources and generatePythonProxies). The requirements task happens to be the first of the three to run, so that concealed the fact that the sources task was missing the optional marker.
From https://stackoverflow.com/questions/74154889:
I'm getting a build failure when I try running code from a Flutter Chaquopy tutorial (https://pub.dev/packages/chaquopy). I'm getting the following build failure, but I don't understand what buildPython means, as I can't find it anywhere in the code.
Here is the build failure:
Here is my main build.gradle:
Here is the app build.gradle:
The Flutter code was copied directly from the tutorial, where the buttons were updated from flat buttons to text buttons.
The text was updated successfully, but these errors were encountered: