在Windows上运行zopeskel后缺少本地命令

时间:2012-09-03 20:57:59

标签: windows plone paster zopeskel

我尝试在我新安装的plone 4.2上使用zopskel / paster创建一个原型。我已经调整了buildout.cfg(见下文),以便在bin文件夹中生成zopeskel.exe和paster.exe。

当我按照以下方式运行zopeskel时(在develop-eggs文件夹中): .. \ bin \ zopeskel.exe原型 我得到一个IOError(见下面的输出)

根据我的理解,我现在应该在运行paster时使用本地命令(如add)。但是,当我现在运行paster(在develop-eggs / nortek.test03中)文件夹时,没有命令。

zopeskel中是否存在错误/缺陷,或者我做错了什么?我该怎么办?

    Traceback (most recent call last):
  File "C:\Plone42\bin\zopeskel-script.py", line 16, in <module>
    zopeskel.zopeskel_script.run()
  File "c:\plone42\eggs\zopeskel-2.21.2-py2.6.egg\zopeskel\zopeskel_script.py", line 397, in run
    command.run( [ '-q', '-t', template_name ] + optslist )
  File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\command.py", line 238, in run
    result = self.command()
  File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\create_distro.py", line 170, in command
    egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
  File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\pluginlib.py", line 135, in egg_info_dir
    % ', '.join(all))
IOError: No egg-info directory found (looked in .\nortek.test03\.\nortek.test03.egg-info, .\nortek.test03\CHAN
GES.txt\nortek.test03.egg-info, .\nortek.test03\CONTRIBUTORS.txt\nortek.test03.egg-info, .\nortek.test03\docs\
nortek.test03.egg-info, .\nortek.test03\MANIFEST.in\nortek.test03.egg-info, .\nortek.test03\nortek\nortek.test
03.egg-info, .\nortek.test03\README.txt\nortek.test03.egg-info, .\nortek.test03\setup.cfg\nortek.test03.egg-in
fo, .\nortek.test03\setup.py\nortek.test03.egg-info)

除了以下内容之外,我的buildout.cfg与默认值相同:

parts =
    zeo
    instance
    run-instance
    run-zeo
    service
    service-zeo
    zopeskel

[zopeskel]
recipe = zc.recipe.egg
unzip = true
eggs =
    Paste
    PasteScript
    ZopeSkel

[编辑] 我试图按照提供的链接中的说明进行操作。但是出现了几个问题: * bin文件夹中没有生成粘贴脚本 *我仍然得到完全相同的IOError问题 *没有本地命令

我把我跑过的不同命令的输出放到这个链接上: http://pastie.org/4664202

所以请帮助我,因为我仍有同样的问题

1 个答案:

答案 0 :(得分:1)

请使用升级说明:

http://collective-docs.readthedocs.org/en/latest/getstarted/paste.html

无论您何时找到这些说明,请告诉我们,我们会尝试删除不良说明。