runpy.py:125: RuntimeWarning: 'gridmap.runner' found in sys.modules
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 .
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!
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