2016-10-16 9 views
1

はPythonでpygrametlパッケージと経験を持った人は、私は、エラーの下pygrametlドキュメントからpygrametl寸法の抽象化は

サンプルコードを理解するのに役立ちますエラー:

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 

答えて

0

私はこれがあなたの問題の原因であるかどうかわからないんだけど、あなたはキーを追加するべきではありませんが属性:

attributes: a sequence of the attribute names in the dimension table. Should not include the name of the primary key which is given in the key argument.

出典:http://chrthomsen.github.io/pygrametl/doc/api/tables.html(寸法クラスの引数を参照してください)