Mech-Eye Api used in script for Calc Results by Python

I am trying to get the temperature of the camera and recognized pose in 1 document.
Using Mech Vision i did object recognition and give the resulting pose to Calc Results by Python step for data saving.

Inside the Python script, I am also integrating the MechEyeAPI module to get the camera temperature.
and writing them to a document together with the pose. If i run the python script alone it can properly retrieve the camera temperatures.

My problem is I have these errors in mech vision

It does not seem to recognize the MechEyeAPI module even though i already did the pip install of MechEyeAPI in MechVision’s python directory.

PS C:\Mech-Mind\Mech-Vision & Mech-Viz-2.2.1\Mech-Vision\python> pip install MechEyeAPI
Requirement already satisfied: MechEyeAPI in C:\Users\HidP0039\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages (1.5.8.2.1.0)
Requirement already satisfied: numpy in C:\Users\HidP0039\AppData\Local\Python\pythoncore-3.14-64\Lib\site-packages (from MechEyeAPI) (2.4.4)

What is the solution for this error?
Thank You,

Cd C:\Mech-Mind\Mech-Vision & Mech-Viz-2.2.1\Mech-Vision\python, and type “.\python.exe -m pip install MechEyeAPI”.
“pip install MechEyeAPI” would install the MechEyeAPI to your default Python, not the Vision Python

1 Like

Thank you for the reply, Module is now successfuly installed in Vision Python. But another problem occurred

[ Project1 ] Calc Results by Python_1: Exception caught when running the function “loadPyModule”: OSError: [WinError 127] The specified procedure could not be found At: C:\Mech-Mind\Mech-Vision & Mech-Viz-2.2.1\Mech-Vision\python\lib\ctypes_init_.py(374): init C:\Mech-Mind\Mech-Vision & Mech-Viz-2.2.1\Mech-Vision\python\lib\site-packages\mecheye_init_.py(36): (228): _call_with_frames_removed (850): exec_module (695): _load_unlocked (986): _find_and_load_unlocked (1007): _find_and_load (228): _call_with_frames_removed (972): _find_and_load_unlocked (1007): _find_and_load C:.…/script\TempDrift.py(3): (228): _call_with_frames_removed (850): exec_module (695): _load_unlocked (986): _find_and_load_unlocked (1007): _find_and_load .

How should i solve this problem this time?
Thank You

I have asked AI, here is the reply: " the MechEyeAPI version MUST be 2.5.4. Other versions (e.g. 2.6.0) will fail inside Mech-Vision, so install (this exact version only) "

type “.\python.exe -m pip install MechEyeAPI==2.5.4”, and restart the Mech-Vision software, I have import mecheye correctly.

Thank you, This Solved it