Discussion:
[Erp5-dev] site upgrade difficulties - Zope 2.7 -> Zope 2.8
Mikolaj Antoszkiewicz
2008-03-20 16:10:19 UTC
Permalink
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
Rafael Monnerat
2008-03-20 16:17:26 UTC
Permalink
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
Post by Mikolaj Antoszkiewicz
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
...
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
Mikolaj Antoszkiewicz
2008-03-26 14:25:12 UTC
Permalink
Post by Rafael Monnerat
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
Yes! That was it. My general python got upgraded to 2.5.
Just needed to modify zopectl and zoperun.
Thanks a lot!

Mikolaj

Loading...