To be sure, I tried the current pyReScene from source. The output is a little bit more detailed now, although the error remains the same:
D:\Anno_1503_GERMAN-GENESiS>python.exe "C:\Program Files (x86)\pyrescene_22dbaa0\bin\srr" Anno_1503_GERMAN-GENESIS.srr -o out -t temp -y
NOTE: install NumPy to speed up the reconstruction of RARs
with a Recovery Record.
SRR file created with pyReScene Auto 0.5.
Recreating stored file: gns-1503.nfo
Recreating stored file: CD1/gns-ano1.sfv
Recreating stored file: CD2/gns-ano2.sfv
Re-creating RAR file: gns-ano1.001
Trying to rebuild compressed file GNS1503A.BIN.
Traceback (most recent call last):
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\srr.py", line 461, in main
parser.exit(manage_srr(options, infolder, infiles, working_dir))
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\srr.py", line 246, in manage_srr
options.rar_executable_dir, options.temp_dir)
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\main.py", line 1141, in reconstruct
in_folder, hints, auto_locate_renamed)
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\main.py", line 1487, in get_rar_data_object
in_folder, hints, auto_locate_renamed))
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\main.py", line 1758, in compressed_rar_file_factory
nblock, followup_src, solid=False)
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\main.py", line 1883, in __init__
first_block, blocks, thread_count)
File "C:\Program Files (x86)\pyrescene_22dbaa0\rescene\main.py", line 2115, in search_matching_rar_executable
if os.path.getsize(piece) != size_full:
File "C:\Python27\lib\genericpath.py", line 49, in getsize
return os.stat(filename).st_size
WindowsError: [Error 2] The system cannot find the file specified: u'c:\\users\\%username%\\appdata\\local\\temp\\tmp5zs28s_pyReScene\\pyReScene_data_piece.BIN'
Unexpected Error: [Error 2] The system cannot find the file specified: u'c:\\users\\%username%\\appdata\\local\\temp\\tmp5zs28s_pyReScene\\pyReScene_data_piece.BIN'
The release I'm trying to recreate has been packed with an old RAR version, so the FILE_CRC is 0xFFFFFFFF in every file header, except the last one. From what I understood so far, pyReScene does not grab a piece of the .bin file in this case, but tries to compress the whole file. Nevertheless, it tries to read the file size of the (non-existing) piece at one point which leads to a crash (see above).
I might be wrong, but I think this could be a relatively simple bug to fix. I would really appreciate any help. :)