2013-08-02 14 views
3
[email protected]:~/brundel/src$ ../bin/zopeskel plone_basic bdr.theme 

plone_basic: A project for Plone products 

This creates a package for a basic Plone add-on project, with a 
single namespace (like Products.PloneFormGen). To create a package 
with a nested namespace use the plone_nested_addon template. If 
you are trying to create a Plone *site* you want to use one of the 
installers from plone.org or the ploneX_buildout (where x is the 
major version of Plone you wish to use) 

To create a Plone project with a name like 'plone.app.myproject' 
(2 dots, a 'nested namespace'), use the 'plone_app' template. 


If at any point, you need additional help for a question, you can enter 
'?' and press RETURN. 

Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']: easy 
Version (Version number for project) ['1.0']: 1.0 
Description (One-line description of the project) ['']: 
Register Profile (Should this package register a GS Profile) [False]: yes 
Creating directory ./bdr.theme 
Replace 1019 bytes with 1123 bytes (0/43 lines changed; 3 lines added) 
Replace 0 bytes with 119 bytes (0/0 lines changed; 5 lines added) 
Traceback (most recent call last): 
File "../bin/zopeskel", line 21, in <module> 
sys.exit(templer.core.zopeskel_script.run()) 
File "/home/oomsys/brundel/eggs/templer.core-1.0b3-core/zopeskel_script.py", line 398, in run 
command.run([ '-q', '-t', template_name ] + optslist) 
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/command.py", line 238, in run 
result = self.command() 
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/create_distro.py", line 170, in command 
egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name) 
File "/home/oomsys/brundel/eggs/PasteScript-1.7.5-py2.7.egg/paste/script/pluginlib.py", line 135, in egg_info_dir 
% ', '.join(all)) 
IOError: No egg-info directory found (looked in ./bdr.theme/./bdr.theme.egg-info,  ./bdr.theme/CONTRIBUTORS.txt/bdr.theme.egg-info, ./bdr.theme/src/bdr.theme.egg-info, ./bdr.theme/setup.py/bdr.theme.egg-info, ./bdr.theme/README.txt/bdr.theme.egg-info, ./bdr.theme/docs/bdr.theme.egg-info, ./bdr.theme/CHANGES.txt/bdr.theme.egg-info, ./bdr.theme/buildout.cfg/bdr.theme.egg-info, ./bdr.theme/bootstrap.py/bdr.theme.egg-info) 

bdr.theme是我的新產品時,我試圖創建使用此命令../bin/zopeskel plone_basic BDR新產品。主題我得到的ioerror(不含雞蛋info目錄)。所以任何人能回答這個問題同時創造新的產品,我得到了錯誤的plone4.3「未找到卵子信息目錄」

回答

4

嘗試升級到最新的ZopeSkel。我剛剛創建了一個乾淨的virtualenv用的ZopeSkel的最新版本:3.0b3

$ ../bin/zopeskel plone_basic bdr.theme 

plone_basic: A package for Plone add-ons 

This template creates a package for a basic Plone add-on project with 
a single namespace (like Products.PloneFormGen). 

To create a Plone project with a name like 'collective.geo.bundle' 
(2 dots, a 'nested namespace'), use the 'plone_nested' template. 

This template supports local commands. These commands allow you to 
add Plone features to your new package. 

If you are trying to create a Plone *site* then the best place to 
start is with one of the Plone installers. If you want to build 
your own Plone buildout, use one of the plone'N'_buildout templates 


If at any point, you need additional help for a question, you can enter 
'?' and press RETURN. 

Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']: easy 
Version (Version number for project) ['1.0']: 1.0 
Description (One-line description of the project) ['']: 
Register Profile (Should this package register a GS Profile) [False]: yes 
Robot Tests (Should the default robot test be included) [False]: 
Creating directory ./bdr.theme 
Replace 1019 bytes with 1450 bytes (2/43 lines changed; 10 lines added) 
Replace 42 bytes with 119 bytes (1/1 lines changed; 4 lines added) 
------------------------------------------------------------------------------ 
The project you just created has local commands. These can be used from within 
the product. 

usage: paster COMMAND 

Commands: 
    add Allows the addition of further templates to an existing package 

For more information: paster help COMMAND 
------------------------------------------------------------------------------ 

************************************************************************** 
** Your new package supports local commands. To access them, change 
** directories into the 'src' directory inside your new package. 
** From there, you will be able to run the command `paster add 
** --list` to see the local commands available for this package. 
************************************************************************** 

所以它爲我工作。但是我也會遇到一個關於機器人測試的問題,所以我猜測你有一個老版本。嘗試更新。

+0

遇到這個問題後,我和更新沒有在我的情況有所幫助。我嘗試在virtualenv https://plone.org/products/zopeskel/#virtualenv-installation中安裝zopeskel,它工作。 – Dan

相關問題