# Buggy code
def from_user_input(value: str) -> "CRS":
    """
    Initialize a CRS class instance with:
      - PROJ string
      - Dictionary of PROJ parameters
      - PROJ keyword arguments for parameters
      - JSON string with PROJ parameters
      - CRS WKT string
      - An authority string [i.e. 'epsg:4326']
      - An EPSG integer code [i.e. 4326]
      - A tuple of ("auth_name": "auth_code") [i.e ('epsg', '4326')]
      - An object with a `to_wkt` method.
      - A :class:`pyproj.crs.CRS` class

    Parameters
    ----------
    value : obj
        A Python int, dict, or str.

    Returns
    -------
    CRS
    """
    if isinstance(value, CRS):
        return value
    return CRS(value)


# 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 from_user_input(value: Any) -> "CRS":
    """
    Initialize a CRS class instance with:
      - PROJ string
      - Dictionary of PROJ parameters
      - PROJ keyword arguments for parameters
      - JSON string with PROJ parameters
      - CRS WKT string
      - An authority string [i.e. 'epsg:4326']
      - An EPSG integer code [i.e. 4326]
      - A tuple of ("auth_name": "auth_code") [i.e ('epsg', '4326')]
      - An object with a `to_wkt` method.
      - A :class:`pyproj.crs.CRS` class

    Parameters
    ----------
    value : obj
        A Python int, dict, or str.

    Returns
    -------
    CRS
    """
    if isinstance(value, CRS):
        return value
    return CRS(value)