-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fabmanager create-admin --app superset #9143
Comments
@mapingsheng1025 |
Thank you, but another problem arises (superset) [root@node04 superset]# flask fab create-admin Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory. |
documentation says: Create an admin user (you will be prompted to set a username, first and last name before setting a password)
I think you just missed the export of "FLASK_APP"? |
Depending on whether or not you're running the latest release or
|
@peschu123 is right, Linux, you need :export FLASK_APP=superset, If Windows10, we should cd .../superset/ , then: set FLASK_APP=app.py, not under .../superset/bin/. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
preks ~ I have installed apache superset in my virtual env. I ran the command 'superset db upgrade' How can I fix it? |
(superset) [root@node04 superset]# fabmanager create-admin --app superset
fabmanager is going to be deprecated in 2.2.X, you can use the same commands on the improved 'flask fab '
Username [admin]: admin
User first name [admin]: admin
User last name [user]: admin
Email [admin@fab.org]: maning1025@163.com
Password:
Repeat for confirmation:
Traceback (most recent call last):
File "/opt/superset/bin/fabmanager", line 8, in
sys.exit(cli())
File "/opt/superset/lib/python3.8/site-packages/flask_appbuilder/console.py", line 417, in cli
cli_app()
File "/opt/superset/lib/python3.8/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/opt/superset/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/opt/superset/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/superset/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/superset/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/opt/superset/lib/python3.8/site-packages/flask_appbuilder/console.py", line 132, in create_admin
auth_type.get(_appbuilder.sm.auth_type, "No Auth method")
AttributeError: 'NoneType' object has no attribute 'auth_type'
The text was updated successfully, but these errors were encountered: