EPFImporter 无效文字
EPFImporter invalid literal
我正在尝试从 EPF 导入应用程序的完整提要。我只从苹果提供的link下载了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”的来源。它来自应用程序文件吗?我需要指定记录和字段分隔符吗?还是默认值就足够了?
我不知道为什么,但删除 -f 解决了问题。正确的命令应该是:
./EPFImporter.py /mnt/c/Users/vic4ever/Downloads/application/itunes20170913
我正在尝试从 EPF 导入应用程序的完整提要。我只从苹果提供的link下载了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”的来源。它来自应用程序文件吗?我需要指定记录和字段分隔符吗?还是默认值就足够了?
我不知道为什么,但删除 -f 解决了问题。正确的命令应该是:
./EPFImporter.py /mnt/c/Users/vic4ever/Downloads/application/itunes20170913