wheeler-microfluidics / dmf-control-board-firmware

Firmware for an Arduino-based DMF control board and a Python module for communicating with it over a serial connection.
http://microfluidics.utoronto.ca/trac/dropbot/wiki/ControlBoard
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

ArgumentError: Python argument types in DMFControlBoard.connect did not match C++ signature #8

Closed cfobel closed 7 years ago

cfobel commented 7 years ago

Set up

Dependency versions:

Expected behaviour

Successful connection to control board established with return code of 0.

Observed behaviour

The following exception occurs here:

ArgumentError: Python argument types in
    DMFControlBoard.connect(DMFControlBoard, unicode, int)
did not match C++ signature:
    connect(DMFControlBoard {lvalue}, char const*, unsigned int)
cfobel commented 7 years ago

Fixed by e6b14968b97cbfa0b9ce800320df2977f644849a.

As of pyserial==3.2.1, serial port names returned by serial.tools.list_ports.comports() are unicode strings instead of str strings. This caused an issue with the Boost Python binding for the C++ connect method.