[Zope] psyco-1.2 and Zope-2.7.2-0

Daniel Berhane dberhane at bmj.com
Fri Aug 20 12:40:25 EDT 2004


Dear all

I've recently installed the latest versions of Python 2.3 and Zope 2.7.2 
    successfully in our RHEL3.0 (latest version of RedHat Enterprise). 
To increase response time and optimize Zope with SpeedPack, I have 
installed the latest version of Pysco-1.2. But I've having problems when 
I re-start Zope. As soon as I remove pysco-1.2, Zope seems to work OK.

I'm getting the following error message:

File "/usr/local/lib/python2.3/inspect.py", line 744, in getframeinfo
raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object

Please look at the detailed debug and error message from Zope when 
pysco-1.2 is installed.

I am a new Zope user and I would be grateful for your help.

regards
Daniel.


-sh-2.05b$ ./runzope
------
2004-08-20T16:20:03 INFO(0) ZServer HTTP server started at Fri Aug 20 
16:20:03 2
004
         Hostname: test.bmjpg.com
         Port: 8080
------
2004-08-20T16:20:03 INFO(0) ZServer FTP server started at Fri Aug 20 
16:20:03 20
04
         Hostname: test.bmjpg.com
         Port: 8021
------
2004-08-20T16:20:04 INFO(0) IngeniWeb
NOTICE   global_symbols.py:20:Fri Aug 20 16:20:04 2004: 'Starting 
/usr/local/zop
e/home/Products/GroupUserFolder at 4 debug level'

------
2004-08-20T16:20:04 INFO(0) PlacelessTranslationService Applying patch
*** Patching ZPublisher.Publish with the get_request patch! ***
------
2004-08-20T16:20:04 INFO(0) SpeedPack
Enabling psyco. If you experience problems with Archetypes, set 
use_psyco in Spe
edpack.__init__.py to 0
------
2004-08-20T16:20:04 INFO(0) SpeedPack
Patched CMF Site
------
2004-08-20T16:20:04 INFO(0) SpeedPack
Patched CMF Skins Tool
------
2004-08-20T16:20:04 DEBUG(-200) FileStorage create storage 
/usr/local/zope/home/
var/Data.fs
------
2004-08-20T16:20:05 DEBUG(-200) TemporaryStorage create storage 
temporary storag
e for sessioning
------
2004-08-20T16:20:05 BLATHER(-100) ZODB Commiting subtransaction of size 6008
------
2004-08-20T16:20:05 ERROR(200) Archetypes None
Traceback (most recent call last):
   File 
"/usr/local/zope/home/Products/Archetypes/content_driver/__init__.py", li
ne 15, in ?
     import MSWord
   File 
"/usr/local/zope/home/Products/Archetypes/content_driver/MSWord.py", line
  20, in ?
     log("""Failed to import the OpenOffice PyUNO content converter.
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 155, 
in log
     msg = "%s\n" % (self.munge_message(msg, **kwargs))
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 122, 
in munge_m
essage
     frames = self.generateFrames(offset, offset+deep)
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 112, 
in generat
eFrames
     return inspect.stack()[start:end]
   File "/usr/local/lib/python2.3/inspect.py", line 795, in stack
     return getouterframes(sys._getframe(1), context)
   File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes
     framelist.append((frame,) + getframeinfo(frame, context))
   File "/usr/local/lib/python2.3/inspect.py", line 744, in getframeinfo
     raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
------
2004-08-20T16:20:05 ERROR(200) Zope Couldn't install Archetypes
Traceback (most recent call last):
   File "/usr/local/zope/lib/python/OFS/Application.py", line 738, in 
install_pro
duct
     initmethod(context)
   File "/usr/local/zope/home/Products/Archetypes/__init__.py", line 72, 
in initi
alize
     import examples
   File "/usr/local/zope/home/Products/Archetypes/examples/__init__.py", 
line 1,
in ?
     import DDocument
   File 
"/usr/local/zope/home/Products/Archetypes/examples/DDocument.py", line 1,
  in ?
     from Products.Archetypes.public import *
   File "/usr/local/zope/home/Products/Archetypes/public.py", line 4, in ?
     from BaseContent import BaseContent
   File "/usr/local/zope/home/Products/Archetypes/BaseContent.py", line 
8, in ?
     from BaseObject import BaseObject
   File "/usr/local/zope/home/Products/Archetypes/BaseObject.py", line 
18, in ?
     from Schema import Schema, Schemata
   File "/usr/local/zope/home/Products/Archetypes/Schema.py", line 12, in ?
     from BaseUnit import BaseUnit
   File "/usr/local/zope/home/Products/Archetypes/BaseUnit.py", line 11, 
in ?
     from content_driver import getDefaultPlugin, lookupContentType, 
getConverter
   File 
"/usr/local/zope/home/Products/Archetypes/content_driver/__init__.py", li
ne 25, in ?
     log("""Unable to import MSWord content driver, this is most likely 
due to
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 155, 
in log
     msg = "%s\n" % (self.munge_message(msg, **kwargs))
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 122, 
in munge_m
essage
     frames = self.generateFrames(offset, offset+deep)
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 112, 
in generat
eFrames
     return inspect.stack()[start:end]
   File "/usr/local/lib/python2.3/inspect.py", line 795, in stack
     return getouterframes(sys._getframe(1), context)
   File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes
     framelist.append((frame,) + getframeinfo(frame, context))
   File "/usr/local/lib/python2.3/inspect.py", line 744, in getframeinfo
     raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object
Traceback (most recent call last):
   File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 50, in ?
     run()
   File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 19, in run
     start_zope(opts.configroot)
   File "/usr/local/zope/lib/python/Zope/Startup/__init__.py", line 51, 
in start_
zope
     starter.startZope()
   File "/usr/local/zope/lib/python/Zope/Startup/__init__.py", line 230, 
in start
Zope
     Zope.startup()
   File "/usr/local/zope/lib/python/Zope/__init__.py", line 47, in startup
     _startup()
   File "/usr/local/zope/lib/python/Zope/App/startup.py", line 96, in 
startup
     OFS.Application.initialize(application)
   File "/usr/local/zope/lib/python/OFS/Application.py", line 278, in 
initialize
     initializer.initialize()
   File "/usr/local/zope/lib/python/OFS/Application.py", line 305, in 
initialize
     self.install_products()
   File "/usr/local/zope/lib/python/OFS/Application.py", line 560, in 
install_pro
ducts
     return install_products(app)
   File "/usr/local/zope/lib/python/OFS/Application.py", line 591, in 
install_pro
ducts
     folder_permissions, raise_exc=debug_mode)
   File "/usr/local/zope/lib/python/OFS/Application.py", line 738, in 
install_pro
duct
     initmethod(context)
   File "/usr/local/zope/home/Products/Archetypes/__init__.py", line 72, 
in initi
alize
     import examples
   File "/usr/local/zope/home/Products/Archetypes/examples/__init__.py", 
line 1,
in ?
     import DDocument
   File 
"/usr/local/zope/home/Products/Archetypes/examples/DDocument.py", line 1,
  in ?
     from Products.Archetypes.public import *
   File "/usr/local/zope/home/Products/Archetypes/public.py", line 4, in ?
     from BaseContent import BaseContent
   File "/usr/local/zope/home/Products/Archetypes/BaseContent.py", line 
8, in ?
     from BaseObject import BaseObject
   File "/usr/local/zope/home/Products/Archetypes/BaseObject.py", line 
18, in ?
     from Schema import Schema, Schemata
   File "/usr/local/zope/home/Products/Archetypes/Schema.py", line 12, in ?
     from BaseUnit import BaseUnit
   File "/usr/local/zope/home/Products/Archetypes/BaseUnit.py", line 11, 
in ?
     from content_driver import getDefaultPlugin, lookupContentType, 
getConverter
   File 
"/usr/local/zope/home/Products/Archetypes/content_driver/__init__.py", li
ne 25, in ?
     log("""Unable to import MSWord content driver, this is most likely 
due to
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 155, 
in log
     msg = "%s\n" % (self.munge_message(msg, **kwargs))
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 122, 
in munge_m
essage
     frames = self.generateFrames(offset, offset+deep)
   File "/usr/local/zope/home/Products/Archetypes/debug.py", line 112, 
in generat
eFrames
     return inspect.stack()[start:end]
   File "/usr/local/lib/python2.3/inspect.py", line 795, in stack
     return getouterframes(sys._getframe(1), context)
   File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes
     framelist.append((frame,) + getframeinfo(frame, context))
   File "/usr/local/lib/python2.3/inspect.py", line 744, in getframeinfo
     raise TypeError('arg is not a frame or traceback object')
TypeError: arg is not a frame or traceback object



More information about the Zope mailing list