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] Behalf Of oktaysafak > Sent: Thursday, 10 March 2005 12:09 AM > To: [email protected] > 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 > [email protected] > http://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
