Cannot start RPy - need win32api

Discussion in 'Python' started by tkpmep@hotmail.com, Apr 11, 2008.

  1. Guest

    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
    , Apr 11, 2008
    #1
    1. Advertising

  2. On Apr 11, 11:47 am, 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
    Mike Driscoll, Apr 11, 2008
    #2
    1. Advertising

  3. Guest

    Thanks a mill - works like a charm!
    , Apr 11, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. malv
    Replies:
    0
    Views:
    332
  2. malv
    Replies:
    0
    Views:
    295
  3. Bo Peng
    Replies:
    1
    Views:
    457
    Bo Peng
    Jan 9, 2006
  4. jason

    RPy / R

    jason, Feb 7, 2006, in forum: Python
    Replies:
    4
    Views:
    559
    Eddie
    Feb 12, 2006
  5. Frank
    Replies:
    0
    Views:
    315
    Frank
    Mar 27, 2007
Loading...

Share This Page