Python pkg_resources.ExtractionError() Examples

The following are 30 code examples of pkg_resources.ExtractionError(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module pkg_resources , or try the search function .
Example #1
Source File: ssl_support.py    From jarvis with GNU General Public License v2.0 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #2
Source File: ssl_support.py    From rules_pip with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #3
Source File: ssl_support.py    From ImageFusion with MIT License 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #4
Source File: ssl_support.py    From Ansible with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #5
Source File: ssl_support.py    From datafari with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #6
Source File: ssl_support.py    From setuptools with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #7
Source File: ssl_support.py    From PhonePi_SampleServer with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #8
Source File: ssl_support.py    From syntheticmass with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #9
Source File: ssl_support.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #10
Source File: ssl_support.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #11
Source File: ssl_support.py    From planespotter with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #12
Source File: ssl_support.py    From V1EngineeringInc-Docs with Creative Commons Attribution Share Alike 4.0 International 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #13
Source File: ssl_support.py    From Hands-On-Deep-Learning-for-Games with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #14
Source File: ssl_support.py    From aws-kube-codesuite with Apache License 2.0 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #15
Source File: ssl_support.py    From android_universal with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #16
Source File: ssl_support.py    From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #17
Source File: ssl_support.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #18
Source File: ssl_support.py    From Flask with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #19
Source File: ssl_support.py    From Flask with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #20
Source File: ssl_support.py    From anpr with Creative Commons Attribution 4.0 International 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #21
Source File: ssl_support.py    From python-netsurv with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #22
Source File: ssl_support.py    From python-netsurv with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #23
Source File: ssl_support.py    From pledgeservice with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #24
Source File: ssl_support.py    From lambda-packs with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #25
Source File: ssl_support.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #26
Source File: ssl_support.py    From lambda-chef-node-cleanup with Apache License 2.0 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #27
Source File: ssl_support.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #28
Source File: ssl_support.py    From oss-ftp with MIT License 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None 
Example #29
Source File: ssl_support.py    From Mastering-Elasticsearch-7.0 with MIT License 5 votes vote down vote up
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass 
Example #30
Source File: ssl_support.py    From jbox with MIT License 5 votes vote down vote up
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None