[python-win32] Problems importing win32com
Mark Hammond
skippy.hammond at gmail.com
Mon Aug 17 09:04:13 CEST 2009
On 16/08/2009 8:14 AM, Uri Faber wrote:
> Hi,
>
> I have installed pywin32-214.win32 on Vista. Python Version 2.5.2.
>
> PYTHONPATH is set to
> C:\Python25\Lib\site-packages\win32;C:\Python25\Lib\site-packages;
Don't set PYTHONPATH - if you think you need to, something else has gone
wrong which may be the problem you are actually chaing.
>
> when I try to import win32com I get the following traceback:
>
>>>> import win32com
> Traceback (most recent call last):
> File "<stdin>", line 1, in<module>
> File "C:\Python25\Lib\site-packages\win32com\__init__.py", line 5, in
> <module>
> import win32api, sys, os
> File
> "c:\Python25\Lib\site-packages\isapi\test\build\bdist.win32\winexe\temp\win32api.py",
You should most certainly *not* be loading win32api via that path, but
it isn't at all obvious how it happens that you are.
Cheers,
Mark
More information about the python-win32
mailing list