I input “import pythoncom” into Sublime text2 (in python3 mode), after biulding it reports that:
Traceback (most recent call last):
File “D:\Python\mytest\test2.py”, line 1, in
import pythoncom
File “D:\Python\lib\site-packages\pythoncom.py”, line 2, in
import pywintypes
File “D:\Python\lib\site-packages\win32\lib\pywintypes.py”, line 124, in
import_pywin32_system_module(“pywintypes”, globals())
File “D:\Python\lib\site-packages\win32\lib\pywintypes.py”, line 98, in import_pywin32_system_module
raise ImportError(“No system module ‘%s’ (%s)” % (modname, filename))
ImportError: No system module ‘pywintypes’ (pywintypes34.dll)
[Finished in 2.3s with exit code 1]
The error ever appeared in IDLE of python, but now it works since I append the directory of pywintypes34.dll into the path of the system (winxp). ( see the following figure)
(the url of the figure:http://f.hiphotos.baidu.com/zhidao/pic/item/ca1349540923dd548bb6527fd409b3de9d8248e4.jpg)