HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.77k stars 6.31k forks source link

Every Build Method Fails - macOS Big Sur M1 #790

Closed ergoego closed 3 years ago

ergoego commented 3 years ago

I have tried and failed to install this program using every method listed for macOS.

I erased my computer, reinstalled macOS 11.5.2, still no luck. Im open to an alternative that annotates images in Pascal VOC xml, but it looks like most things are costly (roboflow.com). Google's own tensor flow tutorials pointed me to this tool, so that's what I'm trying to use.

Build From Source Method:

brew install qt  # Install qt-5.x.x by Homebrew
brew install libxml2

or using pip

pip3 install pyqt5 lxml # Install qt and lxml by pip

make qt5py3
python3 labelImg.py
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]

If using brew in the option above, error at make qt5py3: make: *** No rule to make target qt5py3. Stop.

If using python in the option above, error at pip3 install pyqt5 lxml:

  Using cached PyQt5-5.14.1.tar.gz (3.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmpekjlk1q8
         cwd: /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6
    Complete output (264 lines):
    Querying qmake about your Qt installation...
    /opt/homebrew/bin/qmake -query
    This is the GPL version of PyQt 5.14.1 (licensed under the GNU General Public License) for Python 3.9.6 on darwin.
    Found the license file 'pyqt-gpl.sip'.
    Checking to see if the QtCore bindings can be built...
    /opt/homebrew/bin/qmake QtCore.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtCore/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtCore -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtCore.o ../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/config-tests/cfgtest_QtCore.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtCore.app/Contents/MacOS/QtCore cfgtest_QtCore.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtCore -framework DiskArbitration -framework IOKit
    /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtCore/QtCore.app/Contents/MacOS/QtCore /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtCore/cfgtest_QtCore.out
    Checking to see if the QtNetwork bindings can be built...
    /opt/homebrew/bin/qmake QtNetwork.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtNetwork/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetwork.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtNetwork.o ../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/config-tests/cfgtest_QtNetwork.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtNetwork.app/Contents/MacOS/QtNetwork cfgtest_QtNetwork.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit
    /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtNetwork/QtNetwork.app/Contents/MacOS/QtNetwork /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtNetwork/cfgtest_QtNetwork.out
    Checking to see if the QtGui bindings can be built...
    /opt/homebrew/bin/qmake QtGui.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtGui/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtGui -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtGui.o ../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/config-tests/cfgtest_QtGui.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtGui.app/Contents/MacOS/QtGui cfgtest_QtGui.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtGui/QtGui.app/Contents/MacOS/QtGui /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtGui/cfgtest_QtGui.out
    Checking to see if the QtWidgets bindings can be built...
    /opt/homebrew/bin/qmake QtWidgets.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWidgets/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtWidgets -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtWidgets.o cfgtest_QtWidgets.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtWidgets.app/Contents/MacOS/QtWidgets cfgtest_QtWidgets.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtQml bindings can be built...
    /opt/homebrew/bin/qmake QtQml.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtQml/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtQml -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQml.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetwork.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtQml.o cfgtest_QtQml.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtQml.app/Contents/MacOS/QtQml cfgtest_QtQml.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtQml -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QAxContainer bindings can be built...
    /opt/homebrew/bin/qmake QAxContainer.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QAxContainer/.qmake.stash
    Project ERROR: Unknown module(s) in QT: axcontainer
    Checking to see if the QtAndroidExtras bindings can be built...
    /opt/homebrew/bin/qmake QtAndroidExtras.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtAndroidExtras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: androidextras
    Checking to see if the QtBluetooth bindings can be built...
    /opt/homebrew/bin/qmake QtBluetooth.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtBluetooth/.qmake.stash
    Project ERROR: Unknown module(s) in QT: bluetooth
    Checking to see if the QtDBus bindings can be built...
    /opt/homebrew/bin/qmake QtDBus.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtDBus/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtDBus -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtDBus.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtDBus.o cfgtest_QtDBus.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtDBus.app/Contents/MacOS/QtDBus cfgtest_QtDBus.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtDBus -framework QtCore -framework DiskArbitration -framework IOKit
    Checking to see if the QtDesigner bindings can be built...
    /opt/homebrew/bin/qmake QtDesigner.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtDesigner/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtDesigner -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtDesigner.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/include -I/opt/homebrew/Cellar/qt/6.1.2/include/QtUiPlugin -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtOpenGLWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtOpenGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtXml.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtDesigner.o cfgtest_QtDesigner.cpp
    In file included from cfgtest_QtDesigner.cpp:2:
    /opt/homebrew/Cellar/qt/6.1.2/lib/QtDesigner.framework/Headers/customwidget.h:4:4: warning: Header <QtDesigner/customwidget.h> is deprecated. Please include <QtUiPlugin/customwidget.h> instead. [-W#warnings]
    #  warning Header <QtDesigner/customwidget.h> is deprecated. Please include <QtUiPlugin/customwidget.h> instead.
       ^
    1 warning generated.
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtDesigner.app/Contents/MacOS/QtDesigner cfgtest_QtDesigner.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtDesigner -framework QtOpenGLWidgets -framework QtWidgets -framework QtOpenGL -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtXml -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the Enginio bindings can be built...
    /opt/homebrew/bin/qmake Enginio.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_Enginio/.qmake.stash
    Project ERROR: Unknown module(s) in QT: enginio
    Checking to see if the QtHelp bindings can be built...
    /opt/homebrew/bin/qmake QtHelp.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtHelp/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtHelp.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtSql.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtHelp.o cfgtest_QtHelp.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtHelp.app/Contents/MacOS/QtHelp cfgtest_QtHelp.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtHelp -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtSql -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtMacExtras bindings can be built...
    /opt/homebrew/bin/qmake QtMacExtras.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtMacExtras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: macextras
    Checking to see if the QtMultimedia bindings can be built...
    /opt/homebrew/bin/qmake QtMultimedia.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtMultimedia/.qmake.stash
    Project ERROR: Unknown module(s) in QT: multimedia
    Checking to see if the QtMultimediaWidgets bindings can be built...
    /opt/homebrew/bin/qmake QtMultimediaWidgets.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtMultimediaWidgets/.qmake.stash
    Project ERROR: Unknown module(s) in QT: multimediawidgets multimedia
    Checking to see if the QtNetworkAuth bindings can be built...
    /opt/homebrew/bin/qmake QtNetworkAuth.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtNetworkAuth/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetworkAuth.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetwork.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtNetworkAuth.o cfgtest_QtNetworkAuth.cpp
    cfgtest_QtNetworkAuth.cpp:5:17: warning: unused variable 'v' [-Wunused-variable]
        const char *v = QTNETWORKAUTH_VERSION_STR;
                    ^
    1 warning generated.
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtNetworkAuth.app/Contents/MacOS/QtNetworkAuth cfgtest_QtNetworkAuth.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtNetworkAuth -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit
    Checking to see if the QtNfc bindings can be built...
    /opt/homebrew/bin/qmake QtNfc.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtNfc/.qmake.stash
    Project ERROR: Unknown module(s) in QT: nfc
    Checking to see if the QtOpenGL bindings can be built...
    /opt/homebrew/bin/qmake QtOpenGL.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtOpenGL/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtOpenGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtOpenGL.o cfgtest_QtOpenGL.cpp
    cfgtest_QtOpenGL.cpp:1:10: fatal error: 'qgl.h' file not found
    #include <qgl.h>
             ^~~~~~~
    1 error generated.
    make: *** [cfgtest_QtOpenGL.o] Error 1
    Checking to see if the QtPositioning bindings can be built...
    /opt/homebrew/bin/qmake QtPositioning.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtPositioning/.qmake.stash
    Project ERROR: Unknown module(s) in QT: positioning
    Checking to see if the QtLocation bindings can be built...
    /opt/homebrew/bin/qmake QtLocation.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtLocation/.qmake.stash
    Project ERROR: Unknown module(s) in QT: location
    Checking to see if the QtPrintSupport bindings can be built...
    /opt/homebrew/bin/qmake QtPrintSupport.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtPrintSupport/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtPrintSupport.o ../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/config-tests/cfgtest_QtPrintSupport.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtPrintSupport.app/Contents/MacOS/QtPrintSupport cfgtest_QtPrintSupport.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtPrintSupport -framework ApplicationServices -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -lcups -framework AGL -framework OpenGL
    /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtPrintSupport/QtPrintSupport.app/Contents/MacOS/QtPrintSupport /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtPrintSupport/cfgtest_QtPrintSupport.out
    Checking to see if the QtQuick bindings can be built...
    /opt/homebrew/bin/qmake QtQuick.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtQuick/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../pip-install-obl2b8e0/pyqt5_55e3292994bf4ea7a84cf0c648e88fd6/qpy/QtQuick -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQuick.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtOpenGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQmlModels.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQml.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetwork.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtQuick.o cfgtest_QtQuick.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtQuick.app/Contents/MacOS/QtQuick cfgtest_QtQuick.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtQuick -framework QtOpenGL -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtQmlModels -framework QtQml -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtQuickWidgets bindings can be built...
    /opt/homebrew/bin/qmake QtQuickWidgets.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtQuickWidgets/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQuickWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQuick.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtOpenGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQmlModels.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtQml.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtNetwork.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtQuickWidgets.o cfgtest_QtQuickWidgets.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtQuickWidgets.app/Contents/MacOS/QtQuickWidgets cfgtest_QtQuickWidgets.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtQuickWidgets -framework QtQuick -framework QtOpenGL -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtQmlModels -framework QtQml -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtRemoteObjects bindings can be built...
    /opt/homebrew/bin/qmake QtRemoteObjects.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtRemoteObjects/.qmake.stash
    Project ERROR: Unknown module(s) in QT: remoteobjects
    Checking to see if the QtSensors bindings can be built...
    /opt/homebrew/bin/qmake QtSensors.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtSensors/.qmake.stash
    Project ERROR: Unknown module(s) in QT: sensors
    Checking to see if the QtSerialPort bindings can be built...
    /opt/homebrew/bin/qmake QtSerialPort.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtSerialPort/.qmake.stash
    Project ERROR: Unknown module(s) in QT: serialport
    Checking to see if the QtSql bindings can be built...
    /opt/homebrew/bin/qmake QtSql.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtSql/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtSql.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtSql.o cfgtest_QtSql.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtSql.app/Contents/MacOS/QtSql cfgtest_QtSql.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtWidgets -framework QtGui -framework AppKit -framework ImageIO -framework Metal -framework QtSql -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtSvg bindings can be built...
    /opt/homebrew/bin/qmake QtSvg.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtSvg/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtSvg.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtSvg.o cfgtest_QtSvg.cpp
    cfgtest_QtSvg.cpp:1:10: fatal error: 'qsvgwidget.h' file not found
    #include <qsvgwidget.h>
             ^~~~~~~~~~~~~~
    1 error generated.
    make: *** [cfgtest_QtSvg.o] Error 1
    Checking to see if the QtTest bindings can be built...
    /opt/homebrew/bin/qmake QtTest.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtTest/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtTest"' -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtWidgets.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtTest.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtTest.o cfgtest_QtTest.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtTest.app/Contents/MacOS/QtTest cfgtest_QtTest.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtWidgets -framework QtGui -framework ImageIO -framework Metal -framework QtTest -framework Security -framework AppKit -framework ApplicationServices -framework Foundation -framework QtCore -framework DiskArbitration -framework IOKit -framework AGL -framework OpenGL
    Checking to see if the QtWebChannel bindings can be built...
    /opt/homebrew/bin/qmake QtWebChannel.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWebChannel/.qmake.stash
    Project ERROR: Unknown module(s) in QT: webchannel
    Checking to see if the QtWebKit bindings can be built...
    /opt/homebrew/bin/qmake QtWebKit.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWebKit/.qmake.stash
    Project ERROR: Unknown module(s) in QT: webkit
    Checking to see if the QtWebKitWidgets bindings can be built...
    /opt/homebrew/bin/qmake QtWebKitWidgets.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWebKitWidgets/.qmake.stash
    Project ERROR: Unknown module(s) in QT: webkitwidgets
    Checking to see if the QtWebSockets bindings can be built...
    /opt/homebrew/bin/qmake QtWebSockets.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWebSockets/.qmake.stash
    Project ERROR: Unknown module(s) in QT: websockets
    Checking to see if the QtWinExtras bindings can be built...
    /opt/homebrew/bin/qmake QtWinExtras.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtWinExtras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: winextras
    Checking to see if the QtX11Extras bindings can be built...
    /opt/homebrew/bin/qmake QtX11Extras.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtX11Extras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: x11extras
    Checking to see if the QtXml bindings can be built...
    /opt/homebrew/bin/qmake QtXml.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtXml/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtXml.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest_QtXml.o cfgtest_QtXml.cpp
    /Library/Developer/CommandLineTools/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/opt/homebrew/Cellar/qt/6.1.2/lib -o QtXml.app/Contents/MacOS/QtXml cfgtest_QtXml.o   -F/opt/homebrew/Cellar/qt/6.1.2/lib -framework QtXml -framework QtCore -framework DiskArbitration -framework IOKit
    Checking to see if the QtXmlPatterns bindings can be built...
    /opt/homebrew/bin/qmake QtXmlPatterns.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest_QtXmlPatterns/.qmake.stash
    Project ERROR: Unknown module(s) in QT: xmlpatterns
    Checking to see if the _QOpenGLFunctions_2_0 bindings can be built...
    /opt/homebrew/bin/qmake _QOpenGLFunctions_2_0.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest__QOpenGLFunctions_2_0/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest__QOpenGLFunctions_2_0.o cfgtest__QOpenGLFunctions_2_0.cpp
    cfgtest__QOpenGLFunctions_2_0.cpp:1:10: fatal error: 'qopenglfunctions_2_0.h' file not found
    #include <qopenglfunctions_2_0.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make: *** [cfgtest__QOpenGLFunctions_2_0.o] Error 1
    Checking to see if the _QOpenGLFunctions_2_1 bindings can be built...
    /opt/homebrew/bin/qmake _QOpenGLFunctions_2_1.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest__QOpenGLFunctions_2_1/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest__QOpenGLFunctions_2_1.o cfgtest__QOpenGLFunctions_2_1.cpp
    cfgtest__QOpenGLFunctions_2_1.cpp:1:10: fatal error: 'qopenglfunctions_2_1.h' file not found
    #include <qopenglfunctions_2_1.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make: *** [cfgtest__QOpenGLFunctions_2_1.o] Error 1
    Checking to see if the _QOpenGLFunctions_4_1_Core bindings can be built...
    /opt/homebrew/bin/qmake _QOpenGLFunctions_4_1_Core.pro
    Info: creating stash file /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmphlgqci9i/cfgtest__QOpenGLFunctions_4_1_Core/.qmake.stash
    make
    /Library/Developer/CommandLineTools/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11 -Wall -Wextra -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtGui.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/lib/QtCore.framework/Headers -I. -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/Cellar/qt/6.1.2/share/qt/mkspecs/macx-clang -F/opt/homebrew/Cellar/qt/6.1.2/lib -o cfgtest__QOpenGLFunctions_4_1_Core.o cfgtest__QOpenGLFunctions_4_1_Core.cpp
    cfgtest__QOpenGLFunctions_4_1_Core.cpp:1:10: fatal error: 'qopenglfunctions_4_1_core.h' file not found
    #include <qopenglfunctions_4_1_core.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make: *** [cfgtest__QOpenGLFunctions_4_1_Core.o] Error 1
    Checking to see if the dbus-python support should be built...
    The dbus-python package does not seem to be installed.
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 143, in prepare_metadata_for_build_wheel
        hook = backend.prepare_metadata_for_build_wheel
    AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
        main()
      File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 147, in prepare_metadata_for_build_wheel
        whl_basename = backend.build_wheel(metadata_directory, config_settings)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-uuwai7xq/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 51, in build_wheel
        project = AbstractProject.bootstrap('pep517')
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-uuwai7xq/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
        project.setup(pyproject, tool, tool_description)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-uuwai7xq/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 501, in setup
        self.verify_configuration(tool)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-uuwai7xq/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 582, in verify_configuration
        self.abi_version = resolve_abi_version(self.abi_version)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-uuwai7xq/overlay/lib/python3.9/site-packages/sipbuild/module/abi_version.py", line 74, in resolve_abi_version
        raise UserException(
    sipbuild.exceptions.UserException
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz#sha256=2f230f2dbd767099de7a0cb915abdf0cbc3256a0b5bb910eb09b99117db7a65b (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmpekjlk1q8 Check the logs for full command output.
  Using cached PyQt5-5.14.0.tar.gz (3.2 MB)
ERROR: pyqt5 from https://files.pythonhosted.org/packages/7c/5b/e760ec4f868cb77cee45b4554bf15d3fe6972176e89c4e3faac941213694/PyQt5-5.14.0.tar.gz#sha256=0145a6b7de15756366decb736c349a0cb510d706c83fda5b8cd9e0557bc1da72 has a pyproject.toml file that does not comply with PEP 518: 'build-system.requires' contains an invalid requirement: 'sip >=5.0.1 <6'

Python 3 Virtualenv Method:

brew install python3
pip3 install pipenv
pipenv run pip install pyqt5==5.12.1 lxml
pipenv run make qt5py3
pipenv run python3 labelImg.py
[Optional] rm -rf build dist; python setup.py py2app -A;mv "dist/labelImg.app" /Applications

Error at 'pipenv run pip install pyqt5==5.12.1 lxml':

ERROR: Could not find a version that satisfies the requirement pyqt5==5.12.1 (from versions: 5.14.0, 5.14.1, 5.14.2, 5.15.0, 5.15.1, 5.15.2, 5.15.3, 5.15.4)
ERROR: No matching distribution found for pyqt5==5.12.1

build-for-macos.sh method:

==> Tapping homebrew/cask
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 590592, done.
remote: Total 590592 (delta 0), reused 0 (delta 0), pack-reused 590592
Receiving objects: 100% (590592/590592), 261.01 MiB | 1.37 MiB/s, done.
Resolving deltas: 100% (417259/417259), done.
Tapped 3921 casks (4,001 files, 279.9MB).
Warning: No available formula or cask with the name "python@2". Did you mean bpython, ipython, jython or cython?
==> Searching for similarly named formulae...
These similarly named formulae were found:
bpython           ipython           jython            cython
To install one of them, run (for example):
  brew install bpython
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: virtualenv in /opt/homebrew/lib/python3.9/site-packages (20.7.2)
Requirement already satisfied: backports.entry-points-selectable>=1.0.4 in /opt/homebrew/lib/python3.9/site-packages (from virtualenv) (1.1.0)
Requirement already satisfied: six<2,>=1.9.0 in /opt/homebrew/lib/python3.9/site-packages (from virtualenv) (1.16.0)
Requirement already satisfied: distlib<1,>=0.3.1 in /opt/homebrew/lib/python3.9/site-packages (from virtualenv) (0.3.2)
Requirement already satisfied: platformdirs<3,>=2 in /opt/homebrew/lib/python3.9/site-packages (from virtualenv) (2.3.0)
Requirement already satisfied: filelock<4,>=3.0.0 in /opt/homebrew/lib/python3.9/site-packages (from virtualenv) (3.0.12)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--100 15799    0 15799    0     0  32177      0 --:--:-- --:--:-- --:--:--100 3774k    0 3774k    0     0  2580k      0 --:--:--  0:00:01 --:--:--100 6440k    0 6440k    0     0  2795k      0 --:--:--  0:00:02 --:--:-- 2795k
Archive:  labelImg.zip
58406b578aaa1239d07b3ab1fb74c90a105dd9fb
   creating: labelImg-master/
   creating: labelImg-master/.github/
  inflating: labelImg-master/.github/no-response.yml  
  inflating: labelImg-master/.gitignore  
  inflating: labelImg-master/.travis.yml  
  inflating: labelImg-master/CONTRIBUTING.rst  
  inflating: labelImg-master/HISTORY.rst  
  inflating: labelImg-master/LICENSE  
  inflating: labelImg-master/MANIFEST.in  
  inflating: labelImg-master/Makefile  
  inflating: labelImg-master/README.rst  
 extracting: labelImg-master/__init__.py  
   creating: labelImg-master/build-tools/
  inflating: labelImg-master/build-tools/.gitignore  
  inflating: labelImg-master/build-tools/README.md  
  inflating: labelImg-master/build-tools/build-for-macos.sh  
  inflating: labelImg-master/build-tools/build-for-pypi.sh  
  inflating: labelImg-master/build-tools/build-ubuntu-binary.sh  
  inflating: labelImg-master/build-tools/build-windows-binary.sh  
  inflating: labelImg-master/build-tools/envsetup.sh  
  inflating: labelImg-master/build-tools/run-in-container.sh  
   creating: labelImg-master/data/
  inflating: labelImg-master/data/predefined_classes.txt  
   creating: labelImg-master/demo/
  inflating: labelImg-master/demo/demo.jpg  
  inflating: labelImg-master/demo/demo3.jpg  
  inflating: labelImg-master/demo/demo4.png  
  inflating: labelImg-master/demo/demo5.png  
  inflating: labelImg-master/issue_template.md  
  inflating: labelImg-master/labelImg.py  
   creating: labelImg-master/libs/
  inflating: labelImg-master/libs/__init__.py  
  inflating: labelImg-master/libs/canvas.py  
  inflating: labelImg-master/libs/colorDialog.py  
  inflating: labelImg-master/libs/combobox.py  
  inflating: labelImg-master/libs/constants.py  
  inflating: labelImg-master/libs/create_ml_io.py  
  inflating: labelImg-master/libs/hashableQListWidgetItem.py  
  inflating: labelImg-master/libs/labelDialog.py  
  inflating: labelImg-master/libs/labelFile.py  
  inflating: labelImg-master/libs/pascal_voc_io.py  
  inflating: labelImg-master/libs/settings.py  
  inflating: labelImg-master/libs/shape.py  
  inflating: labelImg-master/libs/stringBundle.py  
  inflating: labelImg-master/libs/toolBar.py  
  inflating: labelImg-master/libs/ustr.py  
  inflating: labelImg-master/libs/utils.py  
  inflating: labelImg-master/libs/yolo_io.py  
  inflating: labelImg-master/libs/zoomWidget.py  
   creating: labelImg-master/readme/
  inflating: labelImg-master/readme/README.jp.rst  
  inflating: labelImg-master/readme/README.zh.rst  
   creating: labelImg-master/requirements/
 extracting: labelImg-master/requirements/requirements-linux-python3.txt  
  inflating: labelImg-master/resources.qrc  
   creating: labelImg-master/resources/
   creating: labelImg-master/resources/icons/
 extracting: labelImg-master/resources/icons/app.icns  
  inflating: labelImg-master/resources/icons/app.png  
  inflating: labelImg-master/resources/icons/app.svg  
 extracting: labelImg-master/resources/icons/cancel.png  
 extracting: labelImg-master/resources/icons/close.png  
  inflating: labelImg-master/resources/icons/color.png  
 extracting: labelImg-master/resources/icons/color_line.png  
 extracting: labelImg-master/resources/icons/copy.png  
 extracting: labelImg-master/resources/icons/delete.png  
 extracting: labelImg-master/resources/icons/done.png  
  inflating: labelImg-master/resources/icons/done.svg  
 extracting: labelImg-master/resources/icons/edit.png  
 extracting: labelImg-master/resources/icons/expert1.png  
 extracting: labelImg-master/resources/icons/expert2.png  
  inflating: labelImg-master/resources/icons/eye.png  
 extracting: labelImg-master/resources/icons/feBlend-icon.png  
 extracting: labelImg-master/resources/icons/file.png  
 extracting: labelImg-master/resources/icons/fit-width.png  
 extracting: labelImg-master/resources/icons/fit-window.png  
 extracting: labelImg-master/resources/icons/fit.png  
  inflating: labelImg-master/resources/icons/format_createml.png  
 extracting: labelImg-master/resources/icons/format_voc.png  
 extracting: labelImg-master/resources/icons/format_yolo.png  
 extracting: labelImg-master/resources/icons/help.png  
 extracting: labelImg-master/resources/icons/labels.png  
  inflating: labelImg-master/resources/icons/labels.svg  
 extracting: labelImg-master/resources/icons/new.png  
  inflating: labelImg-master/resources/icons/next.png  
 extracting: labelImg-master/resources/icons/objects.png  
 extracting: labelImg-master/resources/icons/open.png  
  inflating: labelImg-master/resources/icons/open.svg  
  inflating: labelImg-master/resources/icons/prev.png  
 extracting: labelImg-master/resources/icons/quit.png  
 extracting: labelImg-master/resources/icons/resetall.png  
 extracting: labelImg-master/resources/icons/save-as.png  
  inflating: labelImg-master/resources/icons/save-as.svg  
 extracting: labelImg-master/resources/icons/save.png  
  inflating: labelImg-master/resources/icons/save.svg  
 extracting: labelImg-master/resources/icons/undo-cross.png  
 extracting: labelImg-master/resources/icons/undo.png  
 extracting: labelImg-master/resources/icons/verify.png  
 extracting: labelImg-master/resources/icons/zoom-in.png  
 extracting: labelImg-master/resources/icons/zoom-out.png  
 extracting: labelImg-master/resources/icons/zoom.png  
   creating: labelImg-master/resources/strings/
  inflating: labelImg-master/resources/strings/strings-ja-JP.properties  
  inflating: labelImg-master/resources/strings/strings-zh-CN.properties  
  inflating: labelImg-master/resources/strings/strings-zh-TW.properties  
  inflating: labelImg-master/resources/strings/strings.properties  
  inflating: labelImg-master/setup.cfg  
  inflating: labelImg-master/setup.py  
   creating: labelImg-master/tests/
 extracting: labelImg-master/tests/.gitignore  
  inflating: labelImg-master/tests/test.512.512.bmp  
  inflating: labelImg-master/tests/test_io.py  
  inflating: labelImg-master/tests/test_qt.py  
  inflating: labelImg-master/tests/test_settings.py  
  inflating: labelImg-master/tests/test_stringBundle.py  
  inflating: labelImg-master/tests/test_utils.py  
error:  cannot create labelImg-master/tests/?????.jpg
        Illegal byte sequence
   creating: labelImg-master/tools/
  inflating: labelImg-master/tools/README.md  
  inflating: labelImg-master/tools/label_to_csv.py  
created virtual environment CPython3.9.6.final.0-64 in 130ms
  creator CPython3Posix(dest=/private/tmp/labelImgSetup/labelImg-py3, clear=False, no_vcs_ignore=False, global=True)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/ego/Library/Application Support/virtualenv)
    added seed packages: pip==21.2.3, setuptools==57.4.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
Collecting py2app
  Downloading py2app-0.25-py2.py3-none-any.whl (790 kB)
     |████████████████████████████████| 790 kB 1.8 MB/s 
Collecting macholib>=1.11
  Downloading macholib-1.15.1-py2.py3-none-any.whl (37 kB)
Collecting altgraph>=0.16
  Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Collecting modulegraph>=0.17
  Downloading modulegraph-0.18-py2.py3-none-any.whl (32 kB)
Requirement already satisfied: setuptools in /private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages (from modulegraph>=0.17->py2app) (57.4.0)
Installing collected packages: altgraph, modulegraph, macholib, py2app
Successfully installed altgraph-0.17 macholib-1.15.1 modulegraph-0.18 py2app-0.25
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
You should consider upgrading via the '/private/tmp/labelImgSetup/labelImg-py3/bin/python -m pip install --upgrade pip' command.
Collecting PyQt5
  Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /private/tmp/labelImgSetup/labelImg-py3/bin/python /private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmppjsf0bzn
         cwd: /private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-install-zjt8c6fr/pyqt5_b4590cdf0d5a4053ad7d3402c5aeee2f
    Complete output (24 lines):
    Querying qmake about your Qt installation...
    /opt/homebrew/bin/qmake -query
    Traceback (most recent call last):
      File "/private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 143, in prepare_metadata_for_build_wheel
        hook = backend.prepare_metadata_for_build_wheel
    AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
        main()
      File "/private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 147, in prepare_metadata_for_build_wheel
        whl_basename = backend.build_wheel(metadata_directory, config_settings)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-qwsu4jwb/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 51, in build_wheel
        project = AbstractProject.bootstrap('pep517')
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-qwsu4jwb/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
        project.setup(pyproject, tool, tool_description)
      File "/private/var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/pip-build-env-qwsu4jwb/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 500, in setup
        self.update(tool)
      File "project.py", line 160, in update
    sipbuild.exceptions.UserException
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz#sha256=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command errored out with exit status 1: /private/tmp/labelImgSetup/labelImg-py3/bin/python /private/tmp/labelImgSetup/labelImg-py3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/rk/8yp2bh1d4t11yzvtbbvyz33r0000gn/T/tmppjsf0bzn Check the logs for full command output.

Docker

I first download and install Docker Desktop, then install docker CLI with brew.

Then I run the provided build script:

docker run -it \
--user $(id -u) \
-e DISPLAY=unix$DISPLAY \
--workdir=$(pwd) \
--volume="/home/$USER:/home/$USER" \
--volume="/etc/group:/etc/group:ro" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
--volume="/etc/sudoers.d:/etc/sudoers.d:ro" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
tzutalin/py2qt4

make qt4py2;./labelImg.py

Error:

docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.
make: *** No rule to make target `qt4py2'.  Stop.
zsh: no such file or directory: ./labelImg.py

So then I try to pull the docker image first by running 'docker pull tzualin/py2qt4'

That installs fine, but then I have no idea what to do from here. I can run the image, get a command line to the container, but what to run here?

Much thanks for any response - really need to use this for a project.

ergoego commented 3 years ago

Finally got it to work after failing on:

m1 Mac mini m1 Macbook air Rpi 4

Is there perhaps an issue with supporting arm64?

The working system was a MacBook Pro 2019 running macOS Catalina.

Cloned, the project, installed PyQt 5 and lxml no problem, make qt5py3, and it all just works.

RodolfoFerro commented 3 years ago

I was able to run it in my M1 Mac Mini from the Docker image (in case you are interested). However, I never stopped getting a "make sure xxx.jpg is a valid image"...

mogita commented 3 years ago

I can confirm the same issue happens on my iMac with Apple Silicon. None of the installation method for macOS works currently.

Update:

Found a workaround, hope it helps if you Googled into this thread:

Basically you will need a python@3.7 which runs via Rosetta 2 to make everything work. My steps are listed as below: