Hello Marcus, I have removed my sys.path.append line and have left it as you have suggested.
import sys import os import PyQt4 dirname = os.path.dirname(sys.executable) qtconf = os.path.join(dirname, "qt.conf") os.environ["PATH"] += ";" + os.path.dirname(PyQt4.__file__) print os.environ["PATH"] print "qt.conf OK", qtconf if os.path.isfile(qtconf) else "qt.conf MISSING" from PyQt4 import QtGui I did not change or alter the qt.conf file or change it's location. Should I have dug out the conf file and made an alternate copy somewhere? The check prints out that the qt.conf file is ok but I am still getting the error: ImportError: DLL load failed: The specified procedure could not be found. On 9 March 2015 at 16:48, Marcus Ottosson <[email protected]> wrote: > I have appended the PYTHONPATH using sys.path.append and have added the > qtconf file as per Marcus’ answer > > Could you take me through what you did exactly? > > > and also: sys.path.append(‘C:\Python27\lib\site-packages\pyqt4’) > > I think you may have misunderstood me here, this is not the same as: > > os.environ["PATH"] += ";" + "C:\\Python27\\lib\\site-packages\\pyqt4" > > Adding to sys.path is the equivalent of adding to your PYTHONPATH and has > nothing to do with the PyQt binaries, which will look at your PATH. > > What did you do with the qt.conf file? The contents of this file is also > very important and relative to where you put it. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/uVfecbv9XEM/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD-D43ZcC_qqCkepXs7MWw9RC8h-r2JkBbn0th255GyUQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD-D43ZcC_qqCkepXs7MWw9RC8h-r2JkBbn0th255GyUQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Tel - +46 76245 92 90 (Sweden) LinkedIn: http://www.linkedin.com/pub/ben-hearn/50/a64/33b -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM2ybkX%3DauRgrR17SAn%3DhShCjhTjSwUQcSfskjk5QEYqkag%2BBg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
