# Buggy code
def __init__(
    self,
    name: str,
    datum: Any,
    vertical_cs: Any = VerticalCS(),
    geoid_model: str = None,
) -> None:
    """
    Parameters
    ----------
    name: str
        The name of the Vertical CRS (e.g. NAVD88 height).
    datum: Any
        Anything accepted by :meth:`pyproj.crs.Datum.from_user_input`
    vertical_cs: Any, optional
        Input to create a Vertical Coordinate System accepted by
        :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or :class:`pyproj.crs.coordinate_system.VerticalCS`
    geoid_model: str, optional
        The name of the GEOID Model (e.g. GEOID12B).
    """
    vert_crs_json = {
        "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json",
        "type": "VerticalCRS",
        "name": name,
        "datum": Datum.from_user_input(datum).to_json_dict(),
        "coordinate_system": CoordinateSystem.from_user_input(
            vertical_cs
        ).to_json_dict(),
    }
    if geoid_model is not None:
        vert_crs_json["geoid_model"] = {"name": geoid_model}

    super().__init__(vert_crs_json)


# Traceback (KeyError)
import pyproj

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name()

KeyError: 'URN:OGC:DEF:DATUM:EPSG::6326'

During handling of the above exception, another exception occurred:

CRSError                                  Traceback (most recent call last)
~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_string()

~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_name()

CRSError: Invalid datum name: urn:ogc:def:datum:EPSG::6326

During handling of the above exception, another exception occurred:

CRSError                                  Traceback (most recent call last)
<ipython-input-1-98cb605ea9de> in <module>
----> 1 import pyproj

~/scipy/repos/pyproj/pyproj/__init__.py in <module>
79 )
80 from pyproj._show_versions import show_versions  # noqa: F401
---> 81 from pyproj.crs import CRS  # noqa: F401
82 from pyproj.exceptions import DataDirError, ProjError  # noqa: F401
83 from pyproj.geod import Geod, geodesic_version_str, pj_ellps  # noqa: F401

~/scipy/repos/pyproj/pyproj/crs/__init__.py in <module>
17     is_wkt,
18 )
---> 19 from pyproj.crs.crs import (  # noqa: F401
20     CRS,
21     BoundCRS,

~/scipy/repos/pyproj/pyproj/crs/crs.py in <module>
1026
1027
-> 1028 class ProjectedCRS(CRS):
1029     """
1030     .. versionadded:: 2.5.0

~/scipy/repos/pyproj/pyproj/crs/crs.py in ProjectedCRS()
1038         name="undefined",
1039         cartesian_cs=Cartesian2DCS(),
-> 1040         geodetic_crs=GeographicCRS(),
1041     ):
1042         """

~/scipy/repos/pyproj/pyproj/crs/crs.py in __init__(self, name, datum, ellipsoidal_cs)
977             "type": "GeographicCRS",
978             "name": name,
--> 979             "datum": Datum.from_user_input(datum).to_json_dict(),
980             "coordinate_system": CoordinateSystem.from_user_input(
981                 ellipsoidal_cs

~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs._CRSParts.from_user_input()

~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_string()

~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum.from_string()

~/scipy/repos/pyproj/pyproj/_crs.pyx in pyproj._crs.Datum._from_string()

CRSError: Invalid datum string: urn:ogc:def:datum:EPSG::6326: (Internal Proj Error: proj_create: SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code, prime_meridian_auth_name, prime_meridian_code, area_of_use_auth_name, area_of_use_code, publication_date, deprecated FROM geodetic_datum WHERE auth_name = ? AND code = ?: no such column: publication_date)

# Fixed code
def __init__(
    self,
    name: str,
    datum: Any,
    vertical_cs: Any = None,
    geoid_model: Optional[str] = None,
) -> None:
    """
    Parameters
    ----------
    name: str
        The name of the Vertical CRS (e.g. NAVD88 height).
    datum: Any
        Anything accepted by :meth:`pyproj.crs.Datum.from_user_input`
    vertical_cs: Any, optional
        Input to create a Vertical Coordinate System accepted by
        :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or :class:`pyproj.crs.coordinate_system.VerticalCS`
    geoid_model: str, optional
        The name of the GEOID Model (e.g. GEOID12B).
    """
    vert_crs_json = {
        "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json",
        "type": "VerticalCRS",
        "name": name,
        "datum": Datum.from_user_input(datum).to_json_dict(),
        "coordinate_system": CoordinateSystem.from_user_input(
            vertical_cs or VerticalCS()
        ).to_json_dict(),
    }
    if geoid_model is not None:
        vert_crs_json["geoid_model"] = {"name": geoid_model}

    super().__init__(vert_crs_json)