Plone 4.3.4 - ImportError:没有名为dexterity.localcommands.dexterity的模块

时间:2015-02-03 18:18:04

标签: plone setuptools dexterity zopeskel

在一个普通的Plone 4.3.4站点(Ubuntu 14.04.1LTS上的统一安装程序)上,在使用zopeskel和paster样板文件更新buildout.cfg并运行buildout之后,我在src文件夹中成功创建了一个dexterity包:

$ cd src  
$ ../bin/zopeskel dexterity my.package

更新buildout.cfg(将my.package添加到eggs部分并将src / my.package添加到develop部分)并运行buildout后,我尝试将内容添加到我的新包中,就像我已经多次这样做了Plone 4.3.3及更早版本:

$ cd my.package  
$ ../../bin/paster addcontent dexterity_content

这会导致以下错误消息:

Traceback (most recent call last):  

 File "../../bin/paster", line 260, in <module>
   sys.exit(paste.script.command.run())  
 File "/home/Plone434_site/buildout-cache/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 104, in run
   invoke(command, command_name, options, args[1:])
 File "/home/Plone434_site/buildout-cache/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 143, in invoke exit_code = runner.run(args)
 File "/home/Plone434_site/buildout-cache/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run
   result = self.command()
 File "/home/Plone434_site/buildout-cache/eggs/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 70, in command
   self._extend_templates(templates, args[0])
 File "/home/Plone434_site/buildout-cache/eggs/ZopeSkel-2.21.2-py2.7.egg/zopeskel/localcommands/__init__.py", line 204, in _extend_templates tmpl = entry.load()(entry.name)
 File "/home/Plone434_site/buildout-cache/eggs/setuptools-7.0-py2.7.egg/pkg_resources.py", line 2184, in load ['__name__'])

ImportError: No module named dexterity.localcommands.dexterity  

在Plone 4.3.3网站上做同样的事情就可以了。

当我运行以下内容时:

$ ../../bin/paster addcontent -l

我收到以下警告信息:

Warning: could not load entry point dexterity_behavior (ImportError: No module named dexterity.localcommands.dexterity)  
Warning: could not load entry point dexterity_content (ImportError: No module named dexterity.localcommands.dexterity)
Available templates:
  No template

我想知道这是否与使用setuptools 7.0的Plone 4.3.4有关,而之前的版本使用0.7.2

非常感谢任何解决此问题的建议。

0 个答案:

没有答案