-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Describe the bug
Entering this bug reports because:
- No other errors produced in python programs not utilising boto3.
- This functionality was previously working 1 week prior to this posting and appears correlated to boto3 version update.
Ancillary Information: There was also a minor update to python 3.8 on Ubuntu in the last 10 days; however, I discount this as a root cause because all python3 programs not utilising boto3 are working normally.
--
Traceback (most recent call last):
File "/home/blake/.local/bin/keyup", line 5, in
from keyup.cli import init
File "/home/blake/.local/lib/python3.8/site-packages/keyup/cli.py", line 39, in
import boto3
File "/home/blake/.local/lib/python3.8/site-packages/boto3/init.py", line 17, in
from boto3.session import Session
File "/home/blake/.local/lib/python3.8/site-packages/boto3/session.py", line 17, in
import botocore.session
File "/home/blake/.local/lib/python3.8/site-packages/botocore/session.py", line 26, in
import botocore.client
File "/home/blake/.local/lib/python3.8/site-packages/botocore/client.py", line 15, in
from botocore import waiter, xform_name
File "/home/blake/.local/lib/python3.8/site-packages/botocore/waiter.py", line 20, in
from botocore.docs.docstring import WaiterDocstring
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/init.py", line 15, in
from botocore.docs.service import ServiceDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/service.py", line 14, in
from botocore.docs.client import (
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/client.py", line 18, in
from botocore.docs.example import ResponseExampleDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/example.py", line 13, in
from botocore.docs.shape import ShapeDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/shape.py", line 19, in
from botocore.utils import is_json_value_header
File "/home/blake/.local/lib/python3.8/site-packages/botocore/utils.py", line 39, in
import botocore.httpsession
File "/home/blake/.local/lib/python3.8/site-packages/botocore/httpsession.py", line 45, in
from urllib3.contrib.pyopenssl import (
File "/usr/local/lib/python3.8/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 1553, in
class X509StoreFlags(object):
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
No exceptions thrown
Current Behavior
Traceback (most recent call last):
File "/home/blake/.local/bin/keyup", line 5, in
from keyup.cli import init
File "/home/blake/.local/lib/python3.8/site-packages/keyup/cli.py", line 39, in
import boto3
File "/home/blake/.local/lib/python3.8/site-packages/boto3/init.py", line 17, in
from boto3.session import Session
File "/home/blake/.local/lib/python3.8/site-packages/boto3/session.py", line 17, in
import botocore.session
File "/home/blake/.local/lib/python3.8/site-packages/botocore/session.py", line 26, in
import botocore.client
File "/home/blake/.local/lib/python3.8/site-packages/botocore/client.py", line 15, in
from botocore import waiter, xform_name
File "/home/blake/.local/lib/python3.8/site-packages/botocore/waiter.py", line 20, in
from botocore.docs.docstring import WaiterDocstring
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/init.py", line 15, in
from botocore.docs.service import ServiceDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/service.py", line 14, in
from botocore.docs.client import (
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/client.py", line 18, in
from botocore.docs.example import ResponseExampleDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/example.py", line 13, in
from botocore.docs.shape import ShapeDocumenter
File "/home/blake/.local/lib/python3.8/site-packages/botocore/docs/shape.py", line 19, in
from botocore.utils import is_json_value_header
File "/home/blake/.local/lib/python3.8/site-packages/botocore/utils.py", line 39, in
import botocore.httpsession
File "/home/blake/.local/lib/python3.8/site-packages/botocore/httpsession.py", line 45, in
from urllib3.contrib.pyopenssl import (
File "/usr/local/lib/python3.8/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 1553, in
class X509StoreFlags(object):
File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1571, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
Reproduction Steps
- Install
keyuppython3 program - Attempt to run any keyup command (keyup --help for example)
- Exception thrown in crypto.py module
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.37.23
Environment details (OS name and version, etc.)
Ubuntu 20.10, Python 3.8.10