Zope2.11.xでCOREBlog125
 2009.03.06

Zope2.11.x で COREBlog1.2.5を使う。 Zope2.11.2 をセットアップし、COREBlog1.2.5(2じゃない方)を使おうとしたら、以下のエラーが出た。
------
2009-03-05T23:42:27 ERROR Application Could not import Products.COREBlog
Traceback (most recent call last):
  File "/opt/zope/2.11.2/lib/python/OFS/Application.py", line 709, in import_produ
ct
    product=__import__(pname, global_dict, global_dict, silly)
  File "/home/zope/inst2_11_2/Products/COREBlog/__init__.py", line 23, in ?
    from ImageFile import ImageFile
ImportError: No module named ImageFile
------
2009-03-05T23:42:27 WARNING ZODB.FileStorage Ignoring index for /home/zope/inst2_1
1_2/var/Data.fs
------
2009-03-05T23:42:27 ERROR Application Couldn't install COREBlog
Traceback (most recent call last):
  File "/opt/zope/2.11.2/lib/python/OFS/Application.py", line 758, in install_prod
uct
    global_dict, global_dict, silly)
  File "/home/zope/inst2_11_2/Products/COREBlog/__init__.py", line 23, in ?
    from ImageFile import ImageFile
ImportError: No module named ImageFile
------
Zope2.11.2 の HISTORY.txt を見ると「ImageFileモジュールはお勧めしないから、代わりにApp.ImageFile使ってね」との事なので COREBlog/__init__.py を以下のように修正 [python gutter=”false”] try : from ImageFile import ImageFile except ImportError : # Zope2.11.x from App.ImageFile import ImageFile [/python] これでとりあえず使えているっぽい。 2009/3/8 修正: coreblogカテゴリに修正。
カテゴリー:coreblog,python&zope