Cannot start RPy - need win32api

Mike Driscoll kyosohma at gmail.com
Fri Apr 11 13:20:56 EDT 2008


On Apr 11, 11:47 am, tkp... at hotmail.com wrote:
> I'm running Python 2.5.2 on Windows XP and need to interface with R,
> so I downloaded the R 2.6.2 statistical package and installed it, and
> did the same for RPy 1.02 (i made sure I got the version for Python
> 2.5 and R 2.62.). When I go to the Python command line and type
>
> >>> from rpy import *
>
> I get the following error message:
>
> Traceback (most recent call last):
>   File "<pyshell#7>", line 1, in <module>
>     from rpy import *
>   File "C:\Python25\lib\site-packages\rpy.py", line 88, in <module>
>     import win32api
> ImportError: No module named win32api
>
>
>
> What on earth is win32api, where can I find it, and where ought I to
> put it?
>
> Thanks in advance
>
> Thomas Philips

It's part of the PyWin32 package, which exposes a lot of the win32
processes to Python manipulation. You can get it here:
https://sourceforge.net/projects/pywin32/

And documentation is here: http://aspn.activestate.com/ASPN/docs/ActivePython/2.5/pywin32/win32_modules.html

Mike



More information about the Python-list mailing list