Re: [Zope] Problem with zopectl debug

2008-04-10 Thread Manuel Vazquez Acosta
Dieter Maurer wrote:
 Manuel Vazquez Acosta wrote at 2008-4-7 15:21 -0400:
 Dieter Maurer wrote:
 That is very strange:

   zopectl debug uses almost exactly the same startup sequence
   as zopectl fg (at least until after the configuration).
   Thus, if your Zope starts at all, zopectl debug should start.
 ...
 zopectl fg starts. Would need to see the starting sequence?
 
 Really funny
 
 Unfortunately, this means that is will be quite difficult
 to find the cause of your problem.
 
 One approach would be to emulate in a pure Python interpreter
 what zopectl debug would do for us.
 
 You may try:
 
 bin/zopectl shell # will create a new shell process with the correct 
 environment
 your_zope_python
 from Zope2.Startup.run import configure
 configure('etc/zope.conf')
 # this is likely to raise the exception you have earlier reported
 from pdb import pm
 pm() # analyse the exception context
 
 
 

I will try that. Any thing happens I report back to the list.

Best regards,
Manuel.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with zopectl debug

2008-04-08 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2008-4-7 15:21 -0400:
Dieter Maurer wrote:
 That is very strange:
 
   zopectl debug uses almost exactly the same startup sequence
   as zopectl fg (at least until after the configuration).
   Thus, if your Zope starts at all, zopectl debug should start.
 ...
zopectl fg starts. Would need to see the starting sequence?

Really funny

Unfortunately, this means that is will be quite difficult
to find the cause of your problem.

One approach would be to emulate in a pure Python interpreter
what zopectl debug would do for us.

You may try:

bin/zopectl shell # will create a new shell process with the correct 
environment
your_zope_python
from Zope2.Startup.run import configure
configure('etc/zope.conf')
# this is likely to raise the exception you have earlier reported
from pdb import pm
pm() # analyse the exception context



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with zopectl debug

2008-04-07 Thread Manuel Vazquez Acosta
Dieter Maurer wrote:
 That is very strange:
 
   zopectl debug uses almost exactly the same startup sequence
   as zopectl fg (at least until after the configuration).
   Thus, if your Zope starts at all, zopectl debug should start.
 
 Are you sure that the CMF version fits to your Zope version?
 

Dear Mr. Maurer,

Thanks for your response. Here are more details.

CMF is the one that came with Plone 2.5 (I'm planning to upgrade to 2.5.5).

Zope is 2.9.8-final.

zopectl fg starts. Would need to see the starting sequence?

Best regards,
Manuel.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem with zopectl debug

2008-04-06 Thread Dieter Maurer
Manuel Vazquez Acosta wrote at 2008-4-5 22:23 -0400:
 ...
I'm trying to debug a Plone site with zopectl debug. I'm getting this error:

Traceback (most recent call last):
 ...
from Products.CMFCore.DirectoryView import registerDirectory
  File /usr/lib/python2.4/site-packages/PIL/__init__.py, line 20, in ?

  File /var/zope/zope-prensa/Products/CMFCore/PortalObject.py, line
18, in ?
ImportError: cannot import name InitializeClass

That is very strange:

  zopectl debug uses almost exactly the same startup sequence
  as zopectl fg (at least until after the configuration).
  Thus, if your Zope starts at all, zopectl debug should start.

Are you sure that the CMF version fits to your Zope version?



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Problem with zopectl debug

2008-04-05 Thread Manuel Vazquez Acosta
Hi all,

I'm trying to debug a Plone site with zopectl debug. I'm getting this error:

Traceback (most recent call last):
  File string, line 1, in ?
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/run.py,
line 31, in configure
opts = _setconfig(configfile)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/run.py,
line 46, in _setconfig
opts.realize(doc=Sorry, no option docs yet., raise_getopt_errs=0)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/zdaemon/zdoptions.py,
line 273, in realize
self.load_schema()
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/zdaemon/zdoptions.py,
line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py,
line 31, in loadSchema
return SchemaLoader().loadURL(url)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py,
line 65, in loadURL
return self.loadResource(r)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py,
line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py,
line 27, in parseResource
xml.sax.parse(resource.file, parser)
  File /usr/lib/python2.4/site-packages/_xmlplus/sax/__init__.py, line
31, in parse
parser.parse(filename_or_stream)
  File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py,
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py,
line 123, in parse
self.feed(buffer)
  File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py,
line 216, in feed
self._parser.Parse(data, isFinal)
  File /usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py,
line 312, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py,
line 99, in startElement
getattr(self, start_ + name)(attrs)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py,
line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py,
line 201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, datatype, null, base)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py,
line 194, in get_datatype
return self._registry.get(dtname)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/datatypes.py,
line 398, in get
t = self.search(name)
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/datatypes.py,
line 423, in search
package = __import__(n, g, g, component)
  File
/home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/datatypes.py,
line 21, in ?
import OFS.Uninstalled
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/OFS/Uninstalled.py,
line 20, in ?
import SimpleItem, Globals, Acquisition
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/OFS/SimpleItem.py,
line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
  File
/home/manu/bin/opt/Zope-2.9.8f/lib/python/AccessControl/Role.py, line
19, in ?
from Globals import DTMLFile, MessageDialog, Dictionary
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/Globals/__init__.py,
line 23, in ?
import Acquisition, ComputedAttribute, App.PersistentExtra, os
  File
/home/manu/bin/opt/Zope-2.9.8f/lib/python/App/PersistentExtra.py, line
24, in ?
from class_init import default__class_init__
  File /home/manu/bin/opt/Zope-2.9.8f/lib/python/App/class_init.py,
line 16, in ?
import AccessControl.Permission
  File
/home/manu/bin/opt/Zope-2.9.8f/lib/python/AccessControl/Permission.py,
line 18, in ?
import string, Products, Globals
  File Products/__init__.py, line 4, in ?
from Products.CMFCore.DirectoryView import registerDirectory
  File /usr/lib/python2.4/site-packages/PIL/__init__.py, line 20, in ?

  File /var/zope/zope-prensa/Products/CMFCore/PortalObject.py, line
18, in ?
ImportError: cannot import name InitializeClass



I created my instance by compiling Zope-2.9.8-final and restoring the
Data.fs from a repozo backup.

The directory /var/zope/zope-prensa is where the real instance use to
be. However for development and debuging I set up my working instance in
my home.

Any ideas?

Best regards,
Manuel.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )