trouble with pip install PyQt5

Megan Schendel mschendel at mrn.org
Fri Sep 4 22:31:19 BST 2020


Hi all,
I am trying to do an install on CentOS 6.7 with anaconda version 4.3.30,
python version 3.8.5
Preparing wheel metadata has an error...  In the log, it reports over and
over, qmake query showing cc1plus: error: unrecognized command line option
"-std=gnu++11"
It also reports some Project Error: unknown
modules: axcontainer, androidextras, enginio, macextras, quick3d, webkit,
webkitwidgets, winextras...
Then the final error is
    Checking to see if the dbus-python support should be built...
    The dbus-python package does not seem to be installed.
    These bindings will be built: Qt, pylupdate, pyrcc.
    Generating the Qt bindings...
    Generating the pylupdate bindings...
    _in_process.py: Q_PID is undefined

Please see below.

I have some python experience, but not much experience in maintaining
python environments.  PyQt5 is listed as a needed dependency for another
python package I need.
Thanks for any help.  Please let me know if I can provide any other info.
Megan

Here is what is reported...

Collecting PyQt5
  Using cached PyQt5-5.15.0.tar.gz (3.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'error'
         cwd: /tmp/pip-install-95wp6vn5/pyqt5
    Complete output (247 lines):
    Querying qmake about your Qt installation...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
-query
    This is the GPL version of PyQt 5.15.0 (licensed under the GNU General
Public License) for Python 3.8.5 on linux.
    Found the license file 'pyqt-gpl.sip'.
    Checking to see if the QtCore bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtCore.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtCore/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_CORE_LIB -I. -I../../pip-install-95wp6vn5/pyqt5/qpy/QtCore
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtCore.o
../../pip-install-95wp6vn5/pyqt5/config-tests/cfgtest_QtCore.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtCore.o] Error 1

    Checking to see if the QtNetwork bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtNetwork.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtNetwork/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_NETWORK_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetwork
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtNetwork.o
../../pip-install-95wp6vn5/pyqt5/config-tests/cfgtest_QtNetwork.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtNetwork.o] Error 1

  Checking to see if the QtGui bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtGui.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtGui/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../pip-install-95wp6vn5/pyqt5/qpy/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtGui.o
../../pip-install-95wp6vn5/pyqt5/config-tests/cfgtest_QtGui.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtGui.o] Error 1

    Checking to see if the QtWidgets bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtWidgets.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtWidgets/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I.
-I../../pip-install-95wp6vn5/pyqt5/qpy/QtWidgets
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtWidgets
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtWidgets.o cfgtest_QtWidgets.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtWidgets.o] Error 1

    Checking to see if the QtQml bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtQml.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtQml/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
-I../../pip-install-95wp6vn5/pyqt5/qpy/QtQml
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtQml
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetwork
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtQml.o cfgtest_QtQml.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtQml.o] Error 1

Checking to see if the QAxContainer bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QAxContainer.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QAxContainer/.qmake.stash
    Project ERROR: Unknown module(s) in QT: axcontainer

 Checking to see if the QtAndroidExtras bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtAndroidExtras.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtAndroidExtras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: androidextras

    Checking to see if the QtBluetooth bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtBluetooth.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtBluetooth/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_BLUETOOTH_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtBluetooth
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtBluetooth.o cfgtest_QtBluetooth.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtBluetooth.o] Error 1

    Checking to see if the QtDBus bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtDBus.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtDBus/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_DBUS_LIB -DQT_CORE_LIB -I.
-I../../pip-install-95wp6vn5/pyqt5/qpy/QtDBus
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtDBus
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtDBus.o cfgtest_QtDBus.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtDBus.o] Error 1

   The QtDesigner bindings are disabled with a static Qt installation...
    Checking to see if the Enginio bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
Enginio.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_Enginio/.qmake.stash
    Project ERROR: Unknown module(s) in QT: enginio

    Checking to see if the QtHelp bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtHelp.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtHelp/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtHelp
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtWidgets
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtSql
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtHelp.o cfgtest_QtHelp.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtHelp.o] Error 1

    Checking to see if the QtMacExtras bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtMacExtras.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtMacExtras/.qmake.stash
    Project ERROR: Unknown module(s) in QT: macextras

    Checking to see if the QtMultimedia bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtMultimedia.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtMultimedia/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtMultimedia
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetwork
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtMultimedia.o cfgtest_QtMultimedia.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtMultimedia.o] Error 1

    Checking to see if the QtMultimediaWidgets bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtMultimediaWidgets.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtMultimediaWidgets/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtMultimediaWidgets
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtMultimedia
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtWidgets
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtGui
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetwork
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtMultimediaWidgets.o cfgtest_QtMultimediaWidgets.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtMultimediaWidgets.o] Error 1

    Checking to see if the QtNetworkAuth bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtNetworkAuth.pro
    Info: creating stash file
/tmp/tmp_qwdby2i/cfgtest_QtNetworkAuth/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetworkAuth
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNetwork
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtNetworkAuth.o cfgtest_QtNetworkAuth.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtNetworkAuth.o] Error 1

    Checking to see if the QtNfc bindings can be built...

/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/qmake
QtNfc.pro
    Info: creating stash file /tmp/tmp_qwdby2i/cfgtest_QtNfc/.qmake.stash
    make
    g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG
-DQT_NFC_LIB -DQT_CORE_LIB -I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtNfc
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/include/qt/QtCore
-I.
-I/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/mkspecs/linux-g++
-o cfgtest_QtNfc.o cfgtest_QtNfc.cpp
    cc1plus: error: unrecognized command line option "-std=gnu++11"
    make: *** [cfgtest_QtNfc.o] Error 1


<<<  Many more errors that look like these.
Then, last error ...>>>

    Checking to see if the dbus-python support should be built...
    The dbus-python package does not seem to be installed.
    These bindings will be built: Qt, pylupdate, pyrcc.
    Generating the Qt bindings...
    Generating the pylupdate bindings...
    _in_process.py: Q_PID is undefined

    ----------------------------------------
ERROR: Command errored out with exit status 1:
/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/bin/python
/export/research/analysis/human/jstephen/shared/programs/python/anaconda3/envs/mne/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py
prepare_metadata_for_build_wheel /tmp/tmpmrddir8v Check the logs for full
command output.
MEG Technician
The Mind Research Network
1101 Yale Blvd. NE
Albuquerque, New Mexico 87106
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200904/21630469/attachment-0001.htm>


More information about the PyQt mailing list