shashikiran-alloli commented on issue #28390: URL: https://github.com/apache/superset/issues/28390#issuecomment-2101984779
I resolved this error basically problem was with the superset_config.py file. There's a section which I had comment out (one can even remove these lines) - I had picked the config file from here -> https://github.com/apache/superset/blob/master/superset/config.py # ------------------------------------------------------------------- # * WARNING: STOP EDITING HERE * # ------------------------------------------------------------------- # Don't add config values below this line since local configs won't be # able to override them. #if CONFIG_PATH_ENV_VAR in os.environ: # Explicitly import config module that is not necessarily in pythonpath; useful # for case where app is being executed via pex. # cfg_path = os.environ[CONFIG_PATH_ENV_VAR] # try: # module = sys.modules[__name__] # override_conf = imp.load_source("superset_config", cfg_path) # for key in dir(override_conf): # if key.isupper(): # setattr(module, key, getattr(override_conf, key)) # # click.secho(f"Loaded your LOCAL configuration at [{cfg_path}]", fg="cyan") # except Exception: # logger.exception( # "Failed to import config for %s=%s", CONFIG_PATH_ENV_VAR, cfg_path # ) # raise #elif importlib.util.find_spec("superset_config") and not is_test(): # try: # # pylint: disable=import-error,wildcard-import,unused-wildcard-import # import superset_config # from superset_config import * # noqa: F403, F401 # # click.secho( # f"Loaded your LOCAL configuration at [{superset_config.__file__}]", # fg="cyan", # ) # except Exception: # logger.exception("Found but failed to import local superset_config") # raise -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org