> $ python3.6 test.py > Traceback (most recent call last): > File "sipx.py", line 1, in <module> > import PyQt5.QtCore > ModuleNotFoundError: No module named 'sip' 'sip' should only be required during build.
pyqt.mk: _USE_PYQT_ALL= core dbus dbussupport demo designer designerplugin \ gui multimedia network opengl qscintilla2 \ sql svg test webkit xml xmlpatterns sip <=
Confirmed that `import PyQt5.QtCore` (still) fails like this when sip is not installed. I'm not sure, though, that sip is (or should, or could be) optional: it looks like the .so itself tries to load a sip module.
A commit references this bug: Author: adridg Date: Wed Jan 2 16:00:00 UTC 2019 New revision: 489087 URL: https://svnweb.freebsd.org/changeset/ports/489087 Log: Fix RUN_DEPENDS for devel/py-qt5-core. The devel/py-sip port includes the sip module code that is needed at runtime ( starting with PyQt 5.11, it seems .. some details http://pyqt.sourceforge.net/Docs/PyQt5/installation.html ) PR: 225040 Reported by: yuri Changes: head/devel/py-qt5-core/Makefile
RUN_DEPENDS fixed.