You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/14 10:53:26 UTC

[GitHub] [incubator-superset] mapingsheng1025 opened a new issue #9143: fabmanager create-admin --app superset

mapingsheng1025 opened a new issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143
 
 
   (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 <command>'
   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 <module>
       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'
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Daletxt commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
Daletxt commented on issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-591951312
 
 
   > **Thank you, but another problem arises**
   > 
   > (superset) [root@node04 superset]# flask fab create-admin
   > Username [admin]: admin
   > User first name [admin]: admin
   > User last name [user]: superset
   > Email [[admin@fab.org](mailto:admin@fab.org)]: [maning1025@163.com](mailto:maning1025@163.com)
   > Password:
   > Repeat for confirmation:
   > Usage: flask fab create-admin [OPTIONS]
   > 
   > 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.
   
   @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 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] craig-rueda commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
craig-rueda commented on issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-586814678
 
 
   Depending on whether or not you're running the latest release or `master`, `FLASK_APP` will need to be different:
   
   `master`: `FLASK_APP='superset.app:create_app()'` 
   `0.35.x`: `FLASK_APP='superset'` 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] peschu123 commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
peschu123 commented on issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-586594002
 
 
   [documentation](https://superset.incubator.apache.org/installation.html) says:
   
   Create an admin user (you will be prompted to set a username, first and last name before setting a password)
   ```
   $ export FLASK_APP=superset
   flask fab create-admin
   ```
   I think you just missed the export of "FLASK_APP"?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] nytai commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
nytai commented on issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-586411975
 
 
   @mapingsheng1025 `fabmanger` is deprecated, please use `flask fab create-admin` 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] mapingsheng1025 commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
mapingsheng1025 commented on issue #9143: fabmanager create-admin --app superset 
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-586542176
 
 
   **Thank you, but another problem arises**
   
   (superset) [root@node04 superset]# flask fab create-admin
   Username [admin]: admin
   User first name [admin]: admin
   User last name [user]: superset
   Email [admin@fab.org]: maning1025@163.com
   Password:
   Repeat for confirmation:
   Usage: flask fab create-admin [OPTIONS]
   
   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.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ericfonsi commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
ericfonsi commented on issue #9143:
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-721595344


   preks ~
   $ source activate py3env
   (py3env) preks ~
   $ flask fab create-admin
   Username [admin]: admin
   User first name [admin]: admin
   User last name [user]: admin
   Email [admin@fab.org]: admin@admin.admin
   Password: admin
   admin
   
   ![abcg](https://user-images.githubusercontent.com/61018536/98088861-fe509e00-1ea7-11eb-868d-1d28abaffc1c.PNG)
   
   
   I have installed apache superset in my virtual env. I ran the command 'superset db upgrade'
   And set the flask app using 'export FLASK_APP=superset'
   But when I try to create admin user, I'm not asked to repeat for confirmation, instead it waits for input and when I re-enter the password and hit enter, nothing happens. It again waits for input.
   
   How can I fix it?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #9143: fabmanager create-admin --app superset

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9143:
URL: https://github.com/apache/incubator-superset/issues/9143#issuecomment-620371009


   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 `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org