strace of python shows nonsense

Dieter Maurer dieter at
Tue Jan 15 08:41:50 CET 2013

Joep van Delft <joepvandelft at> writes:

> ...
> What puzzles me, is the amount of errors for open and stat64.

The high number of errors comes from Python's import logic:
when Python should import a module/package (not yet imported),
it looks into each member on "sys.path" for about 6 different potential
filename spellings corresponding to the module -- until it succeeds
or has tried all members. Most such filesystem lookups will fail -
giving a high number of "stat" errors.

More information about the Python-list mailing list