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

macOS release: code signature invalid #19

Open
steffenfritz opened this issue Jul 16, 2021 · 2 comments
Open

macOS release: code signature invalid #19

steffenfritz opened this issue Jul 16, 2021 · 2 comments
Assignees

Comments

@steffenfritz
Copy link

Hi!

  1. I downloaded release version 0.3.10 for macOS
  2. chmod +x openrefine-client_0-3-10_macos
  3. ./openrefine-client_0-3-10_macos

Directly after the start this leads to this error:

[2053] Error loading Python lib '/var/folders/rt/mbz5zkp533sgg49fmm6ky3tr0000gn/T/_MEIbj0YQp/Python': dlopen: dlopen(/var/folders/rt/mbz5zkp533sgg49fmm6ky3tr0000gn/T/_MEIbj0YQp/Python, 10): no suitable image found.  Did find:
	/var/folders/rt/mbz5zkp533sgg49fmm6ky3tr0000gn/T/_MEIbj0YQp/Python: code signature invalid for '/var/folders/rt/mbz5zkp533sgg49fmm6ky3tr0000gn/T/_MEIbj0YQp/Python'

macOS Version 11.4 on M1

@felixlohmeier
Copy link
Member

Hi Steffen, Thank you very much for raising this issue!

This seems to be a PyInstaller issue which was fixed in PyInstaller 4.2

Recent version of python on macOS have their Python shared library signed due to Gatekeeper requirements. Due to partial collection of content from the Python.framework, the copy of Python shared library that we bundle with frozen application ends up with its signature invalidated, and refuses to load regardless of Gatekeeper settings.

Unfortunately, I can't just generate a new executable for macOS with a newer PyInstaller version because PyInstaller dropped support for Python 2 with version 4.0.

I probably won't find a quick solution. So for now you are left with two options:

  1. native installation in a Python2 environment.
  2. using the Docker container

@felixlohmeier felixlohmeier self-assigned this Jul 16, 2021
@ncarboni
Copy link

Same problem here. Using docker (although not ideal) solve the issue. Just a note, if you are using Docker with an Apple Silicon the correct command should include the string --platform linux/amd64, as below:

docker run --rm --platform linux/amd64 --network=host -v ${PWD}:/data:z felixlohmeier/openrefine-client:v0.3.10

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

No branches or pull requests

3 participants