Skip to content

fix python dependency issue#1069

Open
lokesh-keyan wants to merge 2 commits intomainfrom
lkeyan/fix-python-dependencyissue
Open

fix python dependency issue#1069
lokesh-keyan wants to merge 2 commits 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'?

Copilot AI review requested due to automatic review settings February 18, 2026 19:59
@lokesh-keyan lokesh-keyan changed the title Lkeyan/fix python dependencyissue fix python dependency issue Feb 18, 2026
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 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

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

Comments