Re: [GRASS-dev] cProfile makes TypeError
Dear Glynn, thank you for the answer. It was picking another glob.py indeed (experimental one that I have forgotten in my module folder). It works fine now. Best regards, Eva ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] cProfile makes TypeError
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___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] cProfile makes TypeError
Dear all, 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) I have updated my GRASS to the newest version already, but it seems to do the same error. Thank you in advance for any advice. Best regards, Eva [1] https://grasswiki.osgeo.org/wiki/Tools_for_Python_programming#cProfile_profiling_tool ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev