buildout.cfg within a package

10 Messages Forum Options Options
Embed this topic
Permalink
Maurits van Rees-3
buildout.cfg within a package
Reply Threaded More
Print post
Permalink
I have a package Products.feedfeeder here:
https://svn.plone.org/svn/collective/feedfeeder/trunk

I just added a bootstrap.py and buildout.cfg there to see if that is
handy; so right next to the setup.py.  It is a standard plone 3
buildout, with these changes:

========================
eggs =
    elementtree
    Products.feedfeeder

# Products.feedfeeder is developed in the current directory:
develop = .
========================

A "bin/instance fg" works fine.  A "bin/instance debug" on the other
hand gives an error:

========================================================================
2008-08-05 00:01:32 ERROR Application Couldn't install Five
Traceback (most recent call last):
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
    initmethod(context)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/__init__.py", line 28, in initialize
    zcml.load_site()
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/zcml.py", line 53, in load_site
    _context = xmlconfig.file(file)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 579, in file
    include(context, name, package)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
    processxmlfile(f, context)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
    self.context.end()
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
    self.stack.pop().finish()
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
    actions = self.handler(context, **args)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py", line 78, in loadProducts
    handleBrokenProduct(product)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py", line 76, in loadProducts
    xmlconfig.include(_context, zcml, package=product)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 508, in include
    f = openInOrPlain(path)
  File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 419, in openInOrPlain
    fp = open(filename)
ZopeXMLConfigurationError: File "/home/maurits/svn/feedfeeder/parts/instance/etc/site.zcml", line 15.2-15.23
    IOError: [Errno 2] No such file or directory: '/home/maurits/svn/feedfeeder/Products/feedfeeder/Products/feedfeeder/configure.zcml'
========================================================================

The double mention of 'Products/feedfeeder' in the path of that last
line is strange of course.

Why would a bin/instance fg work and a bin/instance debug fail?

When I create a buildout.cfg in a different directory and point to
the checkout of Products.feedfeeder like this, both cases work fine:
========================
eggs =
    elementtree
    Products.feedfeeder

# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
develop = /home/maurits/svn/feedfeeder
========================

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Rob Miller
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
Maurits van Rees wrote:

> I have a package Products.feedfeeder here:
> https://svn.plone.org/svn/collective/feedfeeder/trunk
>
> I just added a bootstrap.py and buildout.cfg there to see if that is
> handy; so right next to the setup.py.  It is a standard plone 3
> buildout, with these changes:
>
> ========================
> eggs =
>     elementtree
>     Products.feedfeeder
>
> # Products.feedfeeder is developed in the current directory:
> develop = .
> ========================
>
> A "bin/instance fg" works fine.  A "bin/instance debug" on the other
> hand gives an error:
>
> ========================================================================
> 2008-08-05 00:01:32 ERROR Application Couldn't install Five
> Traceback (most recent call last):
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/OFS/Application.py", line 786, in install_product
>     initmethod(context)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/__init__.py", line 28, in initialize
>     zcml.load_site()
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/zcml.py", line 53, in load_site
>     _context = xmlconfig.file(file)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 579, in file
>     include(context, name, package)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 515, in include
>     processxmlfile(f, context)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 349, in endElementNS
>     self.context.end()
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py", line 544, in end
>     self.stack.pop().finish()
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py", line 692, in finish
>     actions = self.handler(context, **args)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py", line 78, in loadProducts
>     handleBrokenProduct(product)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py", line 76, in loadProducts
>     xmlconfig.include(_context, zcml, package=product)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 508, in include
>     f = openInOrPlain(path)
>   File "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py", line 419, in openInOrPlain
>     fp = open(filename)
> ZopeXMLConfigurationError: File "/home/maurits/svn/feedfeeder/parts/instance/etc/site.zcml", line 15.2-15.23
>     IOError: [Errno 2] No such file or directory: '/home/maurits/svn/feedfeeder/Products/feedfeeder/Products/feedfeeder/configure.zcml'
> ========================================================================
>
> The double mention of 'Products/feedfeeder' in the path of that last
> line is strange of course.
>
> Why would a bin/instance fg work and a bin/instance debug fail?

my guess is that the way that the paths are constructed vary between the two,
and there's a bug in the 'debug' implementation.

i've seen something different but eerily similar in another situation.  i
commonly have zope instances running in a directory named "zope" inside a
virtualenv.  if i run './zope/bin/zopectl test -sProducts.SomeProduct' then it
doesn't work, i see error messages with duplicated paths, similar to what
you've seen.  it works, however, if i 'cd zope' first, and simply call
'./bin/zopectl tests -sProducts.SomeProduct'

i just tried it with your buildout, and sure enough it works if i cd into the
bin directory and run './instance debug'.

-r


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Alexander Limi
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
On Mon, 04 Aug 2008 18:44:07 -0700, Rob Miller  
<ra@...> wrote:

> i've seen something different but eerily similar in another situation.  
> i commonly have zope instances running in a directory named "zope"  
> inside a virtualenv.  if i run './zope/bin/zopectl test  
> -sProducts.SomeProduct' then it doesn't work, i see error messages with  
> duplicated paths, similar to what you've seen.  it works, however, if i  
> 'cd zope' first, and simply call './bin/zopectl tests  
> -sProducts.SomeProduct'
>
> i just tried it with your buildout, and sure enough it works if i cd  
> into the bin directory and run './instance debug'.

There's lots of variations of this bug; if you do cd bin; buildout — it  
doesn't work, but if you do bin/buildout, it does. Quite confusing for our  
newbies, although it's understandable that it works the way it does from  
an implementation standpoint.

--
Alexander Limi · http://limi.net


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Alexander Limi · http://limi.net

Wichert Akkerman
Re: Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
Previously Alexander Limi wrote:

> On Mon, 04 Aug 2008 18:44:07 -0700, Rob Miller  
> <ra@...> wrote:
>
> >i've seen something different but eerily similar in another situation.  
> >i commonly have zope instances running in a directory named "zope"  
> >inside a virtualenv.  if i run './zope/bin/zopectl test  
> >-sProducts.SomeProduct' then it doesn't work, i see error messages with  
> >duplicated paths, similar to what you've seen.  it works, however, if i  
> >'cd zope' first, and simply call './bin/zopectl tests  
> >-sProducts.SomeProduct'
> >
> >i just tried it with your buildout, and sure enough it works if i cd  
> >into the bin directory and run './instance debug'.
>
> There's lots of variations of this bug; if you do cd bin; buildout — it  
> doesn't work, but if you do bin/buildout, it does. Quite confusing for our  
> newbies, although it's understandable that it works the way it does from  
> an implementation standpoint.

That's different: buildout looks for buildout.cfg in the current
directory. That is documented and correct behaviour - it would be mad if
buildout went looking all over for its configuration.  Similarly
supervisord/supervisorctl as used in the plone_hosting template also
expect to be run form the root of the buildout directory if you don't
pass a path to a configfile in.

Wichert.

--
Wichert Akkerman <wichert@...>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
In reply to this post by Rob Miller
Rob Miller, on 2008-08-05:
> Maurits van Rees wrote:
>> I have a package Products.feedfeeder here:
>> https://svn.plone.org/svn/collective/feedfeeder/trunk
>> Why would a bin/instance fg work and a bin/instance debug fail?
>
> my guess is that the way that the paths are constructed vary between the two,
> and there's a bug in the 'debug' implementation.

A quick look with the pdb did not reveal any obvious differences in
the way this is handled.

> i've seen something different but eerily similar in another situation.  i
> commonly have zope instances running in a directory named "zope" inside a
> virtualenv.  if i run './zope/bin/zopectl test -sProducts.SomeProduct' then it
> doesn't work, i see error messages with duplicated paths, similar to what
> you've seen.  it works, however, if i 'cd zope' first, and simply call
> './bin/zopectl tests -sProducts.SomeProduct'
>
> i just tried it with your buildout, and sure enough it works if i cd into the
> bin directory and run './instance debug'.

Ah right, that works, thanks.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Derek Broughton-2
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
In reply to this post by Rob Miller
Rob Miller wrote:

> Maurits van Rees wrote:
>> I have a package Products.feedfeeder here:
>> https://svn.plone.org/svn/collective/feedfeeder/trunk
>>
>> I just added a bootstrap.py and buildout.cfg there to see if that is
>> handy; so right next to the setup.py.  It is a standard plone 3
>> buildout, with these changes:
>>
>> ========================
>> eggs =
>>     elementtree
>>     Products.feedfeeder
>>
>> # Products.feedfeeder is developed in the current directory:
>> develop = .
>> ========================
>>
>> A "bin/instance fg" works fine.  A "bin/instance debug" on the other
>> hand gives an error:
>>
>> ========================================================================
>> 2008-08-05 00:01:32 ERROR Application Couldn't install Five
>> Traceback (most recent call last):
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/OFS/Application.py",
>>   line 786, in install_product
>>     initmethod(context)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/__init__.py",
>>   line 28, in initialize
>>     zcml.load_site()
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/zcml.py",
>>   line 53, in load_site
>>     _context = xmlconfig.file(file)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 579, in file
>>     include(context, name, package)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 515, in include
>>     processxmlfile(f, context)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 370, in processxmlfile
>>     parser.parse(src)
>>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>>     xmlreader.IncrementalParser.parse(self, source)
>>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>>     self.feed(buffer)
>>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>>     self._parser.Parse(data, isFinal)
>>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in
>>   end_element_ns
>>     self._cont_handler.endElementNS(pair, None)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 349, in endElementNS
>>     self.context.end()
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py",
>>   line 544, in end
>>     self.stack.pop().finish()
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/config.py",
>>   line 692, in finish
>>     actions = self.handler(context, **args)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py",
>>   line 78, in loadProducts
>>     handleBrokenProduct(product)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/Products/Five/fiveconfigure.py",
>>   line 76, in loadProducts
>>     xmlconfig.include(_context, zcml, package=product)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 508, in include
>>     f = openInOrPlain(path)
>>   File
>>   "/home/maurits/svn/feedfeeder/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>>   line 419, in openInOrPlain
>>     fp = open(filename)
>> ZopeXMLConfigurationError: File
>> "/home/maurits/svn/feedfeeder/parts/instance/etc/site.zcml", line
>> 15.2-15.23
>>     IOError: [Errno 2] No such file or directory:
>>     '/home/maurits/svn/feedfeeder/Products/feedfeeder/Products/feedfeeder/configure.zcml'
>> ========================================================================
>>
>> The double mention of 'Products/feedfeeder' in the path of that last
>> line is strange of course.
>>
>> Why would a bin/instance fg work and a bin/instance debug fail?
>
> my guess is that the way that the paths are constructed vary between the
> two, and there's a bug in the 'debug' implementation.
>
> i've seen something different but eerily similar in another situation.  i
> commonly have zope instances running in a directory named "zope" inside a
> virtualenv.  if i run './zope/bin/zopectl test -sProducts.SomeProduct'
> then it doesn't work, i see error messages with duplicated paths, similar
> to what
> you've seen.  it works, however, if i 'cd zope' first, and simply call
> './bin/zopectl tests -sProducts.SomeProduct'
>
> i just tried it with your buildout, and sure enough it works if i cd into
> the bin directory and run './instance debug'.

I otoh have never had "debug" work from buildout.  Since my first buildout,
I get (and it doesn't matter if it runs from the directory with the
buildout.cfg or from bin):

derek@bella:~/plone/nagisa$ bin/instance2 debug
Starting debugger (the name "app" is bound to the top-level Zope object)
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
line 51, in app
    startup()
  File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
line 46, in startup
    from Zope2.App.startup import startup as _startup
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/App/startup.py",
line 32, in ?
    import OFS.Application
  File "/home/derek/plone/nagisa/parts/zope2/lib/python/OFS/Application.py",
line 30, in ?
    from App.ApplicationManager import ApplicationManager
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
line 92, in ?
    class DatabaseChooser (SimpleItem.SimpleItem):
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
line 104, in DatabaseChooser
    manage_main = PageTemplateFile('www/chooseDatabase.pt', globals())
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/Products/PageTemplates/PageTemplateFile.py",
line 90, in __init__
    self.pt_edit( content, guess_type(filename, content))
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
line 83, in pt_edit
    self.write(text)
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
line 151, in write
    self._cook()
 
File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
line 202, in _cook
    self._v_warnings = parser.getWarnings()
AttributeError: HTMLTALParser instance has no attribute 'getWarnings'
>>>
--
derek


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
Derek Broughton, on 2008-08-05:

> I otoh have never had "debug" work from buildout.  Since my first buildout,
> I get (and it doesn't matter if it runs from the directory with the
> buildout.cfg or from bin):
>
> derek@bella:~/plone/nagisa$ bin/instance2 debug
> Starting debugger (the name "app" is bound to the top-level Zope object)
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
> line 51, in app
>     startup()
>   File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
> line 46, in startup
>     from Zope2.App.startup import startup as _startup
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/App/startup.py",
> line 32, in ?
>     import OFS.Application
>   File "/home/derek/plone/nagisa/parts/zope2/lib/python/OFS/Application.py",
> line 30, in ?
>     from App.ApplicationManager import ApplicationManager
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
> line 92, in ?
>     class DatabaseChooser (SimpleItem.SimpleItem):
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
> line 104, in DatabaseChooser
>     manage_main = PageTemplateFile('www/chooseDatabase.pt', globals())
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/Products/PageTemplates/PageTemplateFile.py",
> line 90, in __init__
>     self.pt_edit( content, guess_type(filename, content))
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
> line 83, in pt_edit
>     self.write(text)
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
> line 151, in write
>     self._cook()
>  
> File "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
> line 202, in _cook
>     self._v_warnings = parser.getWarnings()
> AttributeError: HTMLTALParser instance has no attribute 'getWarnings'
>>>>

So bin/instance fg does work here?

Wild guess: would renaming the /home/derek/plone directory to
/home/derek/foo help?  (And then removing the pyc files and running
bin/buildout again.)

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Derek Broughton-2
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
Maurits van Rees wrote:

> Derek Broughton, on 2008-08-05:
>> I otoh have never had "debug" work from buildout.  Since my first
>> buildout, I get (and it doesn't matter if it runs from the directory with
>> the buildout.cfg or from bin):
>>
>> derek@bella:~/plone/nagisa$ bin/instance2 debug
>> Starting debugger (the name "app" is bound to the top-level Zope object)
>> Traceback (most recent call last):
>>   File "<string>", line 1, in ?
>>   File
>>   "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
>> line 51, in app
>>     startup()
>>   File
>>   "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
>> line 46, in startup
>>     from Zope2.App.startup import startup as _startup
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/App/startup.py",
>> line 32, in ?
>>     import OFS.Application
>>   File
>>   "/home/derek/plone/nagisa/parts/zope2/lib/python/OFS/Application.py",
>> line 30, in ?
>>     from App.ApplicationManager import ApplicationManager
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
>> line 92, in ?
>>     class DatabaseChooser (SimpleItem.SimpleItem):
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/App/ApplicationManager.py",
>> line 104, in DatabaseChooser
>>     manage_main = PageTemplateFile('www/chooseDatabase.pt', globals())
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/Products/PageTemplates/PageTemplateFile.py",
>> line 90, in __init__
>>     self.pt_edit( content, guess_type(filename, content))
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
>> line 83, in pt_edit
>>     self.write(text)
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
>> line 151, in write
>>     self._cook()
>>  
>> File
>> "/home/derek/plone/nagisa/parts/zope2/lib/python/zope/pagetemplate/pagetemplate.py",
>> line 202, in _cook
>>     self._v_warnings = parser.getWarnings()
>> AttributeError: HTMLTALParser instance has no attribute 'getWarnings'
>>>>>
>
> So bin/instance fg does work here?

Yes, as does "bin/instance start".

> Wild guess: would renaming the /home/derek/plone directory to
> /home/derek/foo help?  (And then removing the pyc files and running
> bin/buildout again.)

Ah.  You think actually having a directory named plone might be confusing?
I'll give that a try.

--
derek


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Derek Broughton-2
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
In reply to this post by Maurits van Rees-3
Maurits van Rees wrote:

> Derek Broughton, on 2008-08-05:
>> I otoh have never had "debug" work from buildout.  Since my first
>> buildout, I get (and it doesn't matter if it runs from the directory with
>> the buildout.cfg or from bin):
>>
>> derek@bella:~/plone/nagisa$ bin/instance2 debug
>> Starting debugger (the name "app" is bound to the top-level Zope object)
>> Traceback (most recent call last):
>>   File "<string>", line 1, in ?
>>   File
>>   "/home/derek/plone/nagisa/parts/zope2/lib/python/Zope2/__init__.py",
...
>> AttributeError: HTMLTALParser instance has no attribute 'getWarnings'
>>>>>
>
> So bin/instance fg does work here?
>
> Wild guess: would renaming the /home/derek/plone directory to
> /home/derek/foo help?  (And then removing the pyc files and running
> bin/buildout again.)
 
Thanks for the suggestion, but no luck.  I don't miss it much, as I find it
more convenient to use Clouseau for most things I'd do with "instance
debug", but it's odd that I haven't seen anyone else report this.
--
derek


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
Derek Broughton-2
Re: buildout.cfg within a package
Reply Threaded More
Print post
Permalink
Derek Broughton wrote:

> Maurits van Rees wrote:
>
>> Wild guess: would renaming the /home/derek/plone directory to
>> /home/derek/foo help?  (And then removing the pyc files and running
>> bin/buildout again.)
>  
> Thanks for the suggestion, but no luck.  I don't miss it much, as I find
> it more convenient to use Clouseau for most things I'd do with "instance
> debug", but it's odd that I haven't seen anyone else report this.

Oh, fun.  I just started playing with plone.app.z3cform, so added the
fake-eggs stuff and voila debug now works.  It's all magic to me...
--
derek


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers