编程语言
首页 > 编程语言> > python-在创建新产品时,在plone4.3上出现错误“找不到鸡蛋信息目录”

python-在创建新产品时,在plone4.3上出现错误“找不到鸡蛋信息目录”

作者:互联网

oomsys@oomsysmob-7:~/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/zopeskelplone_basic bdr.theme我得到了IOERROR(无鸡蛋信息目录).所以任何人都可以回答这个问题

解决方法:

尝试更新到最新的ZopeSkel.我刚刚用最新版本的ZopeSkel创建了一个干净的virtualenv: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.
**************************************************************************

所以对我有用.但是我也会遇到一个关于您没有获得的机器人测试的问题,所以我猜您有一个较旧的版本.尝试更新.

标签:python,plone
来源: https://codeday.me/bug/20191030/1969027.html