Ubuntu 22 에 Superset 최신 버전을 설치하는 중에 다음과 같은 오류가 발생하였습니다.
원인은 최신버전에 설치된 객체를 직렬화, 역직렬화할 때 사용하는 marshmarrow가 문제가 되어서 발생하였습니다. 이 컴포넌트를 4.x 버전이 아니라 3.x 버전으로 설치하면 오류가 해결됩니다.
# 수정 버전 설치
pip3 install marshmallow==3.26.1

File "/opt/superset/lib/python3.10/site-packages/superset/initialization/__init__.py", line 130, in init_views
from superset.cachekeys.api import CacheRestApi
File "/opt/superset/lib/python3.10/site-packages/superset/cachekeys/api.py", line 27, in <module>
from superset.cachekeys.schemas import CacheInvalidationRequestSchema
File "/opt/superset/lib/python3.10/site-packages/superset/cachekeys/schemas.py", line 20, in <module>
from superset.charts.schemas import (
File "/opt/superset/lib/python3.10/site-packages/superset/charts/schemas.py", line 427, in <module>
class ChartDataAggregateOptionsSchema(ChartDataPostProcessingOperationOptionsSchema):
File "/opt/superset/lib/python3.10/site-packages/superset/charts/schemas.py", line 433, in ChartDataAggregateOptionsSchema
fields.List(
File "/opt/superset/lib/python3.10/site-packages/marshmallow/fields.py", line 709, in __init__
super().__init__(**kwargs)
TypeError: Field.__init__() got an unexpected keyword argument 'minLength'
https://github.com/apache/superset/issues/33162
Make Superset compatible with `marshmallow>=4.0.0` · Issue #33162 · apache/superset
Bug description On a fresh install of superset, since marshmallow 4.0.0 released https://pypi.org/project/marshmallow/, superset fails to init due to an error validating parameters It is possible t...
github.com
반응형