Open jasondickerson opened 3 months ago
I had the same issue, I found my resolution over here:
https://github.com/ansible/ansible-builder/issues/706
By adding:
dependencies:
python_interpreter:
package_system: python3.12
python_path: /usr/bin/python3.12
ansible_core:
package_pip: ansible-core>=2.16,<2.17
ansible_runner:
package_pip: ansible-runner
Although I added package_system: python3.12-devel instead because it failed to build some pip libraries without Python Development libraries
Ubuntu EE builders may want to use package_system: python3.12-dev instead
ISSUE TYPE
SUMMARY
Encountering Issue with ansible-builder building an execution environment:
Issue occurs whether dnspython is in the dependencies python list or not.
Environment is:
ANSIBLE-NAVIGATOR VERSION
CONFIGURATION
LOG FILE
STEPS TO REPRODUCE
build_arg_defaults: ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '--upgrade'
dependencies: galaxy: collections:
images: base_image: name: registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest
additional_build_files:
additional_build_steps: prepend_galaxy:
options: package_manager_path: /usr/bin/microdnf
ansible-builder build --verbosity ${EE_VERBOSITY} --prune-images --tag ${EE_NAME}:${EE_VERSION} --tag ${EE_NAME}:latest
Ignoring ipaddress: markers 'python_version < "3.3"' don't match your environment ERROR: Double requirement given: dnspython (from -r /tmp/src/requirements.txt (line 74)) (already in dnspython>=2.0.0 (from -r /tmp/src/requirements.txt (line 63)), name='dnspython') Error: building at STEP "RUN /output/scripts/assemble": while running runtime: exit status 1
dnspython >= 2.0.0