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

标签 windows plone paster zopeskel

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

当我按如下方式运行 zopeskel 时(在 develop-eggs 文件夹中): ..\bin\zopeskel.exe 原型(prototype) 我得到一个 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

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

最佳答案

请使用升级后的指令:

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

无论您在哪里找到这些说明,请告诉我们,我们会尽力删除错误的说明。

关于windows - 在 Windows 上运行 zopeskel 后缺少本地命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12253942/

相关文章:

java - 为什么在 Dos 窗口中运行 Java 会尝试运行包含在 exe 中的应用程序

css - Plone 发送一个指向已缓存但为空的 ploneCustom.css 的链接

python - 使用 Nginx 反向代理部署 Pylons?

themes - Plone 4.2 - 如何更改 Diazo 主题中的 Logo ?

plone - 运行 paster 后,我的产品中有几个鸡蛋

python - 在 Grok - Zope - PasteScript 环境中启用 gzip 压缩

c++ - 将窗口设置为始终在 Windows 7 上的桌面上

windows - 使用 Docker 容器连接拒绝本地主机 (Windows)

windows - Ansible win_scheduled_task 如何立即开始一个任务

javascript - 如何确保在浏览我的 plone 站点时始终启用浏览器中的 javascript