<div dir="ltr"><div>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></div><div><br></div><div>Grzegorz Bokota<br></div><br></div><br><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">glmanhtu@gmail.com</a>> napisał(a):<br></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;">Hi Phil,<div><br></div><div>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><br></div><div><img id="gmail-m_3858573603532732017AEB98760-4FF6-4406-971C-D016976B67ED" src="cid:16cb8d0f686db2e846e1"></div><div><br><div><br><blockquote type="cite"><div>On 22 Aug 2019, at 10:28, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> wrote:</div><br class="gmail-m_3858573603532732017Apple-interchange-newline"><div><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">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"><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">Hello,<br>I'm trying to build my PyQt application on Windows and I'm not sure that I<br>understand the way it works. I have built my application into a .exe binary<br>file but when I was trying to run, it threw an exception of:<br>C:\boatswain\boatswain\build-win-32>release\Boatswain.exe<br><blockquote type="cite">Log file:<br><blockquote type="cite">C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log<br></blockquote>Traceback (most recent call last):<br>File "bootstrap.py", line 983, in _find_and_load<br>File "bootstrap.py", line 967, in _find_and_load_unlocked<br>File "bootstrap.py", line 668, in _load_unlocked<br>File "bootstrap.py", line 638, in _load_backward_compatible<br>File ":/boatswain/__init__.py", line 1, in <module><br>File "bootstrap.py", line 983, in _find_and_load<br>File "bootstrap.py", line 967, in _find_and_load_unlocked<br>File "bootstrap.py", line 668, in _load_unlocked<br>File "bootstrap.py", line 638, in _load_backward_compatible<br>File ":/boatswain/main.py", line 22, in <module><br>File "bootstrap.py", line 983, in _find_and_load<br>File "bootstrap.py", line 953, in _find_and_load_unlocked<br>File "bootstrap.py", line 219, in _call_with_frames_removed<br>File "bootstrap.py", line 983, in _find_and_load<br>File "bootstrap.py", line 967, in _find_and_load_unlocked<br>File "bootstrap.py", line 668, in _load_unlocked<br>File "bootstrap.py", line 638, in _load_backward_compatible<br>File ":/PyQt5/__init__.py", line 41, in <module><br>File ":/PyQt5/__init__.py", line 33, in find_qt<br>ImportError:<br>unable to find Qt5Core.dll on PATH<br></blockquote>I suspect, the Qt application was trying to find Qt5Core.dll library,<br>however, I see in the Makefile.Release, we had already<br>included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why<br>do we need the .dll library again?<br><blockquote type="cite">LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib<br>/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib<br>...<br></blockquote>I have tried to run the app using Qt command line and see it worked.<br>Because the required libraries are already included in the PATH env. So,<br>does it mean that I have to distribute the .dll libraries with my<br>application as well?<br></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"><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">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"><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"><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">Phil</span></div></blockquote></div><br></div></div>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div>