luismesas / pydobot

Python library for Dobot Magician
MIT License
110 stars 59 forks source link

trouble with 'message' module #31

Closed kicker10BOG closed 4 years ago

kicker10BOG commented 4 years ago

It appears that pydobot requires the 'message' module (https://pypi.org/project/message/), but every time I try to install it with pip, it fails with the following error: AttributeError: partially initialized module 'message' has no attribute '__all__' (most likely due to a circular import) easy_install returns the same error.

I'm running Python 3.8 on Windows 10 and also tried Python 3.5 in the WSL.

Has anyone else encountered this problem?

kicker10BOG commented 4 years ago

Ok, I solved the issue and discovered more issues.

It seems as though when importing from within the same directory, you should put a . in front, like from .message import Message

Also, for some reason, pip did not include the enums directory when it installed pydobot, so I added it myself and added the . for importing.

Finally, certain operations failed because the implicit conversion from enum to int failed. I had to modify the code to get it to work, but now it's working fine.

kicker10BOG commented 4 years ago

ok, I was wrong. It's not actually working right. It won't move to the specified coordinates.

kicker10BOG commented 4 years ago

Ok, to get it to actually move to the position, I had to change from MOVL to MOVJ