Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmap resize unavailable #109

Open
ahmedbax opened this issue Oct 8, 2023 · 1 comment
Open

mmap resize unavailable #109

ahmedbax opened this issue Oct 8, 2023 · 1 comment

Comments

@ahmedbax
Copy link

ahmedbax commented Oct 8, 2023

Hi
I am running refextract on MacOS Sonoma 14.0.
I had a consistent error with mmap resize in clean_pdf_file in engine.py.
To fix it, I removed the if elif then block in the function and used flush to do all the work as follows:
mmfile.flush(start, end + offset - start).
I believe that should do the work without invoking the system dependent resize and move.
Please let me know what you think.
Best wishes.
Ahmed

@gavinsalam
Copy link

It would be great if this fix (or an adaptation of it) could be incorporated. Currentlypip install refextract gives a version that doesn't work on MacOS 14.X.
Thanks,
Gavin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants