30 KiB
30 KiB
import cv2
import matplotlib.pyplot as plt
import torch
from IPython.display import Video
from torchinfo import summary
from super_gradients.training import models
from super_gradients.training import Trainer
from super_gradients.training import dataloaders
from super_gradients.training.dataloaders.dataloaders import (
coco_detection_yolo_format_train,
coco_detection_yolo_format_val)
model = models.get("yolo_nas_l", pretrained_weights="coco")
The console stream is logged into C:\Users\tomas\sg_logs\console.log
[1;31m---------------------------------------------------------------------------[0m [1;31mAttributeError[0m Traceback (most recent call last) Cell [1;32mIn[1], line 6[0m [0;32m 4[0m [38;5;28;01mfrom[39;00m [38;5;21;01mIPython[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdisplay[39;00m [38;5;28;01mimport[39;00m Video [0;32m 5[0m [38;5;28;01mfrom[39;00m [38;5;21;01mtorchinfo[39;00m [38;5;28;01mimport[39;00m summary [1;32m----> 6[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mtraining[39;00m [38;5;28;01mimport[39;00m models [0;32m 7[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mtraining[39;00m [38;5;28;01mimport[39;00m Trainer [0;32m 8[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mtraining[39;00m [38;5;28;01mimport[39;00m dataloaders File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\super_gradients\__init__.py:3[0m [0;32m 1[0m __version__ [38;5;241m=[39m [38;5;124m"[39m[38;5;124m3.6.0[39m[38;5;124m"[39m [1;32m----> 3[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m [38;5;28;01mimport[39;00m init_trainer, is_distributed, object_names [0;32m 4[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mtraining[39;00m [38;5;28;01mimport[39;00m losses, utils, datasets_utils, DataAugmentation, Trainer, KDTrainer, QATTrainer [0;32m 5[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01mregistry[39;00m[38;5;21;01m.[39;00m[38;5;21;01mregistry[39;00m [38;5;28;01mimport[39;00m ARCHITECTURES File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\__init__.py:4[0m [0;32m 2[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcrash_handler[39;00m [38;5;28;01mimport[39;00m setup_crash_handler [0;32m 3[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdecorators[39;00m [38;5;28;01mimport[39;00m explicit_params_validation, singleton [1;32m----> 4[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01maws_connection[39;00m [38;5;28;01mimport[39;00m AWSConnector [0;32m 5[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdata_connection[39;00m [38;5;28;01mimport[39;00m S3Connector [0;32m 6[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdata_interface[39;00m [38;5;28;01mimport[39;00m DatasetDataInterface, ADNNModelRepositoryDataInterfaces File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\aws_connection\__init__.py:2[0m [0;32m 1[0m [38;5;66;03m# PACKAGE IMPORTS FOR EXTERNAL USAGE[39;00m [1;32m----> 2[0m [38;5;28;01mfrom[39;00m [38;5;21;01msuper_gradients[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcommon[39;00m[38;5;21;01m.[39;00m[38;5;21;01maws_connection[39;00m[38;5;21;01m.[39;00m[38;5;21;01maws_connector[39;00m [38;5;28;01mimport[39;00m AWSConnector [0;32m 4[0m __all__ [38;5;241m=[39m [[38;5;124m"[39m[38;5;124mAWSConnector[39m[38;5;124m"[39m] File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\aws_connection\aws_connector.py:3[0m [0;32m 1[0m [38;5;28;01mimport[39;00m [38;5;21;01msys[39;00m [1;32m----> 3[0m [38;5;28;01mimport[39;00m [38;5;21;01mboto3[39;00m [0;32m 4[0m [38;5;28;01mimport[39;00m [38;5;21;01mlogging[39;00m [0;32m 5[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mexceptions[39;00m [38;5;28;01mimport[39;00m ClientError, ProfileNotFound File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\boto3\__init__.py:17[0m [0;32m 14[0m [38;5;28;01mimport[39;00m [38;5;21;01mlogging[39;00m [0;32m 16[0m [38;5;28;01mfrom[39;00m [38;5;21;01mboto3[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcompat[39;00m [38;5;28;01mimport[39;00m _warn_deprecated_python [1;32m---> 17[0m [38;5;28;01mfrom[39;00m [38;5;21;01mboto3[39;00m[38;5;21;01m.[39;00m[38;5;21;01msession[39;00m [38;5;28;01mimport[39;00m Session [0;32m 19[0m __author__ [38;5;241m=[39m [38;5;124m'[39m[38;5;124mAmazon Web Services[39m[38;5;124m'[39m [0;32m 20[0m __version__ [38;5;241m=[39m [38;5;124m'[39m[38;5;124m1.34.33[39m[38;5;124m'[39m File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\boto3\session.py:17[0m [0;32m 14[0m [38;5;28;01mimport[39;00m [38;5;21;01mcopy[39;00m [0;32m 15[0m [38;5;28;01mimport[39;00m [38;5;21;01mos[39;00m [1;32m---> 17[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01msession[39;00m [0;32m 18[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mclient[39;00m [38;5;28;01mimport[39;00m Config [0;32m 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mexceptions[39;00m [38;5;28;01mimport[39;00m DataNotFoundError, UnknownServiceError File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\session.py:26[0m [0;32m 23[0m [38;5;28;01mimport[39;00m [38;5;21;01msocket[39;00m [0;32m 24[0m [38;5;28;01mimport[39;00m [38;5;21;01mwarnings[39;00m [1;32m---> 26[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mclient[39;00m [0;32m 27[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mconfigloader[39;00m [0;32m 28[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcredentials[39;00m File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\client.py:15[0m [0;32m 1[0m [38;5;66;03m# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.[39;00m [0;32m 2[0m [38;5;66;03m#[39;00m [0;32m 3[0m [38;5;66;03m# Licensed under the Apache License, Version 2.0 (the "License"). You[39;00m [1;32m (...)[0m [0;32m 11[0m [38;5;66;03m# ANY KIND, either express or implied. See the License for the specific[39;00m [0;32m 12[0m [38;5;66;03m# language governing permissions and limitations under the License.[39;00m [0;32m 13[0m [38;5;28;01mimport[39;00m [38;5;21;01mlogging[39;00m [1;32m---> 15[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m [38;5;28;01mimport[39;00m waiter, xform_name [0;32m 16[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01margs[39;00m [38;5;28;01mimport[39;00m ClientArgsCreator [0;32m 17[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mauth[39;00m [38;5;28;01mimport[39;00m AUTH_TYPE_MAPS File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\waiter.py:18[0m [0;32m 14[0m [38;5;28;01mimport[39;00m [38;5;21;01mtime[39;00m [0;32m 16[0m [38;5;28;01mimport[39;00m [38;5;21;01mjmespath[39;00m [1;32m---> 18[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocstring[39;00m [38;5;28;01mimport[39;00m WaiterDocstring [0;32m 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mutils[39;00m [38;5;28;01mimport[39;00m get_service_module_name [0;32m 21[0m [38;5;28;01mfrom[39;00m [38;5;21;01m.[39;00m [38;5;28;01mimport[39;00m xform_name File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\__init__.py:15[0m [0;32m 1[0m [38;5;66;03m# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.[39;00m [0;32m 2[0m [38;5;66;03m#[39;00m [0;32m 3[0m [38;5;66;03m# Licensed under the Apache License, Version 2.0 (the "License"). You[39;00m [1;32m (...)[0m [0;32m 11[0m [38;5;66;03m# ANY KIND, either express or implied. See the License for the specific[39;00m [0;32m 12[0m [38;5;66;03m# language governing permissions and limitations under the License.[39;00m [0;32m 13[0m [38;5;28;01mimport[39;00m [38;5;21;01mos[39;00m [1;32m---> 15[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mservice[39;00m [38;5;28;01mimport[39;00m ServiceDocumenter [0;32m 17[0m DEPRECATED_SERVICE_NAMES [38;5;241m=[39m {[38;5;124m'[39m[38;5;124msms-voice[39m[38;5;124m'[39m} [0;32m 20[0m [38;5;28;01mdef[39;00m [38;5;21mgenerate_docs[39m(root_dir, session): File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\service.py:14[0m [0;32m 1[0m [38;5;66;03m# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.[39;00m [0;32m 2[0m [38;5;66;03m#[39;00m [0;32m 3[0m [38;5;66;03m# Licensed under the Apache License, Version 2.0 (the "License"). You[39;00m [1;32m (...)[0m [0;32m 11[0m [38;5;66;03m# ANY KIND, either express or implied. See the License for the specific[39;00m [0;32m 12[0m [38;5;66;03m# language governing permissions and limitations under the License.[39;00m [0;32m 13[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mbcdoc[39;00m[38;5;21;01m.[39;00m[38;5;21;01mrestdoc[39;00m [38;5;28;01mimport[39;00m DocumentStructure [1;32m---> 14[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mclient[39;00m [38;5;28;01mimport[39;00m ( [0;32m 15[0m ClientContextParamsDocumenter, [0;32m 16[0m ClientDocumenter, [0;32m 17[0m ClientExceptionsDocumenter, [0;32m 18[0m ) [0;32m 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mpaginator[39;00m [38;5;28;01mimport[39;00m PaginatorDocumenter [0;32m 20[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mwaiter[39;00m [38;5;28;01mimport[39;00m WaiterDocumenter File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\client.py:18[0m [0;32m 16[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcompat[39;00m [38;5;28;01mimport[39;00m OrderedDict [0;32m 17[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mbcdoc[39;00m[38;5;21;01m.[39;00m[38;5;21;01mrestdoc[39;00m [38;5;28;01mimport[39;00m DocumentStructure [1;32m---> 18[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mexample[39;00m [38;5;28;01mimport[39;00m ResponseExampleDocumenter [0;32m 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mmethod[39;00m [38;5;28;01mimport[39;00m ( [0;32m 20[0m document_custom_method, [0;32m 21[0m document_model_driven_method, [0;32m 22[0m get_instance_public_methods, [0;32m 23[0m ) [0;32m 24[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mparams[39;00m [38;5;28;01mimport[39;00m ResponseParamsDocumenter File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\example.py:13[0m [0;32m 1[0m [38;5;66;03m# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.[39;00m [0;32m 2[0m [38;5;66;03m#[39;00m [0;32m 3[0m [38;5;66;03m# Licensed under the Apache License, Version 2.0 (the "License"). You[39;00m [1;32m (...)[0m [0;32m 11[0m [38;5;66;03m# ANY KIND, either express or implied. See the License for the specific[39;00m [0;32m 12[0m [38;5;66;03m# language governing permissions and limitations under the License.[39;00m [1;32m---> 13[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mshape[39;00m [38;5;28;01mimport[39;00m ShapeDocumenter [0;32m 14[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mdocs[39;00m[38;5;21;01m.[39;00m[38;5;21;01mutils[39;00m [38;5;28;01mimport[39;00m py_default [0;32m 17[0m [38;5;28;01mclass[39;00m [38;5;21;01mBaseExampleDocumenter[39;00m(ShapeDocumenter): File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\shape.py:19[0m [0;32m 1[0m [38;5;66;03m# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.[39;00m [0;32m 2[0m [38;5;66;03m#[39;00m [0;32m 3[0m [38;5;66;03m# Licensed under the Apache License, Version 2.0 (the "License"). You[39;00m [1;32m (...)[0m [0;32m 17[0m [38;5;66;03m# inherited from a Documenter class with the appropriate methods[39;00m [0;32m 18[0m [38;5;66;03m# and attributes.[39;00m [1;32m---> 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mutils[39;00m [38;5;28;01mimport[39;00m is_json_value_header [0;32m 22[0m [38;5;28;01mclass[39;00m [38;5;21;01mShapeDocumenter[39;00m: [0;32m 23[0m EVENT_NAME [38;5;241m=[39m [38;5;124m'[39m[38;5;124m'[39m File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\utils.py:39[0m [0;32m 37[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m [0;32m 38[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mawsrequest[39;00m [1;32m---> 39[0m [38;5;28;01mimport[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mhttpsession[39;00m [0;32m 41[0m [38;5;66;03m# IP Regexes retained for backwards compatibility[39;00m [0;32m 42[0m [38;5;28;01mfrom[39;00m [38;5;21;01mbotocore[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcompat[39;00m [38;5;28;01mimport[39;00m HEX_PAT [38;5;66;03m# noqa: F401[39;00m File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\botocore\httpsession.py:45[0m [0;32m 43[0m warnings[38;5;241m.[39msimplefilter([38;5;124m"[39m[38;5;124mignore[39m[38;5;124m"[39m, category[38;5;241m=[39m[38;5;167;01mDeprecationWarning[39;00m) [0;32m 44[0m [38;5;66;03m# Always import the original SSLContext, even if it has been patched[39;00m [1;32m---> 45[0m [38;5;28;01mfrom[39;00m [38;5;21;01murllib3[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcontrib[39;00m[38;5;21;01m.[39;00m[38;5;21;01mpyopenssl[39;00m [38;5;28;01mimport[39;00m ( [0;32m 46[0m orig_util_SSLContext [38;5;28;01mas[39;00m SSLContext, [0;32m 47[0m ) [0;32m 48[0m [38;5;28;01mexcept[39;00m [38;5;167;01mImportError[39;00m: [0;32m 49[0m [38;5;28;01mfrom[39;00m [38;5;21;01murllib3[39;00m[38;5;21;01m.[39;00m[38;5;21;01mutil[39;00m[38;5;21;01m.[39;00m[38;5;21;01mssl_[39;00m [38;5;28;01mimport[39;00m SSLContext File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py:50[0m [0;32m 1[0m [38;5;124;03m"""[39;00m [0;32m 2[0m [38;5;124;03mTLS with SNI_-support for Python 2. Follow these instructions if you would[39;00m [0;32m 3[0m [38;5;124;03mlike to verify TLS certificates in Python 2. Note, the default libraries do[39;00m [1;32m (...)[0m [0;32m 46[0m [38;5;124;03m.. _idna: https://github.com/kjd/idna[39;00m [0;32m 47[0m [38;5;124;03m"""[39;00m [0;32m 48[0m [38;5;28;01mfrom[39;00m [38;5;21;01m__future__[39;00m [38;5;28;01mimport[39;00m absolute_import [1;32m---> 50[0m [38;5;28;01mimport[39;00m [38;5;21;01mOpenSSL[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcrypto[39;00m [0;32m 51[0m [38;5;28;01mimport[39;00m [38;5;21;01mOpenSSL[39;00m[38;5;21;01m.[39;00m[38;5;21;01mSSL[39;00m [0;32m 52[0m [38;5;28;01mfrom[39;00m [38;5;21;01mcryptography[39;00m [38;5;28;01mimport[39;00m x509 File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\__init__.py:8[0m [0;32m 1[0m [38;5;66;03m# Copyright (C) AB Strakt[39;00m [0;32m 2[0m [38;5;66;03m# See LICENSE for details.[39;00m [0;32m 4[0m [38;5;124;03m"""[39;00m [0;32m 5[0m [38;5;124;03mpyOpenSSL - A simple wrapper around the OpenSSL library[39;00m [0;32m 6[0m [38;5;124;03m"""[39;00m [1;32m----> 8[0m [38;5;28;01mfrom[39;00m [38;5;21;01mOpenSSL[39;00m [38;5;28;01mimport[39;00m SSL, crypto [0;32m 9[0m [38;5;28;01mfrom[39;00m [38;5;21;01mOpenSSL[39;00m[38;5;21;01m.[39;00m[38;5;21;01mversion[39;00m [38;5;28;01mimport[39;00m ( [0;32m 10[0m __author__, [0;32m 11[0m __copyright__, [1;32m (...)[0m [0;32m 17[0m __version__, [0;32m 18[0m ) [0;32m 21[0m __all__ [38;5;241m=[39m [ [0;32m 22[0m [38;5;124m"[39m[38;5;124mSSL[39m[38;5;124m"[39m, [0;32m 23[0m [38;5;124m"[39m[38;5;124mcrypto[39m[38;5;124m"[39m, [1;32m (...)[0m [0;32m 31[0m [38;5;124m"[39m[38;5;124m__version__[39m[38;5;124m"[39m, [0;32m 32[0m ] File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\SSL.py:19[0m [0;32m 7[0m [38;5;28;01mfrom[39;00m [38;5;21;01mweakref[39;00m [38;5;28;01mimport[39;00m WeakValueDictionary [0;32m 9[0m [38;5;28;01mfrom[39;00m [38;5;21;01mOpenSSL[39;00m[38;5;21;01m.[39;00m[38;5;21;01m_util[39;00m [38;5;28;01mimport[39;00m ( [0;32m 10[0m UNSPECIFIED [38;5;28;01mas[39;00m _UNSPECIFIED, [0;32m 11[0m exception_from_error_queue [38;5;28;01mas[39;00m _exception_from_error_queue, [1;32m (...)[0m [0;32m 17[0m text_to_bytes_and_warn [38;5;28;01mas[39;00m _text_to_bytes_and_warn, [0;32m 18[0m ) [1;32m---> 19[0m [38;5;28;01mfrom[39;00m [38;5;21;01mOpenSSL[39;00m[38;5;21;01m.[39;00m[38;5;21;01mcrypto[39;00m [38;5;28;01mimport[39;00m ( [0;32m 20[0m FILETYPE_PEM, [0;32m 21[0m PKey, [0;32m 22[0m X509, [0;32m 23[0m X509Name, [0;32m 24[0m X509Store, [0;32m 25[0m _PassphraseHelper, [0;32m 26[0m ) [0;32m 28[0m __all__ [38;5;241m=[39m [ [0;32m 29[0m [38;5;124m"[39m[38;5;124mOPENSSL_VERSION_NUMBER[39m[38;5;124m"[39m, [0;32m 30[0m [38;5;124m"[39m[38;5;124mSSLEAY_VERSION[39m[38;5;124m"[39m, [1;32m (...)[0m [0;32m 125[0m [38;5;124m"[39m[38;5;124mConnection[39m[38;5;124m"[39m, [0;32m 126[0m ] [0;32m 129[0m OPENSSL_VERSION_NUMBER [38;5;241m=[39m _lib[38;5;241m.[39mOPENSSL_VERSION_NUMBER File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\crypto.py:1616[0m [0;32m 1612[0m ext[38;5;241m.[39m_extension [38;5;241m=[39m _ffi[38;5;241m.[39mgc(extension, _lib[38;5;241m.[39mX509_EXTENSION_free) [0;32m 1613[0m [38;5;28;01mreturn[39;00m ext [1;32m-> 1616[0m [38;5;28;01mclass[39;00m [38;5;21;01mX509StoreFlags[39;00m: [0;32m 1617[0m [38;5;250m [39m[38;5;124;03m"""[39;00m [0;32m 1618[0m [38;5;124;03m Flags for X509 verification, used to change the behavior of[39;00m [0;32m 1619[0m [38;5;124;03m :class:`X509Store`.[39;00m [1;32m (...)[0m [0;32m 1624[0m [38;5;124;03m https://www.openssl.org/docs/manmaster/man3/X509_VERIFY_PARAM_set_flags.html[39;00m [0;32m 1625[0m [38;5;124;03m """[39;00m [0;32m 1627[0m CRL_CHECK: [38;5;28mint[39m [38;5;241m=[39m _lib[38;5;241m.[39mX509_V_FLAG_CRL_CHECK File [1;32mc:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\crypto.py:1635[0m, in [0;36mX509StoreFlags[1;34m()[0m [0;32m 1633[0m EXPLICIT_POLICY: [38;5;28mint[39m [38;5;241m=[39m _lib[38;5;241m.[39mX509_V_FLAG_EXPLICIT_POLICY [0;32m 1634[0m INHIBIT_MAP: [38;5;28mint[39m [38;5;241m=[39m _lib[38;5;241m.[39mX509_V_FLAG_INHIBIT_MAP [1;32m-> 1635[0m NOTIFY_POLICY: [38;5;28mint[39m [38;5;241m=[39m [43m_lib[49m[38;5;241;43m.[39;49m[43mX509_V_FLAG_NOTIFY_POLICY[49m [0;32m 1636[0m CHECK_SS_SIGNATURE: [38;5;28mint[39m [38;5;241m=[39m _lib[38;5;241m.[39mX509_V_FLAG_CHECK_SS_SIGNATURE [0;32m 1637[0m PARTIAL_CHAIN: [38;5;28mint[39m [38;5;241m=[39m _lib[38;5;241m.[39mX509_V_FLAG_PARTIAL_CHAIN [1;31mAttributeError[0m: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'