Traceback (most recent call last):


 "foo.py", line 47, in <module>

test_primitive(arr, obj)


 "foo.py", line 10, in test_primitive

return p.bind(x, foo=foo)


 "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/core.py", line 274, in bind

return self.impl(*args, **kwargs)


 "foo.py", line 14, in test_primitive_impl

return xla.apply_primitive(p, x, foo=foo)


 "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/interpreters/xla.py", line 224, in apply_primitive

compiled_fun = xla_primitive_callable(prim, *unsafe_map(arg_spec, args), **params)
TypeError: unhashable type: 'SomeObject'

Traceback (most recent call last):


 "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 <module>

wb.close()


 "C:\Users\jorge\AppData\Local\Programs\Python\Python37-32\lib\site-packages\xlsxwriter\workbook.py", line 304, in close

self._store_workbook()


 "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()


 "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()


 "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()


 "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()


 "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)


 "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)


 "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