无法在Plone 4.3.1 Windows上安装开发人员工具

无法在Plone 4.3.1 Windows上安装开发人员工具,plone,zope,dexterity,plone-4.x,zopeskel,Plone,Zope,Dexterity,Plone 4.x,Zopeskel,我在Windows 7 SP1 64位上,使用安装程序Plone-4.3.1-win64.exe重新安装了Plone 4.3.1 普隆和佐普跑得很好。我还可以通过将包名附加到buildout.cfg来安装类似plone.app.relationfield的鸡蛋。但是,当我尝试使用以下工具安装开发人员工具时: bin\buildout -c develop.cfg 我得到以下输出: Unused options for buildout: 'buildout-user' 'need-sudo'.

我在Windows 7 SP1 64位上,使用安装程序Plone-4.3.1-win64.exe重新安装了Plone 4.3.1

普隆和佐普跑得很好。我还可以通过将包名附加到buildout.cfg来安装类似plone.app.relationfield的鸡蛋。但是,当我尝试使用以下工具安装开发人员工具时:

bin\buildout -c develop.cfg
我得到以下输出:

Unused options for buildout: 'buildout-user' 'need-sudo'.
Updating _mr.developer.
Updating instance.
Updating repozo.
Updating backup.
Updating zopepy.
Updating precompiler.
Compiling Python files.
SyntaxError: ('invalid syntax', ('c:\\plone43\\eggs\\restrictedpython-3.6.0-py2.
6.egg\\RestrictedPython\\tests\\before_and_after27.py', 30, 17, '    x = {y: y f
or y in whatever if y}\n'))

SyntaxError: ('invalid syntax', ('c:\\plone43\\eggs\\restrictedpython-3.6.0-py2.
6.egg\\RestrictedPython\\tests\\security_in_syntax27.py', 6, 13, '    {y: y for
_restricted_name in x}\n'))

Compiling locale files.
Error while compiling c:\plone43\eggs\python_gettext-1.2-py2.6.egg\pythongettext
\tests\test5.po
Error while compiling c:\plone43\eggs\python_gettext-1.2-py2.6.egg\pythongettext
\tests\test_escape.po
Updating run-instance.
Updating service.
Updating test.
Updating diazotools.
Installing zopeskel.
Getting distribution for 'zopeskel.diazotheme==1.1'.
warning: no previously-included files matching '*' found under directory 'docs\_
build\_sources'
error: Setup script exited with error: Setup script exited with error: Setup scr
ipt exited with error: SandboxViolation: open('build\\lib\\paste\\evalexception\
\media\\MochiKit.packed.js', 'wb') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
An error occurred when trying to install zopeskel.diazotheme 1.1. Look above thi
s message for any errors that were output by easy_install.
While:
  Installing zopeskel.
  Getting distribution for 'zopeskel.diazotheme==1.1'.
Error: Couldn't install: zopeskel.diazotheme 1.1
*************** PICKED VERSIONS ****************
[versions]

*************** /PICKED VERSIONS ***************
我主要尝试安装zopeskel和zopeskel.dextrity模板,如果我注释掉zopeskel.diazotheme,它们也会以同样的方式失败。事实上,如果我把zopeskel.diazotheme和zopeskel.dextrity注释掉,我可以安装所有东西。上述受限Python语法错误仍然存在,但似乎不会影响任何内容

这些都是现成的配置。我一直在搜索和尝试我能想到的一切,包括重新安装。我已经和普隆一起工作多年了,但我对这件事已经没有想法了


非常感谢您的帮助。

我终于解决了这个问题,但我仍然不知道确切的问题是什么。这与轻松安装和目录访问有关-可能是临时目录,也可能是因为在构建过程中发生了某种竞争条件

解决方案的总结是在stockdevelope.cfg文件中安装除zopeskel.diazothemezopeskel.dextrity之外的所有内容。在试图下载的DocFinderTabbuildout的发行版中也有一个bug。这是一个空的zip文件

问题中提到的Windows 7 64位配置以及Windows XP SP3 32位计算机都采用了这种方法。在这两种情况下,根据2014年5月20日Plone网站的最新建议,使用了Plone 4.3.1 windows安装程序。最新的Plone 4.3.3没有windows安装程序,因此路径是使用4.3.1 isntaller,并在安装后升级Plone。在安装这些软件包之前,我没有升级。我允许Linux和/或OSX从地球上根除Windows,但它仍然存在

以下是步骤:

  • 打开Windows服务管理器并停止Plone 4.3.1服务
  • 将Plone 4.3.1服务设置为手动启动,这样在任何时候都不会有有趣的事情发生
  • 在可以处理unix行结尾的文本编辑器中打开C:\Plone43\buildout.cfg
  • 找到第80行附近的eggs变量,并将plone.app.relationfield添加到列表中:

    蛋= 内容管理系统 枕头 Products.PloneHotfix20130618 plone.app.relationfield

  • 保存buildout.cfg

  • c:\Plone43
    run中的命令提示符:

    bin\buildout-n

  • 忽略任何错误和警告
  • 从PyPI将zip包下载到C:\Plone43\downloads\dist
  • 在文本编辑器(不是记事本)中,打开C:\Plone43\developer.cfg
  • 在第144行附近找到[zopeskel]零件
  • 注释掉zopeskel.重氮主题和zopeskel.灵巧性:
  • [佐佩斯克尔] #安装粘贴器和Zopeskel 配方=zc.recipe.egg 蛋= 佐佩斯克尔 粘贴 粘贴部署 手写体 #重氮主题 #zopeskel.灵巧 热情释放器 ${buildout:eggs}
  • 保存develop.cfg
  • 从C:\Plone43中的命令提示符运行:

    bin\buildout-c develop.cfg

  • 忽略众多的错误和警告——将会有流血事件发生
  • 从PyPI下载zip文件
  • 在文本编辑器中打开buildout.cfg
  • 在第203行附近找到[version]部分
  • 将zopeskel.Dextrity的版本从1.5.2更改为1.5.4.1
  • 保存buildout.cfg
  • 解压zopeskel.dexterity包,使所有文件都位于C:\Plone43\downloads\dist\zopeskel.dexterity-1.5.4.1
  • 确保您的zip工具没有创建一个名为zopeskel.dexterity-1.5.4.1的子目录。如果是这样,请将该目录剪切并粘贴到一个级别,然后覆盖另一个级别
  • 从PyPI下载zip包到dist目录
  • 解压zopeskel.diazotheme的方法与解压zopeskel.dextrity的方法相同
  • 在c:\Plone43的命令提示符中,运行以下命令:

    bin\buildout-v setup“C:\Plone43\downloads\dist\zopeskel.dexterity-1.5.4.1\setup.py”安装

  • 下次运行:

    bin\buildout-v setup“C:\Plone43\downloads\dist\zopeskel.diazotheme-1.1\setup.py”安装

  • 在Windows服务管理器中,将Plone 4.3.1服务重置为自动,然后启动它

  • 现在一切都应该正常了。

    虽然您不知道问题出在哪里,但我认为您可以将自己的答案标记为已接受。我按照说明进行了操作,但在尝试运行zopeskel之后,我遇到了错误“from zopeskel.basic_namespace import BasicNamespace”。尽管没有安装“系统范围”的zopeskel,但我还是通过从下载/dist和eggs中删除zopeskel,然后重新运行buildout来解决问题。 [zopeskel] # installs paster and Zopeskel recipe = zc.recipe.egg eggs = ZopeSkel Paste PasteDeploy PasteScript # zopeskel.diazotheme # zopeskel.dexterity zest.releaser ${buildout:eggs}