<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">is there any way to workaround that? i.e modify the __init__ of PyQt5 inside the build-win-32 sysroot folder?<div class=""><br class=""></div><div class="">Thanks<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 22 Aug 2019, at 11:17, Grzegorz Bokota <<a href="mailto:g.bokota@mimuw.edu.pl" class="">g.bokota@mimuw.edu.pl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">This is bug in __init__ of PyQt5 for windows in function find_qt. You need to add second copy of this library in specific path. <br class=""></div><div class=""><br class=""></div><div class="">Grzegorz Bokota<br class=""></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 22 sie 2019 o 11:56 Mạnh Tú Vũ <<a href="mailto:glmanhtu@gmail.com" class="">glmanhtu@gmail.com</a>> napisał(a):<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi Phil,<div class=""><br class=""></div><div class="">I have already built qt-everywhere with pyqtdeploy-sysroot and I can see those .lib files in my sysroot-win-32/qt/lib. Is that not enough or I have to build something else?</div><div class=""><br class=""></div><div class=""><span id="cid:16cb8d0f686db2e846e1"><69366583_2626188204071919_3291607272878243840_n.jpeg></span></div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 22 Aug 2019, at 10:28, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank" class="">phil@riverbankcomputing.com</a>> wrote:</div><br class="gmail-m_3858573603532732017Apple-interchange-newline"><div class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline" class="">On 22/08/2019 10:04, Mạnh Tú Vũ wrote:</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class="">Hello,<br class="">I'm trying to build my PyQt application on Windows and I'm not sure that I<br class="">understand the way it works. I have built my application into a .exe binary<br class="">file but when I was trying to run, it threw an exception of:<br class="">C:\boatswain\boatswain\build-win-32>release\Boatswain.exe<br class=""><blockquote type="cite" class="">Log file:<br class=""><blockquote type="cite" class="">C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log<br class=""></blockquote>Traceback (most recent call last):<br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/boatswain/__init__.py", line 1, in <module><br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/boatswain/main.py", line 22, in <module><br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 953, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 219, in _call_with_frames_removed<br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/PyQt5/__init__.py", line 41, in <module><br class="">File ":/PyQt5/__init__.py", line 33, in find_qt<br class="">ImportError:<br class="">unable to find Qt5Core.dll on PATH<br class=""></blockquote>I suspect, the Qt application was trying to find Qt5Core.dll library,<br class="">however, I see in the Makefile.Release, we had already<br class="">included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why<br class="">do we need the .dll library again?<br class=""><blockquote type="cite" class="">LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib<br class="">/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib<br class="">...<br class=""></blockquote>I have tried to run the app using Qt command line and see it worked.<br class="">Because the required libraries are already included in the PATH env. So,<br class="">does it mean that I have to distribute the .dll libraries with my<br class="">application as well?<br class=""></blockquote><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline" class="">If you haven't built a static version of the Qt libraries then yes.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline" class="">Phil</span></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank" class="">PyQt@riverbankcomputing.com</a><br class="">
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank" class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></body></html>