Problem Description
Today, try to install the latest superset (0.28.1) on python3.7.2, when creating the administrator user reported the following errors:
$ fabmanager create-admin --app superset
...
Was unable to import superset Error: cannot import name '_maybe_box_datetimelike' from 'pandas.core.common' (/home/kongxx/.pyenv/versions/3.7.2/envs/myenv-3.7.2/lib/python3.7/site-packages/pandas/core/[common.py](common.py))
problem causes
This is a result of pandas library version is too high, you need to install a lower version of pandas library.
Solution
# 查看当前 pandas 版本
$ pip list | grep pandas
pandas 0.24.2
# 安装低版本 pandas
$ pip install pandas==0.23.4
Then re-run "fabmanager create-admin --app superset" command to create an administrator user.
1, suggesting fabmanager create-admin --app superset of time
Was unable to import superset Error: cannot import name '_maybe_box_datetimelike'
Solution:
pip uninstall pandas
pip install pandas==0.23.4
Good chicken pit! ! !
2, in the superset db upgrade when an error
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 2568, in _join_determine_implicit_left_side
"Can't determine which FROM clause to join "
sqlalchemy.exc.InvalidRequestError: Can't determine which FROM clause to join from, there are multiple FROMS which can join to this entity. Try adding an explicit ON clause to help resolve the ambiguity.
Solution:
pip uninstall sqlalchemy
pip install sqlalchemy==1.2.18
Original link:
https://www.jianshu.com/p/d1d3946a426f
https://www.jianshu.com/p/b2eadeec0085