How can I import win32com.client to my app ?

1,210 views
Skip to first unread message

zhao peng

unread,
Aug 26, 2008, 4:03:44 AM8/26/08
to web...@googlegroups.com
Hi All,
I write "import win32com.client" in a controller function and got the
error:ImportError: No module named win32com.client.
How can i import win32com.client to my app?

Thanks,
Peng

Massimo Di Pierro

unread,
Aug 26, 2008, 4:35:40 AM8/26/08
to web...@googlegroups.com
I assume you are running the source distribution. Probably you need to install the Mark Hammond win32 extensions. win32com does not come with Python.

Massimo

On Aug 26, 2008, at 3:03 AM, zhao peng wrote:

win32com.client


zhao peng

unread,
Aug 26, 2008, 5:29:11 AM8/26/08
to web...@googlegroups.com
Yes,this code works well in PythonWin.Is there a way I can use this
model in web2py?
Thanks,
Peng

Massimo Di Pierro

unread,
Aug 26, 2008, 8:24:21 AM8/26/08
to web...@googlegroups.com
You need to install this:

https://sourceforge.net/projects/pywin32/

Massimo

Reply all
Reply to author
Forward
0 new messages