Due to upstream changes within the PyQt/sip library, the recommended way to import this module has changed in QGIS 3.4. For maximum portability, instead of directly calling:
import sip
plugins should instead use:
from qgis.PyQt import sip
Using this newer style import will ensure that the code works correct across all platforms and remains functional in future QGIS versions.