2

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

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

据我了解,我现在应该在运行 paste 时使用本地命令(如添加)。但是,当我现在运行 paste(在 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

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

4

1 回答 1

1

请使用升级后的说明:

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

无论您在哪里找到这些说明,请告诉我们,我们将尝试删除错误说明。

于 2012-09-03T21:52:49.967 回答