Repository navigation
c2pa-python 0.12.0 version running error for macOS x86_64 #138
Description
Activity
macOS x86_64 is currently unsupported for the latest versions if you install from wheels.
c2pa-pythonuses native libraries, that we need to build for each platform. Due to this, we now have stronger limitations regarding supported platforms. Especially for macOS x86_64, as I believe Apple is sunsetting the Intel-based machines.A workaround for this is installing from git directly, not using the wheels. I see that we have the needed native libraries available for download, but not the x86_64 wheel build.
I will look into updating code and builds to provide an universal mac wheel, which should fix the issue (but it will take a minute). I'll post a PR/WIP PR here too once I start having something.
Thanks, I look forward to your update. It makes me really hard to develop in local environment, Thanks.
@tmathern for the workaround, do you mean
pip install git+https://github.com/contentauth/c2pa-python.git?after I installed this , I still get the same error, what is the missing step?
raise RuntimeError(f"Could not find {lib_name} in any of the search paths (Platform: {platform_id}, Architecture: {current_arch})") RuntimeError: Could not find libc2pa_c.dylib in any of the search paths (Platform: universal-apple-darwin, Architecture: x86_64)Hi @tmathern , I tried install the specific branch:
pip install git+https://github.com/contentauth/c2pa-python.git@mathern/switch-to-universal-mac-buildthe same issue occurs, I still didn't see the libc2pa_c.dylib file in the installed site-packages. please check the below screenshot. Is my process correct? the python version is Python 3.11.1

Right, I missed to add the download of the native libs when installing from git. I think you'll have to wait a little bit for the new version of the wheel supporting mac universal then. (Or for me finding time to fix that download when installing from git).
it doesn't matter, i can wait till the new release then. Thanks very much for the dedicated focus.
Reacted by tmathernI've been working on #148. I ran a test publish to PyPI test (from that PR), a v0.14.0-alpha: https://test.pypi.org/project/c2pa-python/0.14.0a0/ that should have all wheels for mac (arm, Intel, universal). Do you want to give it a try @ttbuffey ?
#146 makes the published wheels mac universal until I get the arch builds. There will shortly be a v0.15.0 publish to PyPI accordingly.
- Reacted by ttbuffey
when I upgraded c2pa-python from 0.6.0 to 0.12.0, it show the below error. It seems lacking some lib files for macOS x86_64, it only support macOSARM
when I use verison 0.6.0, it worked before.