RSRC file not reading correctly in Windows?
for every .rsrc file I try to open, I get the following error:
rsrcfork.api.InvalidResourceFileError: The data offset (2134016) should point exactly to the end of the file header (256)
example file: https://drive.google.com/open?id=1gpn5mj5os0vwvXcfpVrtlCfs1WNkY_WU
The file that you've uploaded seems to be an AppleDouble file, not a resource file. AppleDouble files contain a file's resource fork (and some extra Macintosh metadata, like the type and creator code), but the format is not the same as a raw resource file, so the rsrcfork library cannot read them directly. You first need to extract the resource fork data from the AppleDouble file.
Unfortunately I don't know of any Windows tools that can extract the resource fork data from an AppleSingle/AppleDouble file. On Mac I use the command-line lsar and unar tools, but they won't help much in this case - when unar extracts resource forks, it can either create native OS X resource forks (which aren't an option on Windows) or AppleDouble files (which you already have)...
According to this guide from the Emaculation website, the Windows tool HFVExplorer can work with AppleDouble files. Perhaps it has an option to extract the resource data? I haven't tried it myself though, as I mostly work under OS X.
I might look into adding native support for AppleSingle/AppleDouble files into the rsrcfork library, or perhaps writing a separate library for handling the format. That should hopefully make it easier to access resource forks on non-Mac systems. It might take a while to implement this though, as I can't find any existing Python libraries for reading the AppleSingle/AppleDouble formats.
I wrote some python that can parse AppleDouble format: https://gist.github.com/sfuller/720ea2ef5917ef6c6d20271b0bd56ce5 You can use it like this:
import appledouble
with open('double.rsrc', 'rb') as f:
double = appledouble.parse(f)
You can then iterate through double.entries to find the resource_fork entry and pass the data of that entry into python-rsrcfork.