-
-
Notifications
You must be signed in to change notification settings - Fork 907
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
[Bug]: No longer works - macos-11.7 x86_64 Python 3.10 #1307
Comments
The issue is with initializing pikepdf, an ocrmypdf dependency that I also maintain. From the same virtual environment where ocrmypdf is installed, please try the following commands
Most likely The issue is not reproducible on CI so there's something more going on than macos x86_64. For that platform pikepdf is built and tested on macos x86_64. If you're able to build pikepdf from source and install to your environment that would be an interesting data point, whether it works or not. Simplified stack trace:
|
I just realized you're on macos-11.7. If you're at all able to upgrade to macos-12, that will likely resolve the issue. The image is built on macos-13 x86_64 with backward compatibility to 10.14 requested, by since Apple no longer supports 11.x it's possible their toolchain doesn't work properly. I'll look at this a little more, but unfortunately the answer is likely to be that 11.7 is too old to support. |
Reproducible now in CI runners - when a macos-11 executes a wheel that nominally supports it but was built on macos-13, we get a crash. |
Thanks for the investigation. You're right about the same error. I cannot update to MacOS12 (easily) as I am on a MBP late-2013. Is there any workaround that I can do to get this working again? |
You can try installing older versions to find one that is compatible. e.g. If Apple can't afford to support your hardware anymore, I don't think I can either. I've tried a number of things, but the overall answer is that I can't get a stable build on anything less than macos-12. |
I'm having maybe the same problem? I'm running MacOS 13.6.6 on a 2018 MBP. Obviously Apple still supports this, though I think it still has the Intel processor instead of Apple. Here's what I get:
|
@dawillcox Chances are if you run @atanasj It seems that some of the tools involved in producing macos wheels fixed bugs and in reality macos-11 has been broken for some time. Currently, it looks like Homebrew has also dropped support for macos-11 so the macos-11 runner tries to build everything from scratch, which takes forever and probably won't finish. Other than using old versions you could also compile pikepdf from source since you have all of the old toolchains and such. |
@jbarlow83, do you mean older versions of ocrmypdf? If so, which versions would you recommend? I tried to install some older versions, but did not work... Maybe because of t pikepdf issues. |
I did install the latest ghostscript with homebrew. But it turns out there was an old arm version left over from who knows when that came first in my path. Removing the old stuff fixed this. Thanks. |
What were you trying to do?
Run the package... Nothing seems to work, not even providing the help menu or version. Current version is
16.2.0
, however, I tried previous versions and still not working.Where are you installing from?
PyPI (pip, poetry, pipx, etc.)
What operating system are you working on?
macOS
Relevant log output
The text was updated successfully, but these errors were encountered: