Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: python version conflict when building ML training pipeline docker container in 1.9.0-SNAPSHOT #292

Open
d-ryan-ashcraft opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@d-ryan-ashcraft
Copy link
Collaborator

d-ryan-ashcraft commented Aug 23, 2024

Description

When building an ML training pipeline, a Python version incompatibility issue is being thrown:

 [9/10] COPY target/example-machine-learning-training/dist /modules/example-machine-learning-training [done: 28ms]
     [10/10] RUN set -e &&     cd /modules/example-machine-learning-training; for x in *.whl; do pip install $x --no-cache-dir --no-deps; done
       → Processing ./example_machine_learning_training-1.0.0.dev0-py3-none-any.whl
       → INFO: pip is looking at multiple versions of example-machine-learning-training to determine which version is compatible with other requirements. This could take a while.
       → ERROR: Package 'example-machine-learning-training' requires a different Python: 3.11.0 not in '<4.0.0,>=3.11.4'

Steps to Reproduce

  1. Create a new downstream project:
mvn archetype:generate \                                                                   
    -DarchetypeGroupId=com.boozallen.aissemble \
    -DarchetypeArtifactId=foundation-archetype \
    -DarchetypeVersion=1.9.0-SNAPSHOT \
    -DgroupId=com.example \
    -DartifactId=issue-292 \
    -DprojectGitUrl=url \
    -DprojectName=issue-292 \
    -DmavenRepositoryUrl=https://maven.pkg.github.com/boozallen/aissemble \
    -DmavenSnapshotRepositoryUrl=https://maven.pkg.github.com/boozallen/aissemble \
&& cd issue-292
  1. Add the following ML training pipeline:
{
	"name": "ExampleMachineLearningPipeline",
	"package": "com.example",
	"type": {
		"name": "machine-learning",
		"implementation": "machine-learning-mlflow"
	},
	"steps": [
		{
			"name": "ExampleMachineLearningTraining",
			"type": "training"
		}
	]
}
  1. Generate the project following manual actions
  2. Tilt up the project, seeing the error above in the ML pipeline

Expected Behavior

The docker container for ML training should be built without issue.

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant