04-07-2023, 06:56 PM
(04-07-2023 08:19点)Albert Wrote:You can try updating to the latest version of the mecademicpy library by unzipping the attached folder here:
/Users/brandon/RoboDK/RoboDK.app/Contents/Python/apimecademicpy/
Then, force stop the driver by double clicking on Disconnect and try connecting again.
I took this from the latest official version of mecademicpy:
https://github.com/Mecademic/mecademicpy
Hi Albert,
I tried as directed and no change. I'm not sure why the last part of the path you suggested was apimecademicpy and not mecademicpy. I assume a typo because the former doesn't affect the module __path__ when I directly import mecademicpy.robot, but the latter does. I confirmed with mecademic.robot.__version__ that I'm getting 1.3.0, which is the latest according to their GitHub. Looking through mecademic.robot code, I don't see any reference to _Message.
Given the error message AttributeError: module 'mecademicpy.robot' has no attribute '_Message', it seems like this is apimecademicpy calling something incorrectly, specifically mecademicpy.robot._Message. Does the compiled pyc call mecademicpy.robot._Message?