Superset初始化时报错
(env) root@ubuntu18:/opt/superset_dev# 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]: mid2958
User first name [admin]: mid2958
User last name [user]: mid2958
Email [admin@fab.org]: 472357039@qq.com
Password:
Repeat for confirmation:
Was unable to import superset Error: cannot import name '_maybe_box_datetimelike'
原因是pandas版本太低,安装低版本pandas即可解决
(env) root@ubuntu18:/opt/superset_dev# pip list | grep pandas
pandas 0.24.2
(env) root@ubuntu18:/opt/superset_dev# pip install pandas==0.23.4
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting pandas==0.23.4
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/e1/d8/feeb346d41f181e83fba45224ab14a8d8af019b48af742e047f3845d8cff/pandas-0.23.4-cp36-cp36m-manylinux1_x86_64.whl (8.9MB)
|████████████████████████████████| 8.9MB 1.6MB/s
Requirement already satisfied: numpy>=1.9.0 in ./env/lib/python3.6/site-packages (from pandas==0.23.4) (1.16.4)
Requirement already satisfied: pytz>=2011k in ./env/lib/python3.6/site-packages (from pandas==0.23.4) (2019.1)
Requirement already satisfied: python-dateutil>=2.5.0 in ./env/lib/python3.6/site-packages (from pandas==0.23.4) (2.8.0)
Requirement already satisfied: six>=1.5 in ./env/lib/python3.6/site-packages (from python-dateutil>=2.5.0->pandas==0.23.4) (1.12.0)
Installing collected packages: pandas
Found existing installation: pandas 0.24.2
Uninstalling pandas-0.24.2:
Successfully uninstalled pandas-0.24.2
Successfully installed pandas-0.23.4