Page MenuHome

macOS code signed release errors with Python ctypes
Closed, ResolvedPublic


System Information
Operating system: macOS 10.14.5
Graphics card: n/a

Blender Version
Broken: Blender 2.80 rc1
Worked: buildbot, any unsigned build

Short description of error
Using ctypes in add-ons is failing to work in the release candidate build that is code signed and notarized.

Exact steps for others to reproduce the error
Run import ctypes in the console editor, a MemoryError will be thrown.

Event Timeline

The latest build should work now, it's identical to the previous one except for different code signing:

Hi @Brecht Van Lommel (brecht) . I'm still seeing an issue with that link you sent.

Here's the error

  File "/Applications/", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/bsavery/Library/Application Support/Blender/2.80/scripts/addons/rprblender/libRadeonProRender64.dylib, 6): no suitable image found.  Did find:
	/Users/bsavery/Library/Application Support/Blender/2.80/scripts/addons/rprblender/libRadeonProRender64.dylib: code signature in (/Users/bsavery/Library/Application Support/Blender/2.80/scripts/addons/rprblender/libRadeonProRender64.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)

We don't sign the dylibs that come with RPR.

No time to test today to replace the official build, but this one should work in theory:

Official build updated now.