Skip to content

Add pyopenssl dependency#1068

Closed
lokesh-keyan wants to merge 1 commit intomainfrom
lkeyan/fix-python-dependencyissue
Closed

Add pyopenssl dependency#1068
lokesh-keyan wants to merge 1 commit intomainfrom
lkeyan/fix-python-dependencyissue

Conversation

@lokesh-keyan
Copy link
Contributor

  • We have been seeing below error, the fix is to pin pyopenssl dependency

File "/home/AzDevOps/.local/lib/python3.10/site-packages/botocore/httpsession.py", line 45, in
from urllib3.contrib.pyopenssl import (
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 50, in
import OpenSSL.SSL
File "/usr/lib/python3/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1579, in
class X509StoreFlags(object):
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1598, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'. Did you mean: 'X509_V_FLAG_EXPLICIT_POLICY'?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Python dependency set used by the repo’s pipelines/modules to address a runtime import failure involving urllib3.contrib.pyopenssl / OpenSSL.

Changes:

  • Add a pyopenssl dependency to modules/python/requirements.txt.

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.

2 participants