I got help.
I copied the serial directory from c:python32\lib\site-packages
to …2.58\python\lib
the error I get now is most probably because the Arduino is not attached.
ser = serial.Serial("/dev/tty.usbmodemfa141",9600) # open first serial port
Vector((0.0, 0.0, 0.0, 6.0))
Vector((0.0, 30.0, 0.0, 6.0))
Vector((0.0, 30.0, 0.0, 6.0))
Vector((0.0, 30.0, 30.0, 6.0))
Vector((0.0, 30.0, 60.0, 6.0))
Vector((0.0, 30.0, 90.0, 6.0))
Traceback (most recent call last):
File “D:\RepairableMachines\ArduinoBlenderVaas ornio digitale.blend ornio”,
line 61, in <module>
File “C:\Program Files\Blender Foundation\Blender\blender-2.59-RC-windows32\2.
58\python\lib\serial\serialwin32.py”, line 30, in init
SerialBase.init(self, *args, **kwargs)
File “C:\Program Files\Blender Foundation\Blender\blender-2.59-RC-windows32\2.
58\python\lib\serial\serialutil.py”, line 260, in init
self.open()
File “C:\Program Files\Blender Foundation\Blender\blender-2.59-RC-windows32\2.
58\python\lib\serial\serialwin32.py”, line 56, in open
raise SerialException(“could not open port %s: %s” % (self.portstr, ctypes.W
inError()))
serial.serialutil.SerialException: could not open port /dev/tty.usbmodemfa141: [
Error 3] The system cannot find the path specified.