There was nothing to log but the fatal error std::bad_alloc std::bad_alloc didn't allow any traceback and was not caught by the wfs100.py exception handler. I added an exception handler to trap importing from OWSlib but it still could not trap bad_alloc: import logging try: from .owslib.wfs import WebFeatureService except Exception: logging.exception("ERROR: import from .owslib.wfs import WebFeatureService") logging.exception(" : " + error.__class__.__name__ + ": " + error.message) raise ImportError('ERROR: import from .owslib.wfs import WebFeatureService') It looks like a bug within Python3.11 but installing python311-pyproj got around it. It is possible the bad_alloc error came about from originally installing the Python module pyproj using pip as there was no python311-pyproj package for Leap 15.6