cannot import expat from xml.parsers

63 views
Skip to first unread message

PoltronG

unread,
May 5, 2012, 12:07:50 PM5/5/12
to pygooglevoice
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

Hi, I'm trying to wrap pygooglevoice with a pretty C# Winform app
using IronPython. I'm VERY new to python and I've overcome a few
hurdles, but it looks like I need an experts eyes (or a beginners!)
(or an 'expats' eyes) to assist me with this one.

I get the above error when executing the IronPython ipy64.exe as
follows:
ip64.exe "c:\Users\nick\Downloads\pygooglevoice-0.5\googlevoice
\markasread.py"

The contents of markasread.py are as follows:
from googlevoice import Voice,util

voice = Voice()
voice.login('emailA...@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)
Reply all
Reply to author
Forward
0 new messages