<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px; ; ">Even further to my last,</div><div style="font-family:Helvetica,Arial;font-size:13px; ; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ; ">Doesn’t seem to matter whether I link against the .lib file generated as part of the sysroot or against the .dll belonging to the host python: exactly the same result.</div><div style="font-family:Helvetica,Arial;font-size:13px; ; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ; ">Thanks, Rob</div> <br> <div class="gmail_signature"></div> <br><p class="airmail_on">On 30 July 2019 at 14:38:30, Rob Kent (<a href="mailto:rob@gulon.co.uk">rob@gulon.co.uk</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>
<title></title>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">Further
to my last,</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">It seems
to me that ‘_abc’ is a module that is compiled from C and therefore
should be included in the python shared lib (is that correct?) and
‘_py_abc’ is a fallback pure python implementation that is not
being included as it shouldn’t be needed. If thats’s the case: why
can’t my application find the ‘abc’ module in the python lib? Where
should I start to look for my misconfiguration?</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">Thanks,
Rob</div>
<br>
<div class="gmail_signature"></div>
<br>
<p class="airmail_on">On 30 July 2019 at 13:16:23, Rob Kent
(<a href="mailto:rob@gulon.co.uk">rob@gulon.co.uk</a>) wrote:</p>
<blockquote type="cite" class="clean_bq">
<div>
<div>
<div style="font-family:Helvetica,Arial;font-size:13px; ;">
<div style="margin: 0px;"><span>HI there,</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>I’m creating a dead simple
application to test a pyqtdeploy sysroot. Everything builds fine,
but when I run it I get the following error:</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>Fatal Python error:
init_sys_streams: can't initialize sys standard
streams</span></div>
<div style="margin: 0px;"><span>Traceback (most recent call
last):</span></div>
<div style="margin: 0px;"><span> File ":/abc.py", line 105,
in <module></span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
965, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>ModuleNotFoundError: No module
named '_abc'</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>During handling of the above
exception, another exception occurred:</span></div>
<div style="margin: 0px;"><span><br></span></div>
<div style="margin: 0px;"><span>Traceback (most recent call
last):</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
967, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
668, in _load_unlocked</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
638, in _load_backward_compatible</span></div>
<div style="margin: 0px;"><span> File ":/io.py", line 52, in
<module></span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
967, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
668, in _load_unlocked</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
638, in _load_backward_compatible</span></div>
<div style="margin: 0px;"><span> File ":/abc.py", line 109,
in <module></span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
983, in _find_and_load</span></div>
<div style="margin: 0px;"><span> File "bootstrap.py", line
965, in _find_and_load_unlocked</span></div>
<div style="margin: 0px;"><span>ModuleNotFoundError: No module
named '_py_abc'</span></div>
</div>
<div><span><br></span></div>
<div><span>When I check the listed frozen files from
pyqtdeploy-build although abc.py is there, neither _abc.py or
_py_abc are included, although they are there in the lib
directory.</span></div>
<div><span><br></span></div>
<div><span>My setup is:</span></div>
<div><span><br></span></div>
<div><span>Windows 10</span></div>
<div><span>MSVC 2017</span></div>
<div><span>Python 3.7.2</span></div>
<div><span>Qt 5.13.0</span></div>
<div><span>Sip 4.19.18</span></div>
<div><span>PyQt 5.13.0</span></div>
<div><span><br></span></div>
<div><span>My pyqtdeploy project file is set to use the windows
shared library.</span></div>
<div><span><br></span></div>
<div><span>Any help gratefully appreciated,</span></div>
<div><span><br></span></div>
<div><span>Rob</span></div>
<div><span><br></span></div>
<div class="gmail_signature"></div>
<span>_______________________________________________<br>
PyQt mailing list PyQt@riverbankcomputing.com<br>
https://www.riverbankcomputing.com/mailman/listinfo/pyqt<br></span></div>
</div>
</blockquote>
</div></div></span></blockquote></body></html>