我在使用win32从Python连接到Lotus Notes时遇到问题com.客户端. 在
我使用以下代码:
import win32com.client
import csv # imports the csv module
import sys # imports the sys module
import re
notesServer = "AALMBX01/Server/..."
notesPass = "PASS"
#Connect to notes database on server
notesSession = win32com.client.Dispatch('Lotus.NotesSession')
notesSession.Initialize(notesPass)
db_name = 'mail\iizs.nsf'
db = notesSession.getDatabase(notesServer, db_name)
view = db.GetView("($All)")
doc = view.getFirstDocument()
我得到以下错误:
(-2147352567, 'Exception occurred.', (0, u'NotesSession', u'Notes error: Wrong Password. (Passwords are case sensitive - be sure to use correct upper and lower case.)'
还尝试将密码留空并在接口中禁用“请求LN应用程序的密码”。密码为空时,我收到以下错误消息:
(-2147352567, 'Exception occurred.', (0, u'NotesDatabase', u'Database AALMBX01/Server/...!!mail\iizs.nsf has not been opened yet'
我试过以下方法:
错误还是一样的。试着复制用户id到其中一个系统文件夹(system32)-也没有帮助。在
有什么建议吗?在
啊!!在
另外,我遇到的一个问题是网络驱动器-如果注释.INI文件包含网络路径,请尝试将其删除并添加到Python代码中:
^{pr2}$相关问题 更多 >
编程相关推荐