En Wed, 27 Aug 2008 21:17:22 -0300, Vistro <vistro@vistro. netescribi�:
Reinstalling the pywin32 package should fix that, I presume.
In fact that __import_whatev er function does a rather complex task, it
must ensure that the *right* pywintypes25.dl l (or pythoncom25.dll ) is
loaded, even when it's implicitely loaded.
--
Gabriel Genellina
Hey, there. I've been coding in python for about three weeks now. I have
made basic games, tools to check forum PMs for me, and other general
utilities with python, but I'm now encountering problems.
>
>
I want to do that, and I have installed both sets needed from source
forge,
but I always get this issue when I run the code, and there isn't a single
listing on the internet that addresses this.
>
****
>
Traceback (most recent call last):
File "C:/Documents and Settings/Guest Editor/Desktop/key.py", line 3,
in
<module>
import pythoncom
File "C:\Python25\li b\site-packages\python com.py", line 2, in <module>
import pywintypes
ImportError: No module named pywintypes
>
I've installed pythoncom right from the box. I don't know whats wrong,
but
I'm sure it has something to do with my stupidity.
made basic games, tools to check forum PMs for me, and other general
utilities with python, but I'm now encountering problems.
>
>
I want to do that, and I have installed both sets needed from source
forge,
but I always get this issue when I run the code, and there isn't a single
listing on the internet that addresses this.
>
****
>
Traceback (most recent call last):
File "C:/Documents and Settings/Guest Editor/Desktop/key.py", line 3,
in
<module>
import pythoncom
File "C:\Python25\li b\site-packages\python com.py", line 2, in <module>
import pywintypes
ImportError: No module named pywintypes
>
I've installed pythoncom right from the box. I don't know whats wrong,
but
I'm sure it has something to do with my stupidity.
BUT, here is the strangest part.
>
# Magic utility that "redirects" to pythoncomxx.dll
import pywintypes
pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals())
>
>
That is ALL that pythoncom.py seems to be. ALL that.
>
I think that it's trying to import something, THEN tell the interpreter
where it is. That seems kinda stupid.
>
# Magic utility that "redirects" to pythoncomxx.dll
import pywintypes
pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals())
>
>
That is ALL that pythoncom.py seems to be. ALL that.
>
I think that it's trying to import something, THEN tell the interpreter
where it is. That seems kinda stupid.
must ensure that the *right* pywintypes25.dl l (or pythoncom25.dll ) is
loaded, even when it's implicitely loaded.
--
Gabriel Genellina