frederic-mahe / Hardware-Target-Game-Database

Flash-cart optimized file and folder layouts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using build_pack.py DELETES the first rom it parses and then throws an error when it cannot find the file

plgagne opened this issue · comments

python3 build_pack.py -i "/users/plgagne/romtemp" -d "/Users/plgagne/SMDB.txt" -o "/Users/plgagne/romtemp2" -m "/Users/plgagne/SMDB-miss.txt"
Traceback (most recent call last):
File "/Users/plgagne/Jeux/Roms/Hardware-Target-Game-Database/build_pack.py", line 176, in copy_file
copy_fn(source, dest)
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/users/plgagne/romtemp/GameCube/Rayman 3 - Hoodlum Havoc (USA) (En,Fr,De,Es,It).rvz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/plgagne/Jeux/Roms/Hardware-Target-Game-Database/build_pack.py", line 363, in
parse_folder(SOURCE_FOLDER, DATABASE, OUTPUT_FOLDER)
File "/Users/plgagne/Jeux/Roms/Hardware-Target-Game-Database/build_pack.py", line 285, in parse_folder
copy_file(info['filename'],
File "/Users/plgagne/Jeux/Roms/Hardware-Target-Game-Database/build_pack.py", line 180, in copy_file
copy_fn(source, fixed_dest)
File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/users/plgagne/romtemp/GameCube/Rayman 3 - Hoodlum Havoc (USA) (En,Fr,De,Es,It).rvz'