I want to execute the python samples but get an error.
I use Python 3.11 (simply installed from python.org) and installed the MechEyeAPI:
When running the samples I get the following error:
How to fix this?
I also reinstalled Python and installed the MechEyeAPI from scratch but same outcome.
On another computer I ran Python 3.9 (in Anaconda environment) and have no issues.
The pyd_files that are found are the same on both computers.
It’s possible that the issue is caused by version incompatibility. You can check whether the versions of the MechEye API and the sample programs are consistent. For specific troubleshooting, you can refer to: Dependency error from Mech-Eye SDK's Python sample
Thank you for the quick feedback.
It was indeed a version incompatiibility issue.
MechEyeAPI-2.3.0 was installed even though my SDK has version 2.3.4.
After upgrading pip and upgrading the MechEyeAPI version to 2.3.4 everything works as expected.
Does the MechEyeAPI python module have to have the same version as the MechEye SDK that is installed (e.g. both 2.3.4) in order to work properly? @Mech-Mind_Dshuai
You only need to ensure that the MechEyeAPI version installed via pip matches the version of the sample programs you are running. Currently, the Python version of MechEyeAPI does not depend on the MechEyeSDK software.