0
我試圖從EPF導入應用程序的完整源。我只從蘋果提供的鏈接下載了application.tbz。這是命令我使用導入的應用程序文件:EPFImporter無效文字
./EPFImporter.py -f /mnt/c/Users/vic4ever/Downloads/application/itunes20170913
這是我所得到的,當我跑上面的命令
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
我不知道在哪裏文字「2074265 \ X02」來自。它來自應用程序文件嗎?我是否需要指定記錄和字段分隔符?或者缺省值是否足夠?