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:
-
UnsolvableEnvironmentError: The build fails because it cannot resolve the dependencies. The logs indicate a version conflict with the
transformslibrary. The build attempts to usetransforms 3.9.0when a later version is required by my code. I’ve also observed similar issues withsetuptoolsversions. -
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 installor!mamba installin a Jupyter Notebook. -
Manually committing a
setup.pyfile to the repository. -
Checking the
ci.ymlfile, 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.