@Aki.M My environment is:
Python 3.12.2
Pillow 10.2
Pip 24.0
I suspect that updating your python version will fix it.
Edit: yep, the f-string syntax used here requires Python 3.12
Thank you @dingodan for writing an sharing this script.
I made some modifications and added some functionality - namely:
- Added Manual exports
- Added 'Players' value from LB (instead of defaulting to "1+")
- Fixed some error handling
- Added functions to rename exported media, for platforms like ES-DE and GarlicOS that rely on the media files matching the ROM names 1:1.
I uploaded my version of the script here, hope you don't mind: https://github.com/thwonp/scripts/blob/main/launchbox-export.py