Hello! I had to switch from Windows XP to Windows 7 and redo my python installation there. I need to generate COM modules for Microsoft products I use.
When running makepy on Windows 7 / Python 2.7.3 (64bit) / pywin32-218.win-amd64-py2.7.exe for Microsoft Access 12, I get: >>> Generating to >>> D:\bin\Python27\lib\site-packages\win32com\gen_py\4AFFC9A0-5F99-101B-AF4E-00AA003F0F07x0x9x0.py Building definitions from type library... Failed to execute command: from win32com.client import makepy;makepy.main() Traceback (most recent call last): File "D:\bin\Python27\Lib\site-packages\pythonwin\pywin\framework\toolmenu.py", line 103, in HandleToolCommand exec "%s\n" % pyCmd File "<string>", line 1, in <module> File "D:\bin\Python27\lib\site-packages\win32com\client\makepy.py", line 380, in main GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) File "D:\bin\Python27\lib\site-packages\win32com\client\makepy.py", line 279, in GenerateFromTypeLibSpec gen.generate(fileUse, bForDemand) File "D:\bin\Python27\lib\site-packages\win32com\client\genpy.py", line 819, in generate self.do_generate() File "D:\bin\Python27\lib\site-packages\win32com\client\genpy.py", line 882, in do_generate oleItems, enumItems, recordItems, vtableItems = self.BuildOleItemsFromType() File "D:\bin\Python27\lib\site-packages\win32com\client\genpy.py", line 757, in BuildOleItemsFromType for type_info_tuple in self.CollectOleItemInfosFromType(): File "D:\bin\Python27\lib\site-packages\win32com\client\genpy.py", line 679, in CollectOleItemInfosFromType attr = info.GetTypeAttr() com_error: (-2147312566, 'Fehler beim Laden der Typbibliothek/DLL.', None, None) The other two com modules (ADO and Excel) had no problem. What could that be? With best regards Hartmut Niemann
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32