Sadly, there are about 250 matches to that call within all the libraries packaged in my application! I did some more logging. The last time subprocess.run() gets called before a second instance of my application is initialized is in the following custom logging I did...
*** check_output command called by _syscmd_ver at platform.py:284 *** run command called by check_output at subprocess.py:480 I looked up _syscmd_ver in platform.py. But, nowhere in there do I see it using sys.executable. Here's the relevant portion of _syscmd_ver() import subprocess for cmd in ('ver', 'command /c ver', 'cmd /c ver'): try: info = subprocess.check_output(cmd, stdin=subprocess.DEVNULL, stderr=subprocess.DEVNULL, text=True, encoding="locale", shell=True) except (OSError, subprocess.CalledProcessError) as why: #print('Command %s failed: %s' % (cmd, why)) continue else: break else: return system, release, version On Tue, Sep 26, 2023 at 11:24 AM 'Chris Barker' via PyInstaller < pyinstaller@googlegroups.com> wrote: > On Tue, Sep 26, 2023 at 12:52 AM bwoodsend <bwoods...@gmail.com> wrote: > >> That sounds like a red herring. It’s specifically >> subprocess.run([sys.executable, >> ...]) that we’re interested in — any other command should run fine under >> PyInstaller. >> > indeed -- a search for "sys.executable" may find the culprit. > > -CHB > > -- > > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > chris.bar...@noaa.gov > > -- > You received this message because you are subscribed to a topic in the > Google Groups "PyInstaller" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pyinstaller/Z76GgQlCruY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > pyinstaller+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyinstaller/CALGmxEJ7L0MzFa6OKxjopLfDVQurcXeG%2BT%2BQMFFT3rZc%3D25pFQ%40mail.gmail.com > <https://groups.google.com/d/msgid/pyinstaller/CALGmxEJ7L0MzFa6OKxjopLfDVQurcXeG%2BT%2BQMFFT3rZc%3D25pFQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CAGu_XGgEJpH77zh-JRxfXpH2yPgU0gbrpET9SxGu2UEY1G8%2BSw%40mail.gmail.com.