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

Reply via email to