Currently obtaining a
ValueError: Cannot convert 8af14199-c965-4d8c-8aee-3c9f0cc08d03 to Excel error when attempting to write a cell of UUID type. A simple example is shown below.
from openpyxl import Workbook import uuid wb = Workbook(guess_types=True) ws = wb.active ws['A1'] = uuid.uuid4() wb.save('test.xlsx')
Had a quick peek at the
openpyxl/cell/cell._bind_value() method - could there be an extra conditional there for UUIDs, or is there a preferred formatting hook to use?