Skip to content

fix python dependency issue - #1069

Open
Lokesh Keyan (lokesh-keyan) wants to merge 2 commits into
mainfrom
lkeyan/fix-python-dependencyissue
Open

Lokesh Keyan (lokesh-keyan) wants to merge 2 commits into
mainfrom
lkeyan/fix-python-dependencyissue

Conversation

@lokesh-keyan

Copy link
Copy Markdown
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'?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a Python dependency compatibility issue between pyOpenSSL and the cryptography library that was causing boto3/botocore imports to fail with an AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'.

Changes:

  • Pins pyopenssl to version 24.0.0 in modules/python/requirements.txt to ensure compatibility with newer versions of the cryptography library

@anson627
Anson Qian (anson627) removed their request for review September 9, 2026 22:33

This branch has not been deployed

No deployments
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