Goodmorning, I’m continually getting the same erro...
# questions
n
Goodmorning, I’m continually getting the same errors about globals.yml file… I’ve tried everything. Can somebody of Kedro’s team help me? The error is: “omegaconf.errors.InterpolationResolutionError: Globals key ‘DATA_FILEPATH’ not found and no default value provided. I have that variable in my conf/base/globals.yml file. I’ve tried to put the globals file in every path combination, I’ve checked millions of time the settings.py. Thanks
K 1
1
h
hey @Nicolò Vallana, to help us investigate further, can you share how you set up your config in the globals.yml file please?
👍🏼 1
n
Can you share a few information? • your
settings.py
globals.yml
and it's path • your
catalog.yml
or
parameters.yml
that referencing the globals config?
^ and your Kedro version
n
Here's my settings.py:
Copy code
"""Project settings. There is no need to edit this file unless you want to change values
from the Kedro defaults. For further information, including these default values, see
<https://docs.kedro.org/en/stable/kedro_project_setup/settings.html|https://docs.kedro.org/en/stable/kedro_project_setup/settings.html>."""

# Instantiated project hooks.
from adviser.hooks import (
    SparkHooks,
    PDBNodeDebugHook,
    PDBPipelineDebugHook,
)  # noqa: E402

# Hooks are executed in a Last-In-First-Out (LIFO) order.
HOOKS = (SparkHooks(),PDBNodeDebugHook(),PDBPipelineDebugHook())

# Installed plugins for which to disable hook auto-registration.
# DISABLE_HOOKS_FOR_PLUGINS = ("kedro-viz",)

from pathlib import Path  # noqa: E402

from kedro_viz.integrations.kedro.sqlite_store import SQLiteStore  # noqa: E402

# Class that manages storing KedroSession data.

SESSION_STORE_CLASS = SQLiteStore
# Keyword arguments to pass to the `SESSION_STORE_CLASS` constructor.
SESSION_STORE_ARGS = {"path": str(Path(__file__).parents[2])}

# Directory that holds configuration.
CONF_SOURCE = "conf"

# Class that manages how configuration is loaded.
from kedro.config import OmegaConfigLoader  # noqa: E402

CONFIG_LOADER_CLASS = OmegaConfigLoader
# Keyword arguments to pass to the `CONFIG_LOADER_CLASS` constructor.
CONFIG_LOADER_ARGS = {
    "base_env": "base",
    "default_run_env": "local",
    "config_patterns": {
        "spark": ["spark*", "spark*/**"],
    }
}

# Class that manages Kedro's library components.
# from kedro.framework.context import KedroContext
# CONTEXT_CLASS = KedroContext

# Class that manages the Data Catalog.
# from <http://kedro.io|kedro.io> import DataCatalog
# DATA_CATALOG_CLASS = DataCatalog
My globals file:
Copy code
# User Configurations
USER: admin
DATA_FILEPATH: /project_name/data

# Sensor Configurations
SENSOR: XVF
Path of the globals file: /project_name/conf/base/globals.yml My catalog.yml:
Copy code
master_table:
  type: abstractdataset
  parameters_list:
    - ${globals:SENSOR}
j
@Nicolò Vallana if possible, would you mind sharing the full traceback as well? the one ending in
omegaconf.errors.InterpolationResolutionError: Globals key 'DATA_FILEPATH' not found ...
n
For the record we settle this in a private conversation. The root cause is actually hidden in a dataset implementation but it get buried under the OmegaConfigLoader error.
👍🏼 1
👍 1