Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-11 Thread Chris Withers
Michael Long wrote:
After some further investigation I have found that a product that I am
developing is causing the error to appear. The product appears to work
fine in zope. I can add it, create objects with it and the objects are
persistent. Can someone give me some advice on how to go about debugging
my product to identify the offending code? 
print statements or the python debugger, take your pick :-)

The error appears in the
following environments:
What's the error (type, value and traceback please...)

cheer,

Chris

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


Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows -- SOLVED

2003-09-10 Thread Michael Long
I have found the offending code...he said sheepishly. In the __init__.py
file I had the following:

def initialize(context):
...
import traceback; traceback.print_exc()

instead of:

def initialize(context):
try:
...
except:
import traceback; traceback.print_exc()

My thanks goes out to all who helped.

Later,
Mike


> After some further investigation I have found that a product that I am
> developing is causing the error to appear. The product appears to work
> fine in zope. I can add it, create objects with it and the objects are
> persistent. Can someone give me some advice on how to go about debugging
> my product to identify the offending code? The error appears in the
> following environments:
> 
> SuSE 8.2 -- Zope 2.6.1
> WinXP Pro -- Zope 2.7.x
> 
> Thanks,
> Mike
> 
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )
> 
> 



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


Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-10 Thread Michael Long
> Try adding objects to your Zope, if that works and they stick around
even after 
> you restart Zope, then this isn't so much of a problem.
> 
> However, it's nasty, and I suspect you find you may not be able to
store objects 
> to disk, so this does need fixing :-(
> 
> Please file on http://collector.zope.org
> 
I love the ease of adding zope instances in 2.7!! 

After some further investigation I have found that a product that I am
developing is causing the error to appear. The product appears to work
fine in zope. I can add it, create objects with it and the objects are
persistent. Can someone give me some advice on how to go about debugging
my product to identify the offending code? The error appears in the
following environments:

SuSE 8.2 -- Zope 2.6.1
WinXP Pro -- Zope 2.7.x

Thanks,
Mike


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


Re: [Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-10 Thread Chris Withers
Michael Long wrote:

I have recently installed Zope 2.7.0-b2 on windows XP and am getting the
same error message as 2.7.0-b1 when starting zope. Is this truly an
error message or just informational?
2003-09-05T11:37:23 BLATHER(-100) ZODB Commiting subtransaction of size 5382
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.7.0-b2\lib\python\Zope\App\startup.py",
line 52, in startup
m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
ImportError: No module named custom_zodb
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.7.0-b2\lib\python\Zope\App\startup.py",
line 52, in startup
m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
ImportError: No module named custom_zodb
Try adding objects to your Zope, if that works and they stick around even after 
you restart Zope, then this isn't so much of a problem.

However, it's nasty, and I suspect you find you may not be able to store objects 
to disk, so this does need fixing :-(

Please file on http://collector.zope.org

cheers,

Chris

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


[Zope-dev] Zope 2.7.0-b2 startup error on windows

2003-09-05 Thread Michael Long

I have recently installed Zope 2.7.0-b2 on windows XP and am getting the
same error message as 2.7.0-b1 when starting zope. Is this truly an
error message or just informational?

2003-09-05T11:37:23 BLATHER(-100) ZODB Commiting subtransaction of size 5382
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.7.0-b2\lib\python\Zope\App\startup.py",
line 52, in startup
m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
ImportError: No module named custom_zodb
Traceback (most recent call last):
  File "C:\Program Files\Zope-2.7.0-b2\lib\python\Zope\App\startup.py",
line 52, in startup
m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
ImportError: No module named custom_zodb
--
2003-09-05T11:37:23 INFO(0) Zope Ready to handle requests


Thanks,
Mike

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