[GRASS-dev] cProfile makes TypeError

Glynn Clements glynn at gclements.plus.com
Wed Jun 8 13:58:12 PDT 2016

Eva Stopkov√° wrote:

> I would like to ask for advice. I am trying to make a visualization of the
> script process using cProfile according to [1], but it gives me an error:
> File
> "~/grass7/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/ctypes_loader.py",
> line 187, in _create_ld_so_cache
>     for path in glob.glob("%s/*.s[ol]*" % dir):
> TypeError: __init__() takes exactly 4 arguments (2 given)

This seems to suggest that it's picking up some other "glob" module,
rather than the one in the standard library.

Does running the script without using cProfile work?

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list