2017-09-23 2 views
0

EPFからアプリケーションのフルフィードをインポートしようとしています。 appleから提供されたリンクからapplication.tbzをダウンロードしただけです。このコマンドは、私がアプリケーションファイルをインポートするために使用される:これは私がEPFImporterが無効です。

2017-09-24 00:58:51,867 [INFO]: Beginning import for the following directories: 
    /mnt/c/Users/vic4ever/Downloads/application/itunes20170913 
2017-09-24 00:58:51,867 [INFO]: Importing files in /mnt/c/Users/vic4ever/Downloads/application/itunes20170913 
2017-09-24 00:58:51,869 [INFO]: Starting import of /mnt/c/Users/vic4ever/Downloads/application/itunes20170913... 
2017-09-24 00:58:51,870 [ERROR]: Unable to create EPFIngester for application 
2017-09-24 00:58:51,870 [ERROR]: invalid literal for int() with base 10: '2074265\x02' 
Traceback (most recent call last): 
    File "./EPFImporter.py", line 211, in doImport 
    fieldDelim=fieldDelim) 
    File "/mnt/d/Study/Semester2/icongenerator/EPF_Importer/EPFIngester.py", line 86, in __init__ 
    self.parser = EPFParser.Parser(filePath, recordDelim=recordDelim, fieldDelim=fieldDelim) 
    File "/mnt/d/Study/Semester2/icongenerator/EPF_Importer/EPFParser.py", line 97, in __init__ 
    self.recordsExpected = int(numStr) 
ValueError: invalid literal for int() with base 10: '2074265\x02' 
2017-09-24 00:58:51,876 [INFO]: Import of itunes20170913 completed at: 17-09-24 00:58:51 
2017-09-24 00:58:51,876 [INFO]: Total import time for itunes20170913: 0:00:00.00 
2017-09-24 00:58:51,876 [WARNING]: The following files encountered errors and were not imported: 
application 
2017-09-24 00:58:51,876 [WARNING]: The following files encountered errors and were not imported: 
     itunes20170913/['application'] 
2017-09-24 00:58:51,876 [INFO]: Total import time for all directories: 0:00:00.00 

私にはわからない、上記のコマンドを実行したときに、私が得るものです

./EPFImporter.py -f /mnt/c/Users/vic4ever/Downloads/application/itunes20170913 

ところ「2074265 \ X02」リテラルから来た。それはアプリケーションファイルからですか?レコードとフィールドの区切り文字を指定する必要はありますか?または、デフォルト値で十分でしょうか?

答えて

0

なぜわかりませんが、-fを削除すると問題が解決します。正しいコマンドは次のとおりです:

./EPFImporter.py /mnt/c/Users/vic4ever/Downloads/application/itunes20170913