"UnsolvableEnvironmentError" & Gradle Implicit Dependency Error with Official Sample Repository

Hello everyone,

I’m working on a model training pipeline in Foundry Code Repositories, but I’m consistently running into a build failure. The issue is especially frustrating because it’s happening even with a fresh, official sample repository (model training in code repositories).

The errors are a version conflict that occurs during the build process:

  1. UnsolvableEnvironmentError: The build fails because it cannot resolve the dependencies. The logs indicate a version conflict with the transforms library. The build attempts to use transforms 3.9.0 when a later version is required by my code. I’ve also observed similar issues with setuptools versions.

  2. Gradle Implicit Dependency Error: The build fails with the following message, indicating a problem with the internal Gradle build scripts themselves:

    A problem was found with the configuration of task ‘:transforms-model-training:renderOverrideSetupPy’ (type ‘MustacheTemplateTask’). Reason: Task ‘:transforms-model-training:generateRepoPy’ uses this output of task ‘:transforms-model-training:renderOverrideSetupPy’ without declaring an explicit or implicit dependency.

I have already tried the following without success:

  • Running !pip install or !mamba install in a Jupyter Notebook.

  • Manually committing a setup.py file to the repository.

  • Checking the ci.yml file, which has a “DO NOT MODIFY” warning.

The fact that these issues persist in a brand-new sample repository strongly suggests that the repository template is outdated and incompatible with the current version of Foundry’s build tools.

Has anyone encountered this issue? What is the official or recommended way to either: a) Update the repository template in a way that resolves these internal build conflicts? b) Get a working model training template for a Code Repository?

Any help would be greatly appreciated. Thank you.

1 Like

Ok, here is a workaround for now. You need to use the VS Code repo tool, then open the build.gradle file in the transforms-model-training folder and add this code to the very bottom:

// TEMP FIX: Ensure setup.py is generated before repo build

tasks.named(‘generateRepoPy’) {

dependsOn tasks.named('renderOverrideSetupPy')

}

1 Like

Im having the same issue. Had no problem here a week ago.

This causes other issues. Its a solution but there is a bigger problem.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.