<div dir="ltr">HI<div style>I get Sip and PyQt compiled successfully and get both installed.</div><div style>I am using Python 2.7</div><div style><br></div><div style>When executing </div><div style><i>>>> from PyQt4.Qt import *</i></div>
<div style><br></div><div style>It just fails, i cant figure out what is going wrong where.</div><div style>I tried  python -v to get more info, so here is what i get.</div><div style><br></div><div style><div><i>C:\Python27>python -v</i></div>
<div><i># installing zipimport hook</i></div><div><i>import zipimport # builtin</i></div><div><i># installed zipimport hook</i></div><div><i># C:\Python27\lib\site.pyc matches C:\Python27\lib\site.py</i></div><div><i>import site # precompiled from C:\Python27\lib\site.pyc</i></div>
<div><i># C:\Python27\lib\os.pyc matches C:\Python27\lib\os.py</i></div><div><i>import os # precompiled from C:\Python27\lib\os.pyc</i></div><div><i>import errno # builtin</i></div><div><i>import nt # builtin</i></div><div>
<i># C:\Python27\lib\ntpath.pyc matches C:\Python27\lib\ntpath.py</i></div><div><i>import ntpath # precompiled from C:\Python27\lib\ntpath.pyc</i></div><div><i># C:\Python27\lib\stat.pyc matches C:\Python27\lib\stat.py</i></div>
<div><i>import stat # precompiled from C:\Python27\lib\stat.pyc</i></div><div><i># C:\Python27\lib\genericpath.pyc matches C:\Python27\lib\genericpath.py</i></div><div><i>import genericpath # precompiled from C:\Python27\lib\genericpath.pyc</i></div>
<div><i># C:\Python27\lib\warnings.pyc matches C:\Python27\lib\warnings.py</i></div><div><i>import warnings # precompiled from C:\Python27\lib\warnings.pyc</i></div><div><i># C:\Python27\lib\linecache.pyc matches C:\Python27\lib\linecache.py</i></div>
<div><i>import linecache # precompiled from C:\Python27\lib\linecache.pyc</i></div><div><i># C:\Python27\lib\types.pyc matches C:\Python27\lib\types.py</i></div><div><i>import types # precompiled from C:\Python27\lib\types.pyc</i></div>
<div><i># C:\Python27\lib\UserDict.pyc matches C:\Python27\lib\UserDict.py</i></div><div><i>import UserDict # precompiled from C:\Python27\lib\UserDict.pyc</i></div><div><i># C:\Python27\lib\_abcoll.pyc matches C:\Python27\lib\_abcoll.py</i></div>
<div><i>import _abcoll # precompiled from C:\Python27\lib\_abcoll.pyc</i></div><div><i># C:\Python27\lib\abc.pyc matches C:\Python27\lib\abc.py</i></div><div><i>import abc # precompiled from C:\Python27\lib\abc.pyc</i></div>
<div><i># C:\Python27\lib\_weakrefset.pyc matches C:\Python27\lib\_weakrefset.py</i></div><div><i>import _weakrefset # precompiled from C:\Python27\lib\_weakrefset.pyc</i></div><div><i>import _weakref # builtin</i></div><div>
<i># C:\Python27\lib\copy_reg.pyc matches C:\Python27\lib\copy_reg.py</i></div><div><i>import copy_reg # precompiled from C:\Python27\lib\copy_reg.pyc</i></div><div><i># C:\Python27\lib\traceback.pyc matches C:\Python27\lib\traceback.py</i></div>
<div><i>import traceback # precompiled from C:\Python27\lib\traceback.pyc</i></div><div><i># C:\Python27\lib\sysconfig.pyc matches C:\Python27\lib\sysconfig.py</i></div><div><i>import sysconfig # precompiled from C:\Python27\lib\sysconfig.pyc</i></div>
<div><i># C:\Python27\lib\re.pyc matches C:\Python27\lib\re.py</i></div><div><i>import re # precompiled from C:\Python27\lib\re.pyc</i></div><div><i># C:\Python27\lib\sre_compile.pyc matches C:\Python27\lib\sre_compile.py</i></div>
<div><i>import sre_compile # precompiled from C:\Python27\lib\sre_compile.pyc</i></div><div><i>import _sre # builtin</i></div><div><i># C:\Python27\lib\sre_parse.pyc matches C:\Python27\lib\sre_parse.py</i></div><div><i>import sre_parse # precompiled from C:\Python27\lib\sre_parse.pyc</i></div>
<div><i># C:\Python27\lib\sre_constants.pyc matches C:\Python27\lib\sre_constants.py</i></div><div><i>import sre_constants # precompiled from C:\Python27\lib\sre_constants.pyc</i></div><div><i># C:\Python27\lib\locale.pyc matches C:\Python27\lib\locale.py</i></div>
<div><i>import locale # precompiled from C:\Python27\lib\locale.pyc</i></div><div><i>import encodings # directory C:\Python27\lib\encodings</i></div><div><i># C:\Python27\lib\encodings\__init__.pyc matches C:\Python27\lib\encodings\__init__.py</i></div>
<div><i>import encodings # precompiled from C:\Python27\lib\encodings\__init__.pyc</i></div><div><i># C:\Python27\lib\codecs.pyc matches C:\Python27\lib\codecs.py</i></div><div><i>import codecs # precompiled from C:\Python27\lib\codecs.pyc</i></div>
<div><i>import _codecs # builtin</i></div><div><i># C:\Python27\lib\encodings\aliases.pyc matches C:\Python27\lib\encodings\aliases.py</i></div><div><i>import encodings.aliases # precompiled from C:\Python27\lib\encodings\aliases.pyc</i></div>
<div><i>import operator # builtin</i></div><div><i># C:\Python27\lib\functools.pyc matches C:\Python27\lib\functools.py</i></div><div><i>import functools # precompiled from C:\Python27\lib\functools.pyc</i></div><div><i>import _functools # builtin</i></div>
<div><i>import _locale # builtin</i></div><div><i># C:\Python27\lib\encodings\cp1252.pyc matches C:\Python27\lib\encodings\cp1252.py</i></div><div><i>import encodings.cp1252 # precompiled from C:\Python27\lib\encodings\cp1252.pyc</i></div>
<div><i>Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32</i></div><div><i>Type "help", "copyright", "credits" or "license" for more information.</i></div>
<div><i><br></i></div><div><i>>>> from PyQt4.Qt import *</i></div><div><i># C:\Python27\lib\encodings\cp437.pyc matches C:\Python27\lib\encodings\cp437.py</i></div><div><i>import encodings.cp437 # precompiled from C:\Python27\lib\encodings\cp437.pyc</i></div>
<div><i>import PyQt4 # directory C:\Python27\lib\site-packages\PyQt4</i></div><div><i># C:\Python27\lib\site-packages\PyQt4\__init__.pyc matches C:\Python27\lib\site-packages\PyQt4\__init__.py</i></div><div><i>import PyQt4 # precompiled from C:\Python27\lib\site-packages\PyQt4\__init__.pyc</i></div>
<div><i># C:\Python27\lib\atexit.pyc matches C:\Python27\lib\atexit.py</i></div><div><i>import atexit # precompiled from C:\Python27\lib\atexit.pyc</i></div><div><i>import sip # dynamically loaded from C:\Python27\lib\site-packages\sip.pyd</i></div>
<div><br></div><div style>I had a look at the C:\Python27\Lib\site-packages\PyQt4\__init__.py, and it looks like there is nothing in the file, is this correct?</div><div style>Here is the contents of the __init__.py file</div>
<div style><br></div><div style><div><i># Copyright (c) 2012 Riverbank Computing Limited <<a href="mailto:info@riverbankcomputing.com">info@riverbankcomputing.com</a>></i></div><div><i># </i></div><div><i># This file is part of PyQt.</i></div>
<div><i># </i></div><div><i># This file may be used under the terms of the GNU General Public</i></div><div><i># License versions 2.0 or 3.0 as published by the Free Software</i></div><div><i># Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3</i></div>
<div><i># included in the packaging of this file.  Alternatively you may (at</i></div><div><i># your option) use any later version of the GNU General Public</i></div><div><i># License if such license has been publicly approved by Riverbank</i></div>
<div><i># Computing Limited (or its successors, if any) and the KDE Free Qt</i></div><div><i># Foundation. In addition, as a special exception, Riverbank gives you</i></div><div><i># certain additional rights. These rights are described in the Riverbank</i></div>
<div><i># GPL Exception version 1.1, which can be found in the file</i></div><div><i># GPL_EXCEPTION.txt in this package.</i></div><div><i># </i></div><div><i># If you are unsure which license is appropriate for your use, please</i></div>
<div><i># contact the sales department at <a href="mailto:sales@riverbankcomputing.com">sales@riverbankcomputing.com</a>.</i></div><div><i># </i></div><div><i># This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</i></div>
<div><i># WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</i></div><div><br></div></div><div style>Please help, i dont know where what is going wrong.</div><div style>Is there somebody out there that does compile Sip and PyQt with Mingw on Win7?</div>
<div style><br></div><div style>Regards</div><div style>Theuns Heydenrych</div><div style><br></div><div><br></div></div><div style> </div><div style><br></div><div style><br></div><div style><br></div><div style><br></div>
</div>