【问题标题】:Read Lotus Notes with Python用 Python 阅读 Lotus Notes
【发布时间】:2021-10-15 08:35:36
【问题描述】:

我在 Note 文档上有一些 Lotus Notes 表格。这个表格的 URL 如下:

Notes://[...]

我想用 Python 解析它,但我无法管理它。 我找到了几个来源,告诉我要表现得像这样:

import win32com.client
session = win32com.client.Dispatch('Lotus.NotesSession')
session.Initialize(r'pppppppp')
db = session.GetDatabase('',r'dddddddd.nsf')
view = db.GetView(r'vvvvvvvv')
doc = view.GetFirstDocument()
print doc.GetFirstItem('iiiiii').Values

domino return string as unicode

但是我在第二行已经有一个错误。

你知道我应该怎么做吗? 谢谢,

【问题讨论】:

    标签: python lotus-notes


    【解决方案1】:

    您需要在运行 Python 代码的 Windows 计算机上安装 Lotus (IBM/HCL) Notes。如果已经安装,则需要正确注册。如果您的 Python 环境是 64 位,请注意,直到最近的版本,Lotus Notes 客户端代码才只有 32 位。在某些旧版本中,安装程序可能没有正确注册类,因此必须使用 regsvr32 命令来执行此操作。 StackOverflow 上(可能)有一些旧线程涵盖了这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-04
      • 1970-01-01
      • 2012-11-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多