Last edited on

# Overview¶

When automating PySide applications one may get the following error:

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

To avoid this error the following steps should be used.

# Setup¶

Use a .bat file as AUT, instead of the .exe file. The .bat file contents should be similar to this:

(To look up the path of the Qt DLLs loaded by an application one can use Getting a list of DLLs currently loaded in a process.)

• Ensure that the environment variable `SQUISH_LIBQTDIR` is not set/not being set.
• Ensure that `SQUISH_DIR/paths.ini` does not contain an entry that starts with `UserQtLibDirectory`.