I want to discuss this here before I file a bug. I'm running ZopeSkel inside of a buildout, and the archetype template works, but fails near the end and local commands (addcontent) don't seem to be registered.

Here's how I set it up in my buildout:

http://lionfacelemonface.wordpress.com/2010/03/10/adding-zopeskel-to-a-buildout/

Here's a transcript of what I did and the error I got

j...@ploneserver:~/buildout.blitzen.management.review$ bin/paster create -t archetype Products.viewtest
Selected and implied templates:
ZopeSkel#basic_namespace A basic Python project with a namespace package
  ZopeSkel#plone            A project for Plone products
ZopeSkel#archetype A Plone project that uses Archetypes content types

Variables:
  egg:      Products.viewtest
  package:  productsviewtest
  project:  Products.viewtest
Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']:
Project Title (Title of the project) ['Example Name']: Example View Code
Version (Version number for project) ['1.0']:
Description (One-line description of the project) ['']:
Creating template basic_namespace
Creating directory ./Products.viewtest
  Recursing into +namespace_package+
    Creating ./Products.viewtest/Products/
    Recursing into +package+
      Creating ./Products.viewtest/Products/viewtest/
Copying __init__.py_tmpl to ./Products.viewtest/Products/ viewtest/__init__.py Copying __init__.py_tmpl to ./Products.viewtest/Products/ __init__.py
  Copying README.txt_tmpl to ./Products.viewtest/README.txt
  Recursing into docs
    Creating ./Products.viewtest/docs/
    Copying HISTORY.txt_tmpl to ./Products.viewtest/docs/HISTORY.txt
  Copying setup.py_tmpl to ./Products.viewtest/setup.py
Creating template plone
  Recursing into +namespace_package+
    Recursing into +package+
Replace 0 bytes with 85 bytes (0/0 lines changed; 2 lines added)
Copying __init__.py_tmpl to ./Products.viewtest/Products/ viewtest/__init__.py Copying configure.zcml_tmpl to ./Products.viewtest/Products/ viewtest/configure.zcml Copying tests.py_tmpl to ./Products.viewtest/Products/viewtest/ tests.py
  Recursing into docs
    Copying INSTALL.txt_tmpl to ./Products.viewtest/docs/INSTALL.txt
    Copying LICENSE.GPL to ./Products.viewtest/docs/LICENSE.GPL
    Copying LICENSE.txt_tmpl to ./Products.viewtest/docs/LICENSE.txt
Replace 884 bytes with 1048 bytes (1/31 lines changed; 7 lines added)
  Copying setup.py_tmpl to ./Products.viewtest/setup.py
Creating template archetype
  Recursing into +namespace_package+
    Recursing into +package+
Copying README.txt_tmpl to ./Products.viewtest/Products/ viewtest/README.txt
Replace 85 bytes with 2075 bytes (1/2 lines changed; 48 lines added)
Copying __init__.py_tmpl to ./Products.viewtest/Products/ viewtest/__init__.py
      Recursing into browser
        Creating ./Products.viewtest/Products/viewtest/browser/
Copying __init__.py to ./Products.viewtest/Products/viewtest/ browser/__init__.py Copying __init__.pyo to ./Products.viewtest/Products/viewtest/ browser/__init__.pyo Copying configure.zcml_tmpl to ./Products.viewtest/Products/ viewtest/browser/configure.zcml Copying config.py_tmpl to ./Products.viewtest/Products/viewtest/ config.py
Replace 257 bytes with 889 bytes (0/9 lines changed; 18 lines added)
Copying configure.zcml_tmpl to ./Products.viewtest/Products/ viewtest/configure.zcml
      Recursing into content
        Creating ./Products.viewtest/Products/viewtest/content/
Copying __init__.py to ./Products.viewtest/Products/viewtest/ content/__init__.py Copying __init__.pyo to ./Products.viewtest/Products/viewtest/ content/__init__.pyo Copying configure.zcml_tmpl to ./Products.viewtest/Products/ viewtest/content/configure.zcml
      Recursing into interfaces
        Creating ./Products.viewtest/Products/viewtest/interfaces/
Copying __init__.py to ./Products.viewtest/Products/viewtest/ interfaces/__init__.py Copying __init__.pyo to ./Products.viewtest/Products/viewtest/ interfaces/__init__.pyo
      Recursing into portlets
        Creating ./Products.viewtest/Products/viewtest/portlets/
Copying __init__.py to ./Products.viewtest/Products/viewtest/ portlets/__init__.py Copying __init__.pyo to ./Products.viewtest/Products/viewtest/ portlets/__init__.pyo Copying configure.zcml_tmpl to ./Products.viewtest/Products/ viewtest/portlets/configure.zcml
      Recursing into profiles
        Creating ./Products.viewtest/Products/viewtest/profiles/
        Recursing into default
Creating ./Products.viewtest/Products/viewtest/profiles/ default/ Copying factorytool.xml to ./Products.viewtest/Products/ viewtest/profiles/default/factorytool.xml Copying metadata.xml_tmpl to ./Products.viewtest/Products/ viewtest/profiles/default/metadata.xml Copying portlets.xml to ./Products.viewtest/Products/ viewtest/profiles/default/portlets.xml Copying types.xml to ./Products.viewtest/Products/viewtest/ profiles/default/types.xml
      Recursing into tests
        Creating ./Products.viewtest/Products/viewtest/tests/
Copying __init__.py to ./Products.viewtest/Products/viewtest/ tests/__init__.py Copying __init__.pyo to ./Products.viewtest/Products/viewtest/ tests/__init__.pyo Copying base.py_tmpl to ./Products.viewtest/Products/viewtest/ tests/base.py Copying test_doctest.py_tmpl to ./Products.viewtest/Products/ viewtest/tests/test_doctest.py
  Copying CHANGES.txt_tmpl to ./Products.viewtest/CHANGES.txt
  Copying CONTRIBUTORS.txt_tmpl to ./Products.viewtest/CONTRIBUTORS.txt
  Copying MANIFEST.in_tmpl to ./Products.viewtest/MANIFEST.in
Replace 28 bytes with 371 bytes (2/4 lines changed; 13 lines added)
  Copying README.txt_tmpl to ./Products.viewtest/README.txt
Replace 1048 bytes with 1831 bytes (12/38 lines changed; 32 lines added)
  Copying setup.py_tmpl to ./Products.viewtest/setup.py
------------------------------------------------------------------------------
The project you just created has local commands. These can be used from within
the product.

usage: paster COMMAND

Commands:
  addcontent  Adds plone content types to your project

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

**************************************************************************
**   There is a local command to add individual Archetype content
**  types and to add fields to those content types. See the
**  instructions above on how to use this command.
**************************************************************************

Running /usr/local/bin/python2.4 setup.py egg_info
Traceback (most recent call last):
  File "bin/paster", line 16, in ?
    paste.script.command.run()
File "/home/jj/buildout.blitzen.management.review/eggs/ PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
File "/home/jj/buildout.blitzen.management.review/eggs/ PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
File "/home/jj/buildout.blitzen.management.review/eggs/ PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 218, in run
    result = self.command()
File "/home/jj/buildout.blitzen.management.review/eggs/ PasteScript-1.7.3-py2.4.egg/paste/script/create_distro.py", line 170, in command
    egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
File "/home/jj/buildout.blitzen.management.review/eggs/ PasteScript-1.7.3-py2.4.egg/paste/script/pluginlib.py", line 133, in egg_info_dir
    raise IOError("No egg-info directory found (looked in %s)"
IOError: No egg-info directory found (looked in ./Products.viewtest/./ Products.viewtest.egg-info, ./Products.viewtest/MANIFEST.in/ Products.viewtest.egg-info, ./Products.viewtest/CHANGES.txt/ Products.viewtest.egg-info, ./Products.viewtest/setup.py/ Products.viewtest.egg-info, ./Products.viewtest/CONTRIBUTORS.txt/ Products.viewtest.egg-info, ./Products.viewtest/Products/ Products.viewtest.egg-info, ./Products.viewtest/README.txt/ Products.viewtest.egg-info, ./Products.viewtest/setup.cfg/ Products.viewtest.egg-info, ./Products.viewtest/docs/ Products.viewtest.egg-info)

I'll try outside of a buildout and see if I get the same result.

This is ZopeSkel 2.15

Thanks,
JJ

_______________________________________________
ZopeSkel mailing list
ZopeSkel@lists.plone.org
http://lists.plone.org/mailman/listinfo/zopeskel

Reply via email to