我正在尝试从EPF导入应用程序完整Feed。我只从apple提供的链接下载了application.tbz。这是我用来导入应用程序文件的命令:
./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'来自哪里。它来自应用程序文件吗?我是否需要指定记录和字段分隔符?或者是默认值是否足够?
答案 0 :(得分:0)
我不知道为什么但是删除-f可以解决问题。正确的命令应该是:
./EPFImporter.py /mnt/c/Users/vic4ever/Downloads/application/itunes20170913