Exception has occurred: AttributeError (note: full exception trace is shown but execution is paused at: <module>)
'str' object has no attribute 'is_default'
File "/Users/jeffery/Library/Python/3.9/lib/python/site-packages/pyexcelerate/Workbook.py", line 77, in _align_styles
obj and not obj.is_default
File "/Users/jeffery/Library/Python/3.9/lib/python/site-packages/pyexcelerate/Workbook.py", line 96, in _save
self._align_styles()
File "/Users/jeffery/Library/Python/3.9/lib/python/site-packages/pyexcelerate/Workbook.py", line 103, in save
self._save(fp)
File "/Users/jeffery/Downloads/ysl/xls_write.py", line 227, in generate_excel3
workbook.save("output.xlsx")
File "/Users/jeffery/Downloads/ysl/xls_write.py", line 230, in <module> (Current frame)
generate_excel3()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
AttributeError: 'str' object has no attribute 'is_default'
have write a test script to test write excel
but it raise error