I am working on the build challenge in the Foundry AIP workspace, and no matter what I try I cannot figure out what the issue is with my code, and I am only at the beginning of the project so I can’t progress without fixing it.
When I try to build my project, I am hit with the following log explained with AIP:
Summary
The error occurred because a required lock file, conda-versions.run.linux-64.lock, could not be found at the expected path during the execution of the :transforms-python:condaTest task. This likely indicates that the conda environment was not properly locked or the lock file has been deleted, moved, or not generated.
Suggested Fix
You can try regenerating the conda lock file to ensure it exists and is up-to-date. This can usually be done by running the conda lock command or equivalent script used in your project.
If you use gradle to manage the build in Foundry, you might just need to trigger the task responsible for generating the conda lock files. For instance, run:
./gradlew generateCondaLocks
Ensure this task successfully completes before retrying the condaTest task.
If the issue persists, review the configuration of your conda environment lock process to confirm it’s correctly set up and pointing to the right paths.
Code Adjustment (if needed)
If the issue stems from a missing configuration in your build script, you can check the Gradle configuration and ensure the conda section is correctly set up. For example:
conda { environmentFile = file('path/to/environment.yml') lockFileName = 'conda-versions.run.linux-64.lock' }
Final Note
If this does not resolve the problem or the lock file generation fails, it might be due to an internal configuration issue with Foundry. In that case, please reach out to Palantir support for assistance.
I am super lost as to what this means, as this is my first time using the AIP workspace. If anyone would be able to help me figure this out, or if you would like to see some of the files within the project please let me know.
