Problems with gencache on Windows NT
Mark Hammond
MarkH at ActiveState.com
Thu May 3 20:27:01 EDT 2001
Don Dwiggins wrote:
> I'm running Python 2.0 under Windows NT 4.0. I've written a module that
> uses SQLDMO and calls gencache.EnsureModule (generated by makepy -i, as per
> the instructions) to force early binding. I've run into the following
> problem when I run the program and there's no module for SQLDMO in gen_py:
>
> When I run the .py file (double-clicking from Windows Explorer), I see
> dialogs showing that the makepy process is running; then the dialogs
> disappear, and I get the first prompt from my program (via raw_input) in the
> command window. At this point, the command window is inactive; I can focus
> on the window with a pair of Alt-Tabs, but no cursor shows and I can't type
> into it (it doesn't even refresh if I move another window over it). A look
> at Task Manager shows that there are no "busy" processes.
>
> I can finally kill the thing by killing Python.exe with Task Manager
> (nothing less suffices). After this, the generated files are properly
> present in gen_py, and I can run the program successfully. I've tried this
> on two machines with the same results.
>
> Any good words appreciated,
It is probably the GUI progress indicator.
Try adding "bForDemand=1" to the EnsureModule call. This should make a
much faster generation process, and as a result it makes no attempt to
display a GUI dialog.
Mark.
More information about the Python-list
mailing list