Plone 4.3.4-导入错误:没有名为dexterity.localcommands.dexterity的模块

Plone 4.3.4-导入错误:没有名为dexterity.localcommands.dexterity的模块,plone,setuptools,dexterity,zopeskel,Plone,Setuptools,Dexterity,Zopeskel,在vanilla Plone 4.3.4站点(Ubuntu 14.04.1LTS上的统一安装程序)上,在使用zopeskel和paster锅炉板更新buildout.cfg并运行buildout之后,我在src文件夹中成功创建了一个灵巧包: $ cd src $ ../bin/zopeskel dexterity my.package 更新buildout.cfg(将my.package添加到eggs部分,将src/my.package添加到develope部分)并运行buildout后,

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

$ cd src  
$ ../bin/zopeskel dexterity my.package
更新buildout.cfg(将my.package添加到eggs部分,将src/my.package添加到develope部分)并运行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  
我收到以下警告消息:

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


如果您能提供任何解决此问题的建议,我们将不胜感激。

您是否已将新软件包添加到构建并运行构建?嗨,Steve,是的,绝对可以。我也可以安装包没有任何问题。同样,我使用以前的Plone版本开发了许多灵巧产品。几年前,我在奥什科什的一堂很棒的课上确实注意到了:)好的,这是一个新开发的bug。请在“我正在投票”中打开一个问题,以关闭这个问题,因为这个问题应该在bug追踪器中。
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