<div dir="ltr">I'm trying to install the latest sip (4.16.6) and the latest PyQt5 (5.4.1) with the latest official Qt release (5.4.1). This is on a mac running Yosemite 10.10.2. Everything seems to install and compile normally, but I can't import any modules:<div><br></div><div><div>Python 3.3.3 (default, Feb 14 2015, 12:23:25)</div><div>[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import PyQt5</div><div>>>> from PyQt5 import QtCore</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>ImportError: cannot import name QtCore</div></div><div><br></div><div>The modules were installed as .so files under here:</div><div>/opt/gentoo/lib/python3.3/site-packages/PyQt5<br></div><div><br></div><div>The Qt installer was qt-opensource-mac-x64-clang-5.4.1.dmg and is installed here:</div><div>/usr/local/qt-5.4.1<br></div><div><br></div><div>To configure PyQt5, I basically used the following (installed for both python 3.3.3 and 2.7.8):</div><div><div>configure.py<br></div><div>--qmake="/usr/local/qt-5.4.1/5.4/clang_64/bin/qmake"<br></div><div>--no-designer-plugin</div><div>--no-qml-plugin</div><div>--destdir="/opt/gentoo/lib/python3.3/site-packages"</div><div>--no-timestamp</div><div>--no-qsci-api</div><div>--no-sip-files</div></div><div><br></div><div>Both the Qt files and PyQt appear to be correct for my architecture.</div><div>$ file QtCore.so</div><div>QtCore.so: Mach-O 64-bit x86_64 dynamically linked shared library</div><div><br></div><div>And it appears the PyQt5 .so is pointing to the Qt .dylib:</div><div><div>$ otool -L QtCore.so</div><div>QtCore.so:</div><div><span style="white-space:pre-wrap">   </span>/opt/gentoo/usr/lib/python3.3/site-packages/PyQt5/QtCore.so (compatibility version 0.0.0, current version 0.0.0)</div><div><span style="white-space:pre-wrap"> </span>/usr/local/qt-5.4.1/5.4/clang_64/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.4.0, current version 5.4.1)</div><div><span style="white-space:pre-wrap">     </span>/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0)</div><div><span style="white-space:pre-wrap">        </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)</div></div><div><br></div><div>Tried setting LD_LIBRARY_PATH to various paths, no difference.</div><div><br></div><div>Am I missing anything obvious?</div></div>