如何使用苹果提供的epfimporter.py导入epf数据

发布于 2024-12-09 04:58:27 字数 1439 浏览 0 评论 0原文

我尝试使用此链接 http://www.apple.com/itunes/附属机构/资源/文档/epfimporter.html ------------------------------------------------ *下面是我执行的脚本..*

C:\Documents and Settings\freakk>python D:\freakk\Downloads\EPF_Itunes\EPFImporter\E
PFimporter.py \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_
genre

------------------------ *但是我收到这些错误*

2011-10-12 18:24:00,529 [INFO]: Beginning import for the following directories:
    \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_genre
2011-10-12 18:24:00,529 [INFO]: Importing files in \D:\freakk\Downloads\EPF_Itunes
\EPFImporter\db\album_popularity_per_genre
Traceback (most recent call last):
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 452, in <
module>
    main()
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 435, in m
ain
    fieldDelim=fieldSep)
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 162, in d
oImport
    fileList = os.listdir(dirPath)
WindowsError: [Error 123] The filename, directory name, or volume label syntax i
s incorrect: 'C:\\D:\\freakk\\Downloads\\EPF_Itunes\\EPFImporter\\db\\album_popula
rity_per_genre/*.*'

请帮助我......

i tried using this link http://www.apple.com/itunes/affiliates/resources/documentation/epfimporter.html
-----------------------
*Below is the script i executed..*

C:\Documents and Settings\freakk>python D:\freakk\Downloads\EPF_Itunes\EPFImporter\E
PFimporter.py \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_
genre

-----------------------
*But i am getting these errors*

2011-10-12 18:24:00,529 [INFO]: Beginning import for the following directories:
    \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_genre
2011-10-12 18:24:00,529 [INFO]: Importing files in \D:\freakk\Downloads\EPF_Itunes
\EPFImporter\db\album_popularity_per_genre
Traceback (most recent call last):
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 452, in <
module>
    main()
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 435, in m
ain
    fieldDelim=fieldSep)
  File "D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py", line 162, in d
oImport
    fileList = os.listdir(dirPath)
WindowsError: [Error 123] The filename, directory name, or volume label syntax i
s incorrect: 'C:\\D:\\freakk\\Downloads\\EPF_Itunes\\EPFImporter\\db\\album_popula
rity_per_genre/*.*'

please help me....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

骄兵必败 2024-12-16 04:58:27

查看错误日志,它说您的语法不正确

C:\\D:\\freakk\\Downloads\\EPF_Itunes\\EPFImporter\\db\\album_popularity_per_genre/*.*

,并告诉我 D 目录如何位于 C 中?它没有找到到达那里的正确路径。
EPFImporter 的此代码基本上适用于 Mac OS,它假设您与 EPFImporter.py 位于同一目录中,并且在 Mac OS 中,所有内容都位于同一目录中(正如 mac 的设计那样)。

C:\Documents and Settings\freakk>python D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_genre

上面的命令将找不到您的 EPFImporter.py 或 album_popularity_per_genre。
将目录从 C 更改为 D 并转到 EPFImporter.py 的目录,然后尝试

.....EPFImporter>python EPFImporter.py db\album_popularity_per_genre

假设您位于 EPFImporter 的同一文件夹中,未经测试,但类似的内容可能适合您。希望这个答案能让您对此有所了解。

See the error log its saying you incorrect syntax

C:\\D:\\freakk\\Downloads\\EPF_Itunes\\EPFImporter\\db\\album_popularity_per_genre/*.*

and tell me how can D directory be in C? its not getting the correct path to reach there.
EPFImporter's this code is basically for Mac OS and it assumes that you are in same directory as of EPFImporter.py and in Mac OS everything is in same Directory (as mac is designed).

C:\Documents and Settings\freakk>python D:\freakk\Downloads\EPF_Itunes\EPFImporter\EPFimporter.py \D:\freakk\Downloads\EPF_Itunes\EPFImporter\db\album_popularity_per_genre

above command will not find either of your EPFImporter.py or album_popularity_per_genre.
change your directory to D from C and go to the directory of EPFImporter.py then try as

.....EPFImporter>python EPFImporter.py db\album_popularity_per_genre

assuming you are in same folder of EPFImporter, not tested but something like this may work for you. Hope this answer made you a bit clear on this.

我还不会笑 2024-12-16 04:58:27

已解决!

我试图仅导入部分数据而无需主表。
尝试导入扁平饲料...它有效。

代码:

对于平面馈送

C:\Documents and Settings\freakk>python c:\epf\epfimporter.py -fc:\epf\db\application-usa-20111012

注意:不要包含文件名(application-usa-20111012.txt)..限制直到仅包含文件夹名称(例如:application-usa-20111012)

Solved !

I was trying to import only partial data without main table.
Tried to import flat feed...it worked.

Code:

For Flat Feed

C:\Documents and Settings\freakk>python c:\epf\epfimporter.py -f c:\epf\db\application-usa-20111012

Note: Don't include file name(application-usa-20111012.txt)..restrict till folder name only (Eg:application-usa-20111012)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文