gridmap icon indicating copy to clipboard operation
gridmap copied to clipboard

runpy.py:125: RuntimeWarning: 'gridmap.runner' found in sys.modules

Open JeWeizhong opened this issue 7 years ago • 2 comments

python3.6/runpy.py:125: RuntimeWarning: 'gridmap.runner' found in sys.modules after import of package 'gridmap', but prior to execution of 'gridmap.runner'; this may result in unpredictable behaviour warn(RuntimeWarning(msg))

I don't know how to remove this warning,but the program is looks like running normally .

JeWeizhong avatar Aug 23 '18 00:08 JeWeizhong

Hi, I'm working with a long-ago forked version, and I'm getting exactly this warning. I'm curious if the issue was ever resolved? If not, any suggestions? I imagine it arises due to this: https://github.com/pygridtools/gridmap/blob/97b677e5176a4c6b04a1f683896a04d325cc486c/gridmap/job.py#L825

Thanks!

dpoznik avatar Jan 15 '21 01:01 dpoznik

I also have this problem. These resources might have some information on how to fix it:

  • https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning
  • https://bugs.python.org/issue27487
  • https://github.com/python/cpython/issues/71674

rkhaja avatar Jun 16 '22 13:06 rkhaja