Dependency error from Mech-Eye SDK's Python sample

Note:

When multiple Python versions are installed on the client’s industrial control computer, it’s important to ensure that operations are performed under the same Python version.

If you’re using Python within Anaconda, you can try deactivating the current environment with conda deactivate and then running the example code.

The pip3 version needs to be upgraded to the latest version to avoid installing an outdated version of the MechEyeAPI: python3 -m pip install --upgrade pip.

As long as the Mech-Eye SDK version matches the Python sample version, users can use it normally. To ensure smooth operation, the following recommendations can be followed:

  1. It is recommended for customers to use the latest versions of Mech-Eye SDK and Python samples. If an older version of the Python sample is used, when installing Python libraries, it is necessary to specify the version of the MechEyeAPI library (for example: pip install MechEyeAPI==old_version) to use third-party libraries compatible with the old version of Mech-Eye SDK.

  2. If using the latest version of Python samples, a new version of Mech-Eye SDK is required. This is because the new version of Mech-Eye SDK may introduce new features or changes that may not exist in the old SDK, potentially causing errors in the new version of Python samples on the old version of Mech-Eye SDK. Therefore, to avoid issues, it is recommended to use the latest version of Mech-Eye SDK.

In summary, to ensure smooth usage, make sure that the Mech-Eye SDK version matches the Python sample version. This helps to avoid unnecessary compatibility issues and ensures that you can smoothly use all features.