# Buggy code
def __init__(
    self,
    conversion: Any,
    name: str = "undefined",
    cartesian_cs: Any = Cartesian2DCS(),
    geodetic_crs: Any = GeographicCRS(),
) -> None:
    """
    Parameters
    ----------
    conversion: Any
        Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or a conversion from :ref:`coordinate_operation`.
    name: str, optional
        The name of the Projected CRS. Default is undefined.
    cartesian_cs: Any, optional
        Input to create a Cartesian Coordinate System.
        Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or :class:`pyproj.crs.coordinate_system.Cartesian2DCS`.
    geodetic_crs: Any, optional
        Input to create the Geodetic CRS, a :class:`GeographicCRS` or
        anything accepted by :meth:`pyproj.crs.CRS.from_user_input`.
    """
    proj_crs_json = {
        "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json",
        "type": "ProjectedCRS",
        "name": name,
        "base_crs": CRS.from_user_input(geodetic_crs).to_json_dict(),
        "conversion": CoordinateOperation.from_user_input(conversion).to_json_dict(),
        "coordinate_system": CoordinateSystem.from_user_input(
            cartesian_cs
        ).to_json_dict(),
    }
    super().__init__(proj_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,
    conversion: Any,
    name: str = "undefined",
    cartesian_cs: Any = None,
    geodetic_crs: Any = None,
) -> None:
    """
    Parameters
    ----------
    conversion: Any
        Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or a conversion from :ref:`coordinate_operation`.
    name: str, optional
        The name of the Projected CRS. Default is undefined.
    cartesian_cs: Any, optional
        Input to create a Cartesian Coordinate System.
        Anything accepted by :meth:`pyproj.crs.CoordinateSystem.from_user_input`
        or :class:`pyproj.crs.coordinate_system.Cartesian2DCS`.
    geodetic_crs: Any, optional
        Input to create the Geodetic CRS, a :class:`GeographicCRS` or
        anything accepted by :meth:`pyproj.crs.CRS.from_user_input`.
    """
    proj_crs_json = {
        "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json",
        "type": "ProjectedCRS",
        "name": name,
        "base_crs": CRS.from_user_input(geodetic_crs or GeographicCRS()).to_json_dict(),
        "conversion": CoordinateOperation.from_user_input(conversion).to_json_dict(),
        "coordinate_system": CoordinateSystem.from_user_input(
            cartesian_cs or Cartesian2DCS()
        ).to_json_dict(),
    }
    super().__init__(proj_crs_json)