Advanced MAME Launcher - MAME frontend for Kodi
AML 0.9.12 gets this error with MAME 0.223 when running All in One in Setup Plugin:
python:
2020-08-08 17:34:59.655 T:3888  NOTICE: AML INFO : Making Manufacturer catalog ...
2020-08-08 17:35:00.450 T:3888   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xc5' in position 21: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\addon.py", line 36, in <module>
                                                resources.main.run_plugin(sys.argv)
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\resources\main.py", line 405, in run_plugin
                                                command_context_setup_plugin()
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\resources\main.py", line 5499, in command_context_setup_plugin
                                                db_dic['main_pclone_dic'], db_dic['assets'])
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\resources\mame.py", line 5874, in mame_build_MAME_catalogs
                                                _cache_index_builder('Manufacturer', cache_index_dic, catalog_all, catalog_parents)
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\resources\mame.py", line 5158, in _cache_index_builder
                                                'hash'         : fs_render_cache_get_hash(cat_name, cat_key)
                                              File "C:\Users\HTPC\AppData\Roaming\Kodi\addons\plugin.program.AML\resources\disk_IO.py", line 1448, in fs_render_cache_get_hash
                                                return hashlib.md5(prop_key).hexdigest()
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xc5' in position 21: ordinal not in range(128)
                                            -->End of Python script error report<--
Changing line 1448 in disk_IO.py from this:
python:
return hashlib.md5(prop_key).hexdigest()
to this:
python:
return hashlib.md5(prop_key.encode('utf-8')).hexdigest()
will avoid the error, although I do not know if this is a valid fix.
Reply


Messages In This Thread
RE: Advanced MAME Launcher - MAME frontend for Kodi - by Dax9 - 2020-08-09, 01:37
Logout Mark Read Team Forum Stats Members Help
Advanced MAME Launcher - MAME frontend for Kodi2