karen-pal opened a new issue #9568: dependency issue makes "flask fab 
create-admin" command fail
URL: https://github.com/apache/incubator-superset/issues/9568
 
 
   ### Problem
   In a fresh virtualenv, and fresh installation of superset, while following 
the superset installation and initialization steps in the official 
documentation, on the step for creating an admin user, we get the error
   
   ``` ImportError: cannot import name 'NamedAgg'```
   
   while we expect the admin creation to be successful.
   
   After looking in the dependencies for superset, the pandas dependency listed 
is 
   `required: >=0.24.2,<0.25.0` while `NamedAgg` is only available for` pandas 
>=0.25` [link to official 
documentation](https://pandas.pydata.org/pandas-docs/version/0.25.3/user_guide/groupby.html#groupby-aggregate-named)
   
   #### Possible fix
   After installing `pandas==0.25` i was able to create the admin successfully 
using the `flask fab create-admin` command.
   
   #### How to reproduce the bug
   
   1. In a fresh venv + fresh install of superset
   2. follow the official documentation installation steps
   3. get to the admin creation step 
   4. See error
   
   ### Environment
   
   - superset version: 0.35.2
   - python version: 3.6.9
   - node.js version: v13.11.0
   - npm version: 6.13.7
   - OS: ubuntu 18.04
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [ x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ x] I have reproduced the issue with at least the latest released version 
of superset.
   - [ x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to