Python-Arduino-Command-API icon indicating copy to clipboard operation
Python-Arduino-Command-API copied to clipboard

Imports Fail in Python3

Open DragonflyRobotics opened this issue 2 years ago • 2 comments

I just tested this library in Python3. I am in a Conda environment and there are several major issues. It gives a module not found error when you try to import "Arduino from "Arudino". Also, in the init.py, there is a circular import between Shrimp and Arduino. I will attempt to fix the solution and send a pull request.

DragonflyRobotics avatar Mar 08 '22 04:03 DragonflyRobotics

@DragonflyRobotics I'm not sure that this specific repo is maintained anymore, try a forked version from here: https://github.com/thearn/Python-Arduino-Command-API/network

A few specific forks that stick out:

  • https://github.com/mkals/Arduino-Python3-Command-API
  • https://github.com/pigeonburger/pyArduinoAPI
  • https://github.com/rlourette/Python-Arduino-Command-API
  • (mine) https://github.com/Doom4535/Arduino-Python3-Command-API

My fork is currently mostly based off of @mkals fork; I believe I have fixed a bug with the way the arduino's parse the serial protocol (which should fix some issues with return values from reads), I haven't yet removed the default failure return value of '0', which is not good as it is very misleading. I haven't tried the others, but it looks like @rlourette also modified the serial protocol, which may fix this as well.

Doom4535 avatar Apr 02 '22 22:04 Doom4535

I will definitely check them out. Thanks for reaching out!

DragonflyRobotics avatar Apr 04 '22 13:04 DragonflyRobotics