<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>I'm on mac (Mountain Lion), and I get python import errors after going through all the trouble of trying to configure compile and install pyqt5. I need someone to help me get through this phase of troubleshooting to where I can just use pyqt, because right now I'm stuck terribly. Someone please help.</div><div><br></div><div>Here are as many details about my setup and the process that I go through in order to reproduce the problem.</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I have python3.2 installed in /opt/local/bin/python3.2, which is a sym link to </div><div style="background-color:
 transparent;">/opt/local/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2<br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">I installed qt versions 5.2.0 and 5.0.2 into /Applications/Qt/5.2.0 and /Applications/Qt/5.0.2 respectively.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial,
 'Lucida Grande', sans-serif; font-style: normal;">I download sip:   http://sourceforge.net/projects/pyqt/files/sip/sip-4.15.4/sip-4.15.4.tar.gz</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">Run the following commands:   </div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">cd ~/Downloads/sip-4.15.4</div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica,
 Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);">sudo python3.2 configure.py </div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);"><br></div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);">And I get this information back:</div><div style="background-color: transparent;">The SIP code generator will be installed in</div><div style="background-color: transparent;">/opt/local/Library/Frameworks/Python.framework/Versions/3.2/bin.</div><div style="background-color: transparent;">The sip module will be installed in</div><div style="background-color:
 transparent;">/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages.</div><div style="background-color: transparent;">The sip.h header file will be installed in</div><div style="background-color: transparent;">/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m.</div><div style="background-color: transparent;">The default directory to install .sip files in is</div><div style="background-color: transparent;">/opt/local/Library/Frameworks/Python.framework/Versions/3.2/share/sip.</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">make -j9</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; font-style: normal;">sudo make install</div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);"><br></div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);"><br></div><div style="background-color: transparent; font-style: normal; font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0);">I download PyQt5: <span style="font-size: 10pt;">http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.2/PyQt-gpl-5.2.tar.gz</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; font-style: normal;">run the following commands:</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">cd ~/Downloads/PyQt-gpl-5.2.tar.gz</div><div style="background-color: transparent;">sudo python3.2 configure.py --qmake /Applications/Qt/5.2.0/clang_64/bin/qmake --sip ~/Downloads/sip-4.15.4/sipgen/sip<br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">sudo make -j9 install</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0,
 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">I follow the first line from this tutorial: http://pyqt.sourceforge.net/Docs/PyQt5/python_shell.html</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent;">>>> from PyQt5.QtWidgets import QApplication<br></div><div style="background-color: transparent;">Traceback (most recent call last):</div><div style="background-color: transparent;">  File "<stdin>", line 1, in <module></div><div style="background-color: transparent;">ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/PyQt5/QtGui.so, 2): Symbol not found:
 __Z20qpyopengl_from_GLintPiPKil</div><div style="background-color: transparent;">  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/PyQt5/QtGui.so</div><div style="background-color: transparent;">  Expected in: flat namespace</div><div style="background-color: transparent;"><span style="background-color: transparent;"> in /opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/PyQt5/QtGui.so</span> </div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;">Why do I get this error? How do I fix
 it?</div></div></body></html>