<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br>On 16 Nov 2018, at 03:59, Glenn Ramsey <<a href="mailto:gr@componic.co.nz">gr@componic.co.nz</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><span>Hi,</span><br><span></span><br><span>I have built PyQt5 (PyQt5_commercial-5.12.dev1810261601 or</span><br><span>PyQt5_commercial-5.11.3) against a development version of Qt 5.12 from git and</span><br><span>Python 2.7.15 on Windows10 using VS2017. I've tried sip 4.19.13 and</span><br><span>sip-4.19.14.dev1810291324. Building and installing appears to have completed</span><br><span>without errors.</span><br></div></blockquote><div><br></div><div>FYI: See <a href="https://wiki.python.org/moin/WindowsCompilers">https://wiki.python.org/moin/WindowsCompilers</a> for the compiler version to use with 2.7 on windows. VS2017 is too new. Microsoft provides visual studio for python 2.7 because of the compatibility issues if you newer compilers.</div><div><br></div><div>Barry</div><div><br></div><blockquote type="cite"><div dir="ltr"><span></span><br><span>PyQt doesn't seem to be wrapping the Qt objects as they do not appear to be</span><br><span>available in the PyQt5 namespace as shown in the following output:</span><br><span></span><br><span>Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit</span><br><span>(AMD64)] on win32</span><br><span>Type "copyright", "credits" or "license()" for more information.</span><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>import PyQt5</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>from PyQt5.QtCore import QTimer</span><br></blockquote></blockquote></blockquote><span></span><br><span>Traceback (most recent call last):</span><br><span> File "<pyshell#1>", line 1, in <module></span><br><span> from PyQt5.QtCore import QTimer</span><br><span>ImportError: No module named sip</span><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>import sip</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>from PyQt5.QtCore import QTimer</span><br></blockquote></blockquote></blockquote><span></span><br><span>Traceback (most recent call last):</span><br><span> File "<pyshell#3>", line 1, in <module></span><br><span> from PyQt5.QtCore import QTimer</span><br><span>ImportError: cannot import name QTimer</span><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>dir(PyQt5.QtCore)</span><br></blockquote></blockquote></blockquote><span>['QT_TRANSLATE_NOOP', 'QT_TR_NOOP', 'QT_TR_NOOP_UTF8', 'Q_ARG', 'Q_CLASSINFO',</span><br><span>'Q_ENUM', 'Q_ENUMS', 'Q_FLAG', 'Q_FLAGS', 'Q_RETURN_ARG', '__doc__', '__name__',</span><br><span>'__package__', 'bin_', 'bom', 'center', 'dec', 'endl', 'fixed', 'flush',</span><br><span>'forcepoint', 'forcesign', 'hex_', 'left', 'lowercasebase', 'lowercasedigits',</span><br><span>'noforcepoint', 'noforcesign', 'noshowbase', 'oct_', 'pyqtPickleProtocol',</span><br><span>'pyqtRemoveInputHook', 'pyqtRestoreInputHook', 'pyqtSetPickleProtocol',</span><br><span>'pyqtSlot', 'qAbs', 'qAddPostRoutine', 'qAddPreRoutine', 'qChecksum',</span><br><span>'qCompress', 'qCritical', 'qDebug', 'qEnvironmentVariable', 'qErrnoWarning',</span><br><span>'qFatal', 'qFloatDistance', 'qFormatLogMessage', 'qFuzzyCompare', 'qInf',</span><br><span>'qInfo', 'qInstallMessageHandler', 'qIsFinite', 'qIsInf', 'qIsNaN', 'qIsNull',</span><br><span>'qQNaN', 'qRegisterResourceData', 'qRemovePostRoutine', 'qRound', 'qRound64',</span><br><span>'qSNaN', 'qSetFieldWidth', 'qSetMessagePattern', 'qSetPadChar',</span><br><span>'qSetRealNumberPrecision', 'qSharedBuild', 'qUncompress',</span><br><span>'qUnregisterResourceData', 'qVersion', 'qWarning', 'qrand', 'qsrand', 'reset',</span><br><span>'right', 'scientific', 'showbase', 'uppercasebase', 'uppercasedigits', 'ws']</span><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><span></span><br><span>Any ideas why this might be? I've been following this build process for years</span><br><span>and never had an issue like this before.</span><br><span></span><br><span>Do I need to also build Python myself using VS2017?</span><br><span></span><br><span>Glenn</span><br><span>_______________________________________________</span><br><span>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></span><br><span><a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></body></html>