PyQT ImportError: DLL load failed: The specified procedure could not be found


Several customers have hit this error when using PyQT with Softimage.

# INFO : Traceback (most recent call last):
#   File "somefile.py", line X, in <module>
#     from PyQt4 import QtGui
# ImportError: DLL load failed: The specified procedure could not be found.

On Windows, Softimage 2011 includes four Qt DLLs in the %XSI_BINDIR% folder.

  • QtCore4.dll
  • QtGui4.dll
  • QtOpenGL4.dll
  • QtXml4.dll

We don’t use the Qt DLLs. I believe the idea was to ship the Qt dlls for plugins that use Qt, so that the dlls were already in place. So, you can rename the DLLs to .bak to avoid the error.

References:
conflict with QT DLLs inside Softimage 2011.5
Scripting – struggling to get pyQt to work

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s