<div dir="ltr">Glad to hear you reported it. I was out of touch with the list for a couple of years there.<div><br></div><div>I can't catch it since it's bugsnag that is making the call. So I created this somewhat dirty workaround:</div><div><br></div><div><div style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">    <span style="color:rgb(197,134,192)">import</span> <span style="color:rgb(78,201,176)">sysconfig</span></div><font color="#d4d4d4"><span style="background-color:rgb(30,30,30)"><br></span></font><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">    <span style="color:rgb(106,153,85)"># Python-3.8+ patch sysconfig._init_non_posix() to support _imp.extension_suffixes() == [] for pyqtdeploy</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">    <span style="color:rgb(86,156,214)">def</span> <span style="color:rgb(220,220,170)">_init_non_posix_pyqtdeploy</span>(<span style="color:rgb(156,220,254)">vars</span>):</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(206,145,120)">"""Initialize the module as appropriate for NT"""</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(106,153,85)"># set basic install directories</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(197,134,192)">import</span> <span style="color:rgb(78,201,176)">_imp</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'LIBDEST'</span>] = <span style="color:rgb(78,201,176)">sysconfig</span>.<span style="color:rgb(220,220,170)">get_path</span>(<span style="color:rgb(206,145,120)">'stdlib'</span>)</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'BINLIBDEST'</span>] = <span style="color:rgb(78,201,176)">sysconfig</span>.<span style="color:rgb(220,220,170)">get_path</span>(<span style="color:rgb(206,145,120)">'platstdlib'</span>)</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'INCLUDEPY'</span>] = <span style="color:rgb(78,201,176)">sysconfig</span>.<span style="color:rgb(220,220,170)">get_path</span>(<span style="color:rgb(206,145,120)">'include'</span>)</div><div style=""><font color="#d4d4d4"><span style="background-color:rgb(30,30,30)">        </span></font><span style="color:rgb(156,220,254);background-color:rgb(30,30,30)">vars</span><font color="#d4d4d4"><span style="background-color:rgb(30,30,30)">[</span></font><span style="color:rgb(206,145,120);background-color:rgb(30,30,30)">'EXT_SUFFIX'</span><font color="#d4d4d4"><span style="background-color:rgb(30,30,30)">] = </span></font><span style="color:rgb(86,156,214);background-color:rgb(30,30,30)">None # Here is the fix - don't call </span><span style="color:rgb(70,224,192);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre-wrap">_imp.</span><span style="color:rgb(99,99,36);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-size:14px;white-space:pre-wrap">extension_suffixes()</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'EXE'</span>] = <span style="color:rgb(206,145,120)">'.exe'</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'VERSION'</span>] = <span style="color:rgb(78,201,176)">sysconfig</span>._PY_VERSION_SHORT_NO_DOT</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'BINDIR'</span>] = <span style="color:rgb(78,201,176)">os</span>.<span style="color:rgb(78,201,176)">path</span>.<span style="color:rgb(220,220,170)">dirname</span>(<span style="color:rgb(78,201,176)">sysconfig</span>._safe_realpath(<span style="color:rgb(78,201,176)">sys</span>.<span style="color:rgb(156,220,254)">executable</span>))</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(156,220,254)">vars</span>[<span style="color:rgb(206,145,120)">'TZPATH'</span>] = <span style="color:rgb(206,145,120)">''</span></div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">    <span style="color:rgb(197,134,192)">if</span> <span style="color:rgb(78,201,176)">sys</span>.<span style="color:rgb(156,220,254)">version_info</span>[<span style="color:rgb(181,206,168)">1</span>] > <span style="color:rgb(181,206,168)">7</span>:</div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30)">        <span style="color:rgb(78,201,176)">sysconfig</span>._init_non_posix = <span style="color:rgb(220,220,170)">_init_non_posix_pyqtdeploy</span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 7, 2022 at 3:54 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/11/2022 20:16, Patrick Stinson wrote:<br>
> Looks like that line is added to Lib/sysconfig.py in Python-3.8.<br>
> <br>
> _imp.extension_suffixes() returns [] for pyqtdeploy,<br>
> so sysconfig._init_non_posix() will always fail.<br>
<br>
It's a straightforward Python bug which I have reported. It only affects <br>
Windows with dynamic loading disabled. Can you work around it by <br>
catching and ignoring the exception?<br>
<br>
Phil<br>
</blockquote></div>