from .gribapi import *                # noqa
from .gribapi import __version__
from .gribapi import bindings_version

from .gribapi import *                # noqa
from .gribapi import __version__
from .gribapi import bindings_version

# The minimum required version for the ecCodes package
min_reqd_version_str = '2.14.0'
min_reqd_version_int = 21400

if lib.grib_get_api_version() < min_reqd_version_int:
    raise RuntimeError('ecCodes %s or higher is required. You are running version %s' % (
        min_reqd_version_str, __version__))

Check minimum required version of ecCodes engine
Check minimum required version of ecCodes engine

  from .gribapi import *                # noqa
  from .gribapi import __version__
  from .gribapi import bindings_version
  
+ # The minimum required version for the ecCodes package
+ min_reqd_version_str = '2.14.0'
+ min_reqd_version_int = 21400
+ 
+ if lib.grib_get_api_version() < min_reqd_version_int:
+     raise RuntimeError('ecCodes %s or higher is required. You are running version %s' % (
+         min_reqd_version_str, __version__))
+ 
Check minimum required version of ecCodes engine
## Code Before:
from .gribapi import *                # noqa
from .gribapi import __version__
from .gribapi import bindings_version

## Instruction:
Check minimum required version of ecCodes engine
## Code After:
from .gribapi import *                # noqa
from .gribapi import __version__
from .gribapi import bindings_version

# The minimum required version for the ecCodes package
min_reqd_version_str = '2.14.0'
min_reqd_version_int = 21400

if lib.grib_get_api_version() < min_reqd_version_int:
    raise RuntimeError('ecCodes %s or higher is required. You are running version %s' % (
        min_reqd_version_str, __version__))
