-
Notifications
You must be signed in to change notification settings - Fork 107
Python 3.7.3 - TypeError: cannot use a string pattern on a bytes-like object #66
Description
Traceback (most recent call last):
File "C:\Users\jorge\Documents\MESTRADO - ENGENHARIA DE ENERGIAS - UNIFEI\DISSERTAÇÃO\Dissertação - Tiago\REFERÊNCIAS\SIMULAÇÃO\BASE TEÓRICA\Utilities-of-the-Future-master\2-Utility_Death_Spiral\Main_Static.py", line 115, in
wb.close()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\workbook.py", line 304, in close
self._store_workbook()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\workbook.py", line 646, in _store_workbook
xml_files = packager._create_package()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\packager.py", line 143, in _create_package
self._write_shared_strings_file()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\packager.py", line 287, in _write_shared_strings_file
sst._assemble_xml_file()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\sharedstrings.py", line 54, in _assemble_xml_file
self._write_sst_strings()
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\sharedstrings.py", line 84, in _write_sst_strings
self._write_si(string)
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\sharedstrings.py", line 96, in _write_si
string = re.sub('(x[0-9a-fA-F]{4})', r'_x005F\1', string)
File "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\re.py", line 192, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object