Mark, thanks for the reply. I am very glad to hear that you'll be
releasing the fix soon. I forgot to mention in my previous mail but I
had already tried taking out the "mbcs" encoding and it had not worked.
After your mail I tried once more. It doesn't crash the same way; now I
get an uncaught exception: Traceback (most recent call last):  File "D:\Automation\\run.py", line 3, in ?  run()  File "D:\Automation\generate.py", line 440, in run  i.App.visible = False  File "C:\Python24\Lib\site-packages\win32com\client\__init__.py", line 462, in __setattr__  raise AttributeError, "'%s' object has no attribute '%s'" % (repr(self), attr) AttributeError: '<win32com.gen_py.Microsoft Word 9.0 Object Library._Application instance at 0x17041488>' object has no attribute 'visible' The module is imported correctly but now the attributes aren't there. I thought this could be of help while preparing the fix. Looking forward to the release. By the way, thanks for this wonderful package. I owe you a lot. Your work saves me countless hours. I hope to meet you one day and buy you the finest meal :) Bye, Oktay Mark Hammond wrote: For now, you could take the "mbcs" encoding line from the generated file. This has been fixed here and will be in build 204 (along with a fix for the "thousands of registry entries when using the debugger" (yay!). I hope to have this out within a week. The new build will also have a new "sspi" module from Roger Upole which gives us full access to the Windows security system, which is very cool (eg, automatically exchange credentials with IIS, etc)Mark-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of oktaysafak Sent: Thursday, 10 March 2005 12:09 AM To: python-win32@python.org Subject: [python-win32] makepy problem with Win XP and Word 2000 Hello everyone, My problem: Thanks to the absolutely fabulous win32com package by Mark Hammond, I have been using Python for MS Word automation for a long time. My script was working perfectly until I upgraded to Python 2.4 (from 2.3) and Win XP (from Win Millenium). It's still working perfectly but it has substantially slowed down since the upgrade. (But very rarely, it works as fast as before - quite puzzling) What I have tried: I tried to use the makepy script on Word but it fails. It successfully generates the .py file under genpy directory but it crashes during importing the generated file. I googled on the subject and scanned the recent archives of this list and but couldn't find anything useful. Mark Hammond has suggested using the -d switch with makepy but it also fails in the same way. Someone else has written that this problem is caused by lines longer than 512 chars in the generated file and has suggested to replace some default arguments on those lines with shorter ones. I couldn't do it because there are too many lines over 512 chars in the generated file. Any ideas on what's causing this and how to successfully run makepy on MS Word (or any other info for solving this problem)? Any hints would be very much appreciated. Oktay _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 |
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32