[Erp5-dev] site upgrade difficulties - Zope 2.7 -> Zope 2.8

Rafael Monnerat rafael at nexedi.com
Thu Mar 20 17:17:26 CET 2008


Hi Mikolaj,

This error happens because you are trying to run zope with python 2.5 
intead 2.4 . Please check your zopectl and make sure that you are using 
python2.4 .

Rafael

Mikolaj Antoszkiewicz wrote:
> Hello,
> 
> I've upgraded my Mandriva to 2008 and along that installed a brand new, 
> cutting edge ERP5 with Zope 2.8.9.1-final and Python 2.4.4
> 
> It works real well except with old sites.
> Any site that previously worked with Zope 2.7.8-final and Python 2.4.3 
> now give such an error (when trying to run zopectl):
> 
> ...
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/__init__.py", line 
> 21, in <module>
>      from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/DocumentTemplate.py", 
> line 112, in <module>
>      from DT_String import String, File
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/DT_String.py", line 
> 19, in <module>
>      from DT_Util import ParseError, InstanceDict, TemplateDict, 
> render_blocks, str
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/DT_Util.py", line 19, 
> in <module>
>      from html_quote import html_quote, ustr # for import by other 
> modules, dont remove!
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/html_quote.py", line 
> 4, in <module>
>      from ustr import ustr
>    File "/usr/lib/erp5/lib/python/DocumentTemplate/ustr.py", line 18, in 
> <module>
>      nasty_exception_str = Exception.__str__.im_func
> AttributeError: 'wrapper_descriptor' object has no attribute 'im_func'
> 
> Of course the Traceback is much longer, but the final part is as above.
> 
> Did anyone come across such a problem, or maybe not but it's a known 
> upgrade issue.
> I would really appreciate any help/hint/advice.
> 
> Mikolaj
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev
> 




More information about the Erp5-dev mailing list