RoboDK Forum
Mecademic driver on MacOS not working- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:RoboDK错误(//www.sinclairbody.com/forum/Forum-RoboDK-bugs)
+--- Thread: Mecademic driver on MacOS not working (/Thread-Mecademic-driver-on-MacOS-not-working)



Mecademic driver on MacOS not working-bc2297-04-06-2023

I'm having an issue connecting to a Meca500 R3 arm via MacOS. When I try to connect, I get an error with apimecademicpy.py. Here's the error:

Code:
python /Users/brandon/RoboDK/RoboDK.app/Contents/MacOS/apimecademicpy.py
Traceback (most recent call last):
File "/Users/brandon/RoboDK/RoboDK.app/Contents/MacOS/apimecademicpy.py", line 26, in
exec("from v" + version_str + ".apimecademicpy import *")
File "", line 1, in
File "C:\RoboDK\api\robot\apimecademicpy.py", line 98, in
File "C:\RoboDK\api\robot\apimecademicpy.py", line 175, in MecaRobot
AttributeError: module 'mecademicpy.robot' has no attribute '_Message'
Note that despite the windows paths listed above, I assure you this is on MacOS. Specifically Ventura, robodk 5.5.3.-23011. I see the same error in the GUI log and running python apimecademicpy.py in terminal. Thanks for the help

-Brandon


RE: Mecademic driver on MacOS not working-Albert-04-07-2023

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


RE: Mecademic driver on MacOS not working-bc2297-04-07-2023

(04-07-2023, 08:19 AM)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?


RE: Mecademic driver on MacOS not working-bc2297-04-07-2023

Also, I'll be away from work for the next week. So please don't let a lapse in my responses stop with any new help/suggestions. Thanks!


RE: Mecademic driver on MacOS not working-Albert-04-08-2023

We updated RoboDK to the latest version for Mac, including our latest version of the apimecademicpy driver (which fixes the specific issue related to _Message).

You can take the latest version here:
//www.sinclairbody.com/downloads/Install-RoboDK.dmg

Let us know if you still have issues.


RE: Mecademic driver on MacOS not working-bc2297-04-17-2023

Hi Albert, thanks for the follow-up! Things seem to be working as expected now.

-Brandon