[Zope-CMF] help with TALESError (fixed)

Steve Arnold sarnold@arnolds.dhs.org
01 Jun 2002 18:05:51 -0700


On Sat, 2002-06-01 at 12:06, Tres Seaver wrote:

> 
> The traceback I see suggests that you have fragments of several Zope
> installs lying around on your system.  In particular, it contains frames
> for methods in ZPublisher where the filename is inside your
> '/usr/lib/python2.2/site-packages' directory, while other stuff is in
> '/usr/share/zope/lib/python...'.  Can you try removing all the
> Zope-specific stuff from site-packages, and then run only from the main
> Zope source tree?  If necessary, this may require installing the Zope
> source and moving the Data.fs to its home.

Sorry to be a doofus, but I guess I shouldn't have used python 2.2 when
I built Zope; apparently, Zope 2.4.3 only works with python 2.0 or 2.1. 
I built and installed the updated python rpms (python2.1-2.1.3-1), and
then built the Zope 2.4.3 rpms correctly against them.  Now both CMF and
squishdot are working again (mostly).

But now I have another question (what did you expect?).  The CMF
calendar doesn't work any more.  There's some kind of python error in
dateMunger:

 Sorry, a site error occurred.<p>
<!--
Traceback (innermost last):
  File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 223,
in publish_module
  File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 187,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
    (Object: calendarDisplay)
  File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 171,
in publish
  File /usr/lib/python2.1/site-packages/ZPublisher/mapply.py, line 160,
in mapply
    (Object: index_html)
  File /usr/lib/python2.1/site-packages/ZPublisher/Publish.py, line 112,
in call_object
    (Object: index_html)
  File /usr/share/zope/lib/python/OFS/DTMLDocument.py, line 199, in
__call__
    (Object: index_html)
  File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_String.py,
line 546, in __call__
    (Object: index_html)
  File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_With.py,
line 148, in render
    (Object: calendarDisplay)
  File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 192, in
__call__
    (Object: calendar)
  File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_String.py,
line 546, in __call__
    (Object: calendar)
  File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_Let.py, line
147, in render
    (Object: pm=&quot;dateMunger()[0]&quot;
          current=&quot;dateMunger()[1]&quot;
          nm=&quot;dateMunger()[2]&quot;)
  File /usr/lib/python2.1/site-packages/DocumentTemplate/DT_Util.py,
line 231, in eval
    (Object: dateMunger()[0])
    (Info: dateMunger)
  File &lt;string&gt;, line 2, in f
    (Object: guarded_getitem)
  File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
324, in __call__
    (Object: dateMunger)
  File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
354, in _bindAndExec
    (Object: dateMunger)
  File
/usr/share/zope/lib/python/Products/PythonScripts/PythonScript.py, line
354, in _exec
    (Object: dateMunger)
    (Info: ({'script': &lt;PythonScript instance at 8ef3380&gt;,
'context': &lt;Folder instance at 8f27f28&gt;, 'container': &lt;Folder
instance at 8f27f28&gt;, '_': &lt;TemplateDict object at 0x8f7a910&gt;,
'traverse_subpath': []}, (), {}, ()))
RuntimeError: Script (Python) dateMunger has errors.

Any tips would help, since I still don't know python very well.

Thanks again, Steve