Cannot start RPy - need win32api

T

tkpmep

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
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
 
M

Mike Driscoll

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


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top