Pyqtdeploy - build pyqt app on Windows

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Pyqtdeploy - build pyqt app on Windows

Mạnh Tú Vũ
Hello,

I'm trying to build my PyQt application on Windows and I'm not sure that I understand the way it works. I have built my application into a .exe binary file but when I was trying to run, it threw an exception of:

C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
Log file: C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
Traceback (most recent call last):
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/__init__.py", line 1, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/main.py", line 22, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 953, in _find_and_load_unlocked
File "bootstrap.py", line 219, in _call_with_frames_removed
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/PyQt5/__init__.py", line 41, in <module>
File ":/PyQt5/__init__.py", line 33, in find_qt
ImportError:
unable to find Qt5Core.dll on PATH

I suspect, the Qt application was trying to find Qt5Core.dll library, however, I see in the Makefile.Release, we had already included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why do we need the .dll library again?
LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib ...

I have tried to run the app using Qt command line and see it worked. Because the required libraries are already included in the PATH env. So, does it mean that I have to distribute the .dll libraries with my application as well?

Thank you,

Tu 

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Phil Thompson-5
On 22/08/2019 10:04, Mạnh Tú Vũ wrote:

> Hello,
>
> I'm trying to build my PyQt application on Windows and I'm not sure
> that I
> understand the way it works. I have built my application into a .exe
> binary
> file but when I was trying to run, it threw an exception of:
>
> C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
>>
>> Log file:
>>> C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
>>
>> Traceback (most recent call last):
>>
>> File "bootstrap.py", line 983, in _find_and_load
>>
>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>
>> File "bootstrap.py", line 668, in _load_unlocked
>>
>> File "bootstrap.py", line 638, in _load_backward_compatible
>>
>> File ":/boatswain/__init__.py", line 1, in <module>
>>
>> File "bootstrap.py", line 983, in _find_and_load
>>
>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>
>> File "bootstrap.py", line 668, in _load_unlocked
>>
>> File "bootstrap.py", line 638, in _load_backward_compatible
>>
>> File ":/boatswain/main.py", line 22, in <module>
>>
>> File "bootstrap.py", line 983, in _find_and_load
>>
>> File "bootstrap.py", line 953, in _find_and_load_unlocked
>>
>> File "bootstrap.py", line 219, in _call_with_frames_removed
>>
>> File "bootstrap.py", line 983, in _find_and_load
>>
>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>
>> File "bootstrap.py", line 668, in _load_unlocked
>>
>> File "bootstrap.py", line 638, in _load_backward_compatible
>>
>> File ":/PyQt5/__init__.py", line 41, in <module>
>>
>> File ":/PyQt5/__init__.py", line 33, in find_qt
>>
>> ImportError:
>>
>> unable to find Qt5Core.dll on PATH
>>
>>
> I suspect, the Qt application was trying to find Qt5Core.dll library,
> however, I see in the Makefile.Release, we had already
> included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So,
> why
> do we need the .dll library again?
>
>> LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
>> /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l...
>> C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
>> ...
>>
>
> I have tried to run the app using Qt command line and see it worked.
> Because the required libraries are already included in the PATH env.
> So,
> does it mean that I have to distribute the .dll libraries with my
> application as well?

If you haven't built a static version of the Qt libraries then yes.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Mạnh Tú Vũ
Hi Phil,

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?



On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]> wrote:

On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
Hello,
I'm trying to build my PyQt application on Windows and I'm not sure that I
understand the way it works. I have built my application into a .exe binary
file but when I was trying to run, it threw an exception of:
C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
Log file:
C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
Traceback (most recent call last):
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/__init__.py", line 1, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/main.py", line 22, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 953, in _find_and_load_unlocked
File "bootstrap.py", line 219, in _call_with_frames_removed
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/PyQt5/__init__.py", line 41, in <module>
File ":/PyQt5/__init__.py", line 33, in find_qt
ImportError:
unable to find Qt5Core.dll on PATH
I suspect, the Qt application was trying to find Qt5Core.dll library,
however, I see in the Makefile.Release, we had already
included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why
do we need the .dll library again?
LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
...
I have tried to run the app using Qt command line and see it worked.
Because the required libraries are already included in the PATH env. So,
does it mean that I have to distribute the .dll libraries with my
application as well?

If you haven't built a static version of the Qt libraries then yes.

Phil


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Phil Thompson-5
On 22/08/2019 10:54, Mạnh Tú Vũ wrote:
> Hi Phil,
>
> 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?

Are you using PyQt v5.13? Support for that hasn't been added to
pyqtdeploy yet.

Phil

>> On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]>
>> wrote:
>>
>> On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
>>> Hello,
>>> I'm trying to build my PyQt application on Windows and I'm not sure
>>> that I
>>> understand the way it works. I have built my application into a .exe
>>> binary
>>> file but when I was trying to run, it threw an exception of:
>>> C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
>>>> Log file:
>>>>> C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
>>>> Traceback (most recent call last):
>>>> File "bootstrap.py", line 983, in _find_and_load
>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>> File ":/boatswain/__init__.py", line 1, in <module>
>>>> File "bootstrap.py", line 983, in _find_and_load
>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>> File ":/boatswain/main.py", line 22, in <module>
>>>> File "bootstrap.py", line 983, in _find_and_load
>>>> File "bootstrap.py", line 953, in _find_and_load_unlocked
>>>> File "bootstrap.py", line 219, in _call_with_frames_removed
>>>> File "bootstrap.py", line 983, in _find_and_load
>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>> File ":/PyQt5/__init__.py", line 41, in <module>
>>>> File ":/PyQt5/__init__.py", line 33, in find_qt
>>>> ImportError:
>>>> unable to find Qt5Core.dll on PATH
>>> I suspect, the Qt application was trying to find Qt5Core.dll library,
>>> however, I see in the Makefile.Release, we had already
>>> included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So,
>>> why
>>> do we need the .dll library again?
>>>> LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
>>>> /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l...
>>>> C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
>>>> ...
>>> I have tried to run the app using Qt command line and see it worked.
>>> Because the required libraries are already included in the PATH env.
>>> So,
>>> does it mean that I have to distribute the .dll libraries with my
>>> application as well?
>>
>> If you haven't built a static version of the Qt libraries then yes.
>>
>> Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Grzegorz Bokota
In reply to this post by Mạnh Tú Vũ
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.

Grzegorz Bokota


czw., 22 sie 2019 o 11:56 Mạnh Tú Vũ <[hidden email]> napisał(a):
Hi Phil,

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?



On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]> wrote:

On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
Hello,
I'm trying to build my PyQt application on Windows and I'm not sure that I
understand the way it works. I have built my application into a .exe binary
file but when I was trying to run, it threw an exception of:
C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
Log file:
C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
Traceback (most recent call last):
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/__init__.py", line 1, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/main.py", line 22, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 953, in _find_and_load_unlocked
File "bootstrap.py", line 219, in _call_with_frames_removed
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/PyQt5/__init__.py", line 41, in <module>
File ":/PyQt5/__init__.py", line 33, in find_qt
ImportError:
unable to find Qt5Core.dll on PATH
I suspect, the Qt application was trying to find Qt5Core.dll library,
however, I see in the Makefile.Release, we had already
included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why
do we need the .dll library again?
LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
...
I have tried to run the app using Qt command line and see it worked.
Because the required libraries are already included in the PATH env. So,
does it mean that I have to distribute the .dll libraries with my
application as well?

If you haven't built a static version of the Qt libraries then yes.

Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Mạnh Tú Vũ
is there any way to workaround that? i.e modify the __init__ of PyQt5 inside the build-win-32 sysroot folder?

Thanks

On 22 Aug 2019, at 11:17, Grzegorz Bokota <[hidden email]> wrote:

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.

Grzegorz Bokota


czw., 22 sie 2019 o 11:56 Mạnh Tú Vũ <[hidden email]> napisał(a):
Hi Phil,

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?

<69366583_2626188204071919_3291607272878243840_n.jpeg>


On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]> wrote:

On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
Hello,
I'm trying to build my PyQt application on Windows and I'm not sure that I
understand the way it works. I have built my application into a .exe binary
file but when I was trying to run, it threw an exception of:
C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
Log file:
C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
Traceback (most recent call last):
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/__init__.py", line 1, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/main.py", line 22, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 953, in _find_and_load_unlocked
File "bootstrap.py", line 219, in _call_with_frames_removed
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/PyQt5/__init__.py", line 41, in <module>
File ":/PyQt5/__init__.py", line 33, in find_qt
ImportError:
unable to find Qt5Core.dll on PATH
I suspect, the Qt application was trying to find Qt5Core.dll library,
however, I see in the Makefile.Release, we had already
included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why
do we need the .dll library again?
LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
...
I have tried to run the app using Qt command line and see it worked.
Because the required libraries are already included in the PATH env. So,
does it mean that I have to distribute the .dll libraries with my
application as well?

If you haven't built a static version of the Qt libraries then yes.

Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Mạnh Tú Vũ
In reply to this post by Phil Thompson-5
Yes, it is PyQt 5.13.

I can see in the __init__.py from PyQt5, it try to find the .dll file instead of .lib file. Is there anyway to workaround it?

Thanks
Tu

> On 22 Aug 2019, at 11:12, Phil Thompson <[hidden email]> wrote:
>
> On 22/08/2019 10:54, Mạnh Tú Vũ wrote:
>> Hi Phil,
>> 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?
>
> Are you using PyQt v5.13? Support for that hasn't been added to pyqtdeploy yet.
>
> Phil
>
>>> On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]> wrote:
>>> On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
>>>> Hello,
>>>> I'm trying to build my PyQt application on Windows and I'm not sure that I
>>>> understand the way it works. I have built my application into a .exe binary
>>>> file but when I was trying to run, it threw an exception of:
>>>> C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
>>>>> Log file:
>>>>>> C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
>>>>> Traceback (most recent call last):
>>>>> File "bootstrap.py", line 983, in _find_and_load
>>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>>> File ":/boatswain/__init__.py", line 1, in <module>
>>>>> File "bootstrap.py", line 983, in _find_and_load
>>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>>> File ":/boatswain/main.py", line 22, in <module>
>>>>> File "bootstrap.py", line 983, in _find_and_load
>>>>> File "bootstrap.py", line 953, in _find_and_load_unlocked
>>>>> File "bootstrap.py", line 219, in _call_with_frames_removed
>>>>> File "bootstrap.py", line 983, in _find_and_load
>>>>> File "bootstrap.py", line 967, in _find_and_load_unlocked
>>>>> File "bootstrap.py", line 668, in _load_unlocked
>>>>> File "bootstrap.py", line 638, in _load_backward_compatible
>>>>> File ":/PyQt5/__init__.py", line 41, in <module>
>>>>> File ":/PyQt5/__init__.py", line 33, in find_qt
>>>>> ImportError:
>>>>> unable to find Qt5Core.dll on PATH
>>>> I suspect, the Qt application was trying to find Qt5Core.dll library,
>>>> however, I see in the Makefile.Release, we had already
>>>> included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why
>>>> do we need the .dll library again?
>>>>> LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
>>>>> /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
>>>>> ...
>>>> I have tried to run the app using Qt command line and see it worked.
>>>> Because the required libraries are already included in the PATH env. So,
>>>> does it mean that I have to distribute the .dll libraries with my
>>>> application as well?
>>> If you haven't built a static version of the Qt libraries then yes.
>>> Phil
>

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Pyqtdeploy - build pyqt app on Windows

Mạnh Tú Vũ
In reply to this post by Grzegorz Bokota
Just for your information. Delete the find_qt function in __init__.py of PyQT5 inside the build-win-32 sysroot folder actually did the trick. Now it worked perfectly,

Thanks,

Tu

On 22 Aug 2019, at 11:17, Grzegorz Bokota <[hidden email]> wrote:

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.

Grzegorz Bokota


czw., 22 sie 2019 o 11:56 Mạnh Tú Vũ <[hidden email]> napisał(a):
Hi Phil,

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?

<69366583_2626188204071919_3291607272878243840_n.jpeg>


On 22 Aug 2019, at 10:28, Phil Thompson <[hidden email]> wrote:

On 22/08/2019 10:04, Mạnh Tú Vũ wrote:
Hello,
I'm trying to build my PyQt application on Windows and I'm not sure that I
understand the way it works. I have built my application into a .exe binary
file but when I was trying to run, it threw an exception of:
C:\boatswain\boatswain\build-win-32>release\Boatswain.exe
Log file:
C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log
Traceback (most recent call last):
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/__init__.py", line 1, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/boatswain/main.py", line 22, in <module>
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 953, in _find_and_load_unlocked
File "bootstrap.py", line 219, in _call_with_frames_removed
File "bootstrap.py", line 983, in _find_and_load
File "bootstrap.py", line 967, in _find_and_load_unlocked
File "bootstrap.py", line 668, in _load_unlocked
File "bootstrap.py", line 638, in _load_backward_compatible
File ":/PyQt5/__init__.py", line 41, in <module>
File ":/PyQt5/__init__.py", line 33, in find_qt
ImportError:
unable to find Qt5Core.dll on PATH
I suspect, the Qt application was trying to find Qt5Core.dll library,
however, I see in the Makefile.Release, we had already
included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why
do we need the .dll library again?
LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib
/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib
...
I have tried to run the app using Qt command line and see it worked.
Because the required libraries are already included in the PATH env. So,
does it mean that I have to distribute the .dll libraries with my
application as well?

If you haven't built a static version of the Qt libraries then yes.

Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt