On Tue, 8 Jan 2002, Trent Mick wrote:

> > 2. What other tools or procedures can I use to delve further into
> >    this problem to track down its cause myself?
>
> You could look at the Python profiler and compare the profile for a
> run on the two machines.

Well, the profiler shows big differences for the runs on the two
machines, of course, but all the big-ticket items are entries which
point to a row in a python module which says 'import ....'
Unfortunately, the profiler is just profiling python code, not the
Python engine underneath.  So I've downloaded the source code from
python.org and I'm doing my own manual instrumentation.  So far it looks
as if the bottleneck is not in the actual loading but in locating the
modules.

> You might also want to ping [EMAIL PROTECTED] There might be
> some other people there who have had a similar experience.

Good suggestion.  I'll give them a try, too.

> > 3. What other information can I provide about our configuration
> >    to provide relevant clues?
>
> You said PYTHONPATH is the same. How about sys.path in the running
> Python process. Is there a network path on sys.path?

No.  Here are the elements in sys.path (including an empty string at the
front):

c:\winnt\system32
d:\cdr\lib\python
d:\python\pythonwin
d:\python\win32
d:\python\win32\lib
d:\python
d:\python\dlls
d:\python\lib
d:\python\lib\plat-win
d:\python\lib\lib-tk
d:\python\ppm

There is one odd discrepancy between the (newer) problem machine and the
development machine for sys.path: on the development machine the second
element (c:\winnt\system32) is not present.  Removing it does not
eliminate the slow module loading, though.

> On Tue, Jan 08, 2002 at 07:53:57AM -0500, Schollnick, Benjamin wrote:
> > This is probably a complete red herring....
> >
>
> I am inclined to agree.

Me, too.  For one thing, I had not been able to eliminate the problem by
setting the search path to a single directory (d:\python).  For another,
there aren't any extra python*.dll files on the machine.

Thanks very much for the tips.  If any other thoughts come to mind,
please give a holler.  I'll report back if I hit paydirt.

-- 
Bob Kline
mailto:[EMAIL PROTECTED]
http://www.rksystems.com

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to