Aug-09-2017, 04:36 AM
Hi again,
I realised that in my last post I perhaps was not clear enough about my question.
I am attempting to create a standalone application firstly for macOS and later Windows. Using this video for instructions I have successfully created the application. However when I attempt to run the application using the executable found within the package contents I get this error returned:
Traceback (most recent call last): File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/__boot__.py", line 98, in <module> _run() File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/__boot__.py", line 82, in _run exec(compile(source, path, 'exec'), globals(), globals()) File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/Main.py", line 2, in <module> from PyQt5 import QtWidgets, QtGui, QtCoreImportError: dlopen(/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/lib/python3.6/PyQt5/QtWidgets.so, 2): Library not loaded: @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Users/tomeady/Desktop/dist/Main.app/Contents/Resources/lib/python3.6/PyQt5/QtWidgets.so
Reason: Incompatible library version: QtWidgets.so requires version 5.8.0 or later, but QtWidgets provides version 5.3.0
I have checked and made sure that all of my modules are up to date and correctly imported. When I build the app using the -A flag (non-stadalone) it runs fine, as it should.
Could someone please break this down and potentially offer a fix for me as I have been stuck for quite a while, if you need any other information please let me know.
Thanks, Tom.
I realised that in my last post I perhaps was not clear enough about my question.
I am attempting to create a standalone application firstly for macOS and later Windows. Using this video for instructions I have successfully created the application. However when I attempt to run the application using the executable found within the package contents I get this error returned:
Traceback (most recent call last): File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/__boot__.py", line 98, in <module> _run() File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/__boot__.py", line 82, in _run exec(compile(source, path, 'exec'), globals(), globals()) File "/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/Main.py", line 2, in <module> from PyQt5 import QtWidgets, QtGui, QtCoreImportError: dlopen(/Users/tomeady/Desktop/dist/Main.app/Contents/Resources/lib/python3.6/PyQt5/QtWidgets.so, 2): Library not loaded: @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Users/tomeady/Desktop/dist/Main.app/Contents/Resources/lib/python3.6/PyQt5/QtWidgets.so
Reason: Incompatible library version: QtWidgets.so requires version 5.8.0 or later, but QtWidgets provides version 5.3.0
I have checked and made sure that all of my modules are up to date and correctly imported. When I build the app using the -A flag (non-stadalone) it runs fine, as it should.
Could someone please break this down and potentially offer a fix for me as I have been stuck for quite a while, if you need any other information please let me know.
Thanks, Tom.