macOS: addons fail to import due to Python 3.9 libraries linking against libz.dylib #85648
Labels
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
Interest: X11
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#85648
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: MacOs 11.2
Graphics card: AMD Radeon Pro 5500M 8 GB
Blender Version
Broken: MacOs 2.93
Worked: 2.92 and Win10 2.93
Short description of error
Addon Rigify won't load with 2.93 MacOs version.
Exact steps for others to reproduce the error
Run
import binascii
in Blender.Or
Win10 version works fine.
Thanks!
Piotr
Added subscriber: @Pyer
#85801 was marked as duplicate of this issue
#85624 was marked as duplicate of this issue
#85757 was marked as duplicate of this issue
Ok I found a workaround. It's a Mac security issue.
When I disable the Mac's SIP (System Integrity Protection), I can load the Addon without any errors and everything works as expected.
I have no clue how to solve this at a Blender (Rigify?) level. Can anyone help? I'm not sure it's a good idea to lower the system's security to be able to run an addon...
Added subscriber: @ankitm
Related: #85624 (Animation Nodes ; macOS Big Sur ; python 3.9.0)
Ah great! I tried searching for similar issues but failed miserably. Thanks @ankitm !
Changed status from 'Needs Triage' to: 'Needs User Info'
Does a new build from https://builder.blender.org/download/ fix this issue ?
Added subscriber: @Ankit-1
@Ankit-1 Meel (ankitm)
Nope sorry. The latest nightly gives me the same error (related to Python?). I have to disable the mac's SIP to access the addon...
Could you share the output of
xattr -l -r /Applications/Blender.app
?Sure! Here are two outputs from two machines (working and non-working). In case it's helpful...Output_With_SIP_NotWorking.txt
Output_Without_SIP_Working.txt
Changed status from 'Needs User Info' to: 'Confirmed'
Added subscriber: @sebbas
The ID of libz seems correct.. so not sure why our library has a relative rpath ?
The hotfix is
install_name_tool -change ...
but would be nice to fix cmake builder somehow.CC @sebbas
@ankitm Interesting .. not yet sure if it's is related to the issue but this looks odd to me:
https://developer.blender.org/diffusion/BL/browse/trunk/lib/darwin/python/lib/python3.9/site-packages/Cython-0.29.21-py3.9.egg-info/SOURCES.txt$18
Added subscriber: @MACHIN3
Added subscribers: @CookItOff, @StephenSwaney
Added subscribers: @Luison, @EAW
I think this is a side effect of
c70eb30240
macOS Python libraries should either link statically against zlib with a patch like that of linux, or use the system installation of Zlib.
Still need to build python to see if removing that dependency and those flags helps this issue.
Removed subscriber: @Ankit-1
Or reuse the patch to see if Python stays happy with libz_pic.a.
Added subscriber: @randum
@ankitm Thanks for merging my report. I was aware of this one here, but thought a more generalized phrasing would draw more attention to, what looks like a very pressing issue.
If you think it makes sense, maybe rename this one here to reflect that?
Anyway, thanks for the fix, hope it gets committed quickly!
Rigify not loading with latest MacOs 2.93 nightliesto macOS: addons fail to import due to Python 3.9 libraries linking against libz.dylibThis issue was referenced by
9fe53bd4a1
Changed status from 'Confirmed' to: 'Resolved'
Changed status from 'Resolved' to: 'Confirmed'
Actually it will be resolved after libraries are committed https://developer.blender.org/diffusion/BL/history/trunk/lib/
Changed status from 'Confirmed' to: 'Resolved'
https://developer.blender.org/rBL62584
Added subscriber: @shannonz-1
I just discovered this issue today for OS Linux/Manjaro -- cannot [install...] any addons from .zip file. This is currently affecting all blender versions I have tried:
2.83.9
2.91.0
2.91.2 (Date 2021-01-19 16:15, Hash:
5be9ef4177
, Branch: master)PYTHON INTERACTIVE CONSOLE 3.9.1 (default, Feb 6 2021, 06:49:13) [GCC 10.2.0]
2.92.0 (release) (Date: 2021-02-24 1625, Hash:
02948a2cab
, Branch: master)PYTHON INTERACTIVE CONSOLE 3.7.7 (default, Jul 9 2020, 12:52:49) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]
2.93.0 alpha build (Date: 2021-02-27 20:22, Hash:
92743cc895
, Branch: master)PYTHON INTERACTIVE CONSOLE 3.9.2 (default, Feb 25 2021, 12:19:39) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)]
system-info.txt system-info.txt from 2.93.0 alpha build
...
have the libraries been committed yet? (as mentioned by Ankit Meel, above)
Then it's not the same issue. Please file a new bug report, or search previous reports for something related.
Yes, and new Blender builds have been uploaded too. But again, yours is a different issue.
ok, will file a new bug report.
I followed #85801 (Any addon installation from zip will fail in Blender 2.93 (using Python 3.9.1)) to get to this (#85648). It appeared that similar bug reports were being lumped here. Sorry for my confusion.