Error Message: “Input must be a row vector of characters.”

Error Message: Input must be a row vector of characters.

Solution: This can happen when you pass a directory path into Imatest IT EXE with a trailing slash, and can be fixed by removing the slash:

May cause errors:

sfr.exe "-1" "C:\ImatestSamples\sfr_example.jpg" "C:\Program Files\Imatest\v4.5\IT\bin\" "C:\ImatestSamples\imatest-v2.ini" "C:\ImatestSamples\Results\"

Fixed:

sfr.exe "-1" "C:\ImatestSamples\sfr_example.jpg" "C:\Program Files\Imatest\v4.5\IT\bin" "C:\ImatestSamples\imatest-v2.ini" "C:\ImatestSamples\Results"
Read More

Python Idle Error: Error writing to output stream.

Error Message: Error writing to output stream. (when using Idle Python GUI)

Solution: Imatest IT writes output to your computer’s standard output. This error occurs when Idle is launched as a standalone GUI app without a connected terminal (i.e., launching from the Start Menu in Windows, or using the “idle &” command in Linux).

To fix this error, you need to launch Idle from the command line.

Windows:   cd “C:\Program Files\Imatest\v4.5\IT\samples\python\”
C:\Python27\Lib\idlelib\idle.py colorcheck_example.py
Linux:   cd /usr/local/Imatest/v4.5/IT/samples/python/colorcheck
idle colorcheck_example.py

Once Idle is opened with the example script, you should now be able to run the module (F5).

Read More

Error Messsage: “Import Error: No module named imatest.it”

Error Messsage: Import Error: No module named imatest.it

Solution: The Imatest IT/Python package has not been installed. Follow the instructions under Other Additional Installation Steps on the Imatest IT Instructions page.

Read More

Error Message: “Exception caught during initialization of Python interface”

Error Message: Exception caught during initialization of Python interface. Details: To call deployed MATLAB code on a win64 machine, you must run a win64 version of Python. Details: C:\Program Files\MATLAB\MATLAB Runtime\v90\runtime\win64

Solution: This is caused by trying to run a 64-bit Imatest IT installation using a 32-bit version of Python. You must install a 64-bit version of Python, and be sure the installation directory is in your PATH variable ahead of the 32-bit version.

Read More

Error Message: “RuntimeError: On Linux, you must set the environment variable “LD_LIBRARY_PATH” to a non-empty string”

Error Message: RuntimeError: On Linux, you must set the environment variable “LD_LIBRARY_PATH” to a non-empty string. For more details, see the package documentation.

Solution: Be sure that your LD_LIBRARY_PATH environment variable is set correctly. See Linux Only: Setting the LD_LIBRARY_PATH” on the Imatest IT Instructions page.

Read More

Error Message: “An unhandled exception of type ‘System.BadImageFormatException'”

Error Message: An unhandled exception of type ‘System.BadImageFormatException’ occurred in mscorlib.dll  Additional information: Could not load file or assembly ‘Imatest.IT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Solution: This is caused by trying to run a 64-bit Imatest IT installation using a an x86 configuration in Visual Studio. Be sure the configuration is set correctly for the version of Imatest you have installed.  Note, because Matlab DLLs are compiled for a specific architecture, the “Any CPU” option may not work properly. It is best to use the configuration specific to your Imatest version (“x64” for 64-bit and “x86” for 32-bit).

Note: As of Imatest 4.5, only 64-bit architectures are supported.

Read More

Error Message: “[module] not registered – Run the License Manager to activate your license or trial”

Error Message: [module] not registered – Run the License Manager to activate your license or trial

Solution: Your copy of Imatest IT is not activated. Follow the activation instructions here, then try again.

Note: You need an activation code for Imatest IT, even for trial usage. If you do not have one, please contact support@imatest.com.

Read More