Python Package Conflict¶
A ContextualVersionConflict message similar to the following appears in the command line to alert you:
pkg_resources.ContextualVersionConflict: (requests 2.26.0 (/Users/user355/miniconda3/lib/python3.8/site-packages),
Requirement.parse('requests==2.22.0'), {'DKCloudCommand'})
Details¶
The Automation CLI installs with some Python packages at strict version levels (using ==).
Potential causes¶
A package conflict can be caused:
- If you have a pre-existing package installed at a different version than is included in the Automation CLI.
- If you need to update a package for new functionality or resolve a dependency elsewhere.
Solution¶
- Use the
pip listcommand to see the current package versions installed with your instance of the Automation CLI. - Upgrade—or downgrade—the conflicting package to match the CLI requirements noted in the error message.
Alternatively, install the CLI in a separate environment from the conflicting package version.
Related topics¶
Note
Still not working? Contact DataKitchen Support. We can work through this together.