有python中pygrametl包经验的人可以帮我理解下面的错误吗
pygrametl 文档中的示例代码:
productDimension = Dimension(
name='product',
key='productid',
attributes=['name', 'category', 'price'],
lookupatts=['name'])
我写的代码:
artist_dim=Dimension(
name='Artist_dim',
key='row_id',
attributes=['row_id','Artist_name','Artist_type','Country','ETL_BATCH_ID'],
lookupatts=['Artist_name']
)
错误:
Traceback (most recent call last):
File "artist_petl.py", line 40, in <module>
attributes=['row_id','Artist_name','Artist_type','Country','ETL_BATCH_ID']
File "C:\Anaconda3\lib\site-packages\pygrametl\tables.py", line 189, in __init__
(self.quote(key), name))
File "C:\Anaconda3\lib\site-packages\pygrametl\__init__.py", line 663, in execute
self.__cursor.execute(stmt, arguments)
TypeError: expecting a dictionary, sequence or keyword args