在 Zope 上安装 ZPsycopgDA

Installing ZPsycopgDA on Zope

所以,我正在尝试在 Zope 上安装 ZPsycopgDA,但它一直在日志文件中显示以下错误:

2022-02-13T02:11:01 ERROR Application Couldn't install ZPsycopgDA
Traceback (most recent call last):

  File "/home/rubens/zope/lib64/python2.7/site-packages/OFS/Application.py", line 660, in install_product
    global_dict, global_dict, silly)
  
File "/home/rubens/zope/instance/Products/ZPsycopgDA/__init__.py", line 21, in <module>
    import DA
  
File "/home/rubens/zope/instance/Products/ZPsycopgDA/DA.py", line 21, in <module>
    import db
  
File "/home/rubens/zope/instance/Products/ZPsycopgDA/db.py", line 18, in <module>
    from Shared.DC.ZRDB.TM import TM

ImportError: No module named ZRDB.TM

我按照说明将 Zope lib 目录添加到 PYTHONPATH (/home/rubens/zope/lib64),但仍然出现此错误。有什么线索吗?我正在使用 Zope2==2.13.30.

找到解决方案。必须安装 Products.ZSQLMethods (pip install Products.ZSQLMethods==2.13.4)。由于 Zope2==2.13.30 兼容性,我安装了这个版本。