Skip to content

Fix ImportError by upgrading urllib3 post-installation#148

Open
mtchoum1 wants to merge 1 commit intorhoai-mlops:mainfrom
mtchoum1:mtchoum1-patch-2
Open

Fix ImportError by upgrading urllib3 post-installation#148
mtchoum1 wants to merge 1 commit intorhoai-mlops:mainfrom
mtchoum1:mtchoum1-patch-2

Conversation

@mtchoum1
Copy link
Contributor

Description: Summary Explicitly upgrades urllib3 after the locust installation to resolve a dependency conflict.

Reason for Change Running the previous build resulted in the following ImportError due to a version mismatch in urllib3:
ImportError: cannot import name 'create_urllib3_context' from 'urllib3.util'
(/opt/app-root/lib64/python3.11/site-packages/urllib3/util/init.py)

Resolution Forcing an upgrade of urllib3 ensures the environment has the correct version required by the dependencies, resolving the import error.

Added command to upgrade urllib3 after installing locust.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant