getting errors in import (win32com)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • learnerofpython
    New Member
    • Nov 2006
    • 14

    getting errors in import (win32com)

    I am new to python
    whenever i import win32com.client i get the following error message:


    RuntimeWarning: Python C API version mismatch for module win32api: This Python has API version ...

    how to decide which build (e.g. 201/202/203/...) of win32com.client has to be install
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by learnerofpython
    I am new to python
    whenever i import win32com.client i get the following error message:


    RuntimeWarning: Python C API version mismatch for module win32api: This Python has API version ...

    how to decide which build (e.g. 201/202/203/...) of win32com.client has to be install
    I've got
    Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
    and
    Code:
    import win32com.client
    works. I believe that any complete install will update import win32com.client . I can also try 2.5 if that's where you are having trouble.

    Comment

    • learnerofpython
      New Member
      • Nov 2006
      • 14

      #3
      Thanks bartonc
      i installed a patch of pywin32 module.it now works

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by learnerofpython
        Thanks bartonc
        i installed a patch of pywin32 module.it now works
        Any time! Can you tell us where you found the patch and what version it is for?

        Comment

        • reginpc
          New Member
          • Nov 2006
          • 2

          #5
          Hi,
          Please anyone say how to find win32api.py file and where its present??

          i am Getting the below error...

          from win32com.shell import shell
          File "C:\Python25\Li b\site-packages\win32c om\__init__.py" , line 5, in <module>
          import win32api, sys, os
          ImportError: No module named win32api

          Comment

          Working...