【发布时间】:2012-05-05 16:48:24
【问题描述】:
我正在尝试用漂亮的 C# Winform 应用程序包装 pygooglevoice 使用 IronPython。我对 python 很陌生,我已经克服了一些 障碍,但看起来我需要专家的眼睛(或初学者!) (或“外国人”的眼睛)来帮助我解决这个问题。
File "..\googlevoice\util.py", line 3,
in <module>
ImportError: cannot import expat from xml.parsers
The actual code here is:
from xml.parsers.expat import ParserCreate
执行 IronPython ipy64.exe 时出现上述错误 如下:
ip64.exe "c:\Users\nick\Downloads\pygooglevoice-0.5\googlevoice\markasread.py
markasread.py的内容如下:
from googlevoice import Voice,util
voice = Voice()
voice.login('emailAddr...@gmail.com', 'password here')
while True :
folder = voice.search('is:unread')
if folder.totalSize <= 0 :
break
util.print_(folder.totalSize)
for message in folder.messages:
util.print_(message)
message.mark(1)
【问题讨论】:
标签: python ironpython google-voice