Failure to import PyQt4.QtGui and PyQt4.QtCore modules
Posted: Fri Mar 23, 2012 10:59 pm
After a complete build of CS 2.0.4 on our HP cluster (CentOS 5.2, Intel 11.1-059 compiler suite) I have not been able to bring up the GUI with "code_saturne gui" - I get this message:
Error: Unable to import PyQt4.QtCore or PyQt4.QtGui modules.
Please check your PyQt4 installation
For this package, I downloaded and built a private copy of Python 2.7.2 for sip and PyQt4 to add the necessry pieces. For these modules, I have verified the presence of the following files:
[SYRTHES4.0.0-BETA_TOP_DIR]/src/syrthes-gui/exe.linux-x86_64_calibre7/PyQt4.QtCore.so
[SYRTHES4.0.0-BETA_TOP_DIR]/src/syrthes-gui/exe.linux-x86_64_calibre7/PyQt4.QtGui.so
[PYQT4_INSTALL_DIR]QtCore/QtCore.so
[PYQT4_INSTALL_DIR]/QtGui/QtGui.so
[PYTHON_INSTALL_DIR]/lib/python2.7/site-packages/PyQt4/QtCore.so
[PYTHON_INSTALL_DIR]/lib/python2.7/site-packages/PyQt4/QtGui.so
[PYTHON_INSTALL_DIR]/share/sip/PyQt4/QtCore/QtCoremod.sip
[PYTHON_INSTALL_DIR]/share/sip/PyQt4/QtGui/QtGuimod.sip
I did not receive any other indication that either the PyQt4 (version 4.9.1) build or the CS build was bad. I did take care to ensure that this Python implementation occurs in the PATH before the system-installed earlier version.
So what can cause the reported error even if the modules are present? Are there some things I can check for? Could I be missing any needed environment variables?
Thanks, Ed
Error: Unable to import PyQt4.QtCore or PyQt4.QtGui modules.
Please check your PyQt4 installation
For this package, I downloaded and built a private copy of Python 2.7.2 for sip and PyQt4 to add the necessry pieces. For these modules, I have verified the presence of the following files:
[SYRTHES4.0.0-BETA_TOP_DIR]/src/syrthes-gui/exe.linux-x86_64_calibre7/PyQt4.QtCore.so
[SYRTHES4.0.0-BETA_TOP_DIR]/src/syrthes-gui/exe.linux-x86_64_calibre7/PyQt4.QtGui.so
[PYQT4_INSTALL_DIR]QtCore/QtCore.so
[PYQT4_INSTALL_DIR]/QtGui/QtGui.so
[PYTHON_INSTALL_DIR]/lib/python2.7/site-packages/PyQt4/QtCore.so
[PYTHON_INSTALL_DIR]/lib/python2.7/site-packages/PyQt4/QtGui.so
[PYTHON_INSTALL_DIR]/share/sip/PyQt4/QtCore/QtCoremod.sip
[PYTHON_INSTALL_DIR]/share/sip/PyQt4/QtGui/QtGuimod.sip
I did not receive any other indication that either the PyQt4 (version 4.9.1) build or the CS build was bad. I did take care to ensure that this Python implementation occurs in the PATH before the system-installed earlier version.
So what can cause the reported error even if the modules are present? Are there some things I can check for? Could I be missing any needed environment variables?
Thanks, Ed