macOS code signed release errors with Python ctypes #66986

Closed
opened 2019-07-15 13:57:18 +02:00 by Brecht Van Lommel · 16 comments

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.

**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.
Author
Owner

Added subscriber: @brecht

Added subscriber: @brecht
Author
Owner
Possible solution here: https://code.activestate.com/lists/pythonmac-sig/24597/
Author
Owner

Added subscribers: @ArtoKitula, @Sergey

Added subscribers: @ArtoKitula, @Sergey

This issue was referenced by e66c3589a2

This issue was referenced by e66c3589a2a67d880f4d3dbfa7e3ba473c3751b8

Added subscriber: @JamesCrowther

Added subscriber: @JamesCrowther

thanks @brecht :D

thanks @brecht :D
Brecht Van Lommel self-assigned this 2019-07-15 14:44:28 +02:00
Author
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Owner

The latest build should work now, it's identical to the previous one except for different code signing:
https://download.blender.org/release/Blender2.80/blender-2.80rc1-macOS.dmg

The latest build should work now, it's identical to the previous one except for different code signing: https://download.blender.org/release/Blender2.80/blender-2.80rc1-macOS.dmg

Added subscriber: @BrianSavery

Added subscriber: @BrianSavery

Hi @brecht . I'm still seeing an issue with that link you sent.

Here's the error

types.CDLL(str(rpr_lib_path))
  File "/Applications/Blender.app/Contents/Resources/2.80/python/lib/python3.7/ctypes/__init__.py", 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.

Hi @brecht . I'm still seeing an issue with that link you sent. Here's the error ``` types.CDLL(str(rpr_lib_path)) File "/Applications/Blender.app/Contents/Resources/2.80/python/lib/python3.7/ctypes/__init__.py", 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.

This issue was referenced by c42b7f8434

This issue was referenced by c42b7f843464a810ffd587704ab1ceaf9fee0172
Author
Owner

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Author
Owner

No time to test today to replace the official build, but this one should work in theory:
https://download.blender.org/ftp/brecht/builds/blender-2.80rc1-macOS.dmg

No time to test today to replace the official build, but this one should work in theory: https://download.blender.org/ftp/brecht/builds/blender-2.80rc1-macOS.dmg

Thanks @brecht That seems to do the trick.

Thanks @brecht That seems to do the trick.
Author
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Owner

Official build updated now.

Official build updated now.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#66986
No description provided.