pySimpleDMX icon indicating copy to clipboard operation
pySimpleDMX copied to clipboard

Adding Python3 compatibility

Open tobypatterson opened this issue 8 years ago • 3 comments

I've been testing using a UltraDMX Micro and a 1ByOne disco ball ($35 Amazon). Seems to run fine using both Python 2.7.11 and 3.5.1 .

  • Use bytearray() to concatenate bytes
  • Removed sys.exit()
  • Use logging instead of print
  • Added a auto_commit argument to the constructor
  • Updated setup to indicate 3.5 compatibility

tobypatterson avatar Jun 10 '16 00:06 tobypatterson

Dude that's awesome. Still getting issues with my device saying it couldn't open on COM4. Not sure what I'm doing wrong

quesojim avatar Jun 25 '16 01:06 quesojim

Try the python2 version, of the original code. I tested on MacOS X and a Rasp Pi2 running Debian - in both cases, there is a special device file in /dev that is created.

tobypatterson avatar Jun 25 '16 02:06 tobypatterson

@c0z3n any chance of this getting merged?

sabjorn avatar Mar 13 '19 22:03 sabjorn