can't change secret key #29655
Replies: 2 comments 1 reply
-
Hello @PNA921! 👋 I'm here to help you with any issues or questions you have. I'm a bot designed to assist with bug fixes, answer questions, and guide you on becoming a contributor. To resolve the @click.group(
cls=FlaskGroup,
context_settings={"token_normalize_func": normalize_token},
)
@with_appcontext
def superset() -> None:
"""\033[1;37mThe Apache Superset CLI\033[0m"""
# NOTE: codes above are ANSI color codes for bold white in CLI header ^^^
@app.shell_context_processor
def make_shell_context() -> dict[str, Any]:
return {"app": app, "db": db}
# add sub-commands
for load, module_name, is_pkg in pkgutil.walk_packages(
cli.__path__, cli.__name__ + "."
):
module = importlib.import_module(module_name)
for attribute in module.__dict__.values():
if isinstance(attribute, (click.core.Command, click.core.Group)):
superset.add_command(attribute)
if isinstance(attribute, click.core.Group):
break Additionally, in versions after 1.5.1, all Superset CLI commands now require setting the export FLASK_APP=superset This change ensures that the necessary environment variable is set, which could prevent the If the issue persists, it might be due to an environment-specific problem or a missing dependency. Double-check your environment setup and ensure all necessary packages are installed. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I need to change it, to string: |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm trying to change default secret key in my Superset 1.5.1. according to the instructions from superset web site.
When I log into the container and enter the command "superset shell" I get an error:
root@0c5b24f8ad75:/app# superset shell
Traceback (most recent call last):
File "/usr/local/bin/superset", line 33, in
sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
File "/usr/local/bin/superset", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/local/lib/python3.8/importlib/metadata.py", line 79, in load
return functools.reduce(getattr, attrs, module)
AttributeError: module 'superset.cli' has no attribute 'superset'
And I can't enter any other command, like "superset --versiont". I get same error.
What I can do with it?
Beta Was this translation helpful? Give feedback.
All reactions