Python Forum
[PYQT5 // PY2APP] -- Incompatibility issue
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PYQT5 // PY2APP] -- Incompatibility issue
#1
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.
Reply


Messages In This Thread
[PYQT5 // PY2APP] -- Incompatibility issue - by Tome - Aug-09-2017, 04:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,843 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  PYQT py2app Compiling Tome 0 3,084 Jul-27-2017, 11:27 AM
Last Post: Tome

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020