TylerGubala/blenderpy

MacOS - ImportError: sys.meta_path is None

Opened this issue · 2 comments

Operating System: MacOS 10.15.6.

Python Version: python3.7.9 Python.org

When Python is shutting down after importing bpy, an obscure error message is posted on MacOS:

ImportError: sys.meta_path is None, Python is likely shutting down
Error: Unknown py-exception, could not convert
zsh: segmentation fault  python3

Steps to reproduce the error:

  1. pip install <PATH_TO_WHEEL_FILE> && bpy_post_install

  2. python3 -c 'import bpy; bpy.ops.render.render(write_still=True)'

Error:

Fra:1 Mem:48.99M (Peak 49.41M) | Time:01:04.00 | Remaining:00:00.02 | Mem:1.76M, Peak:2.04M | Scene, View Layer | Rendered 508/510 Tiles
Fra:1 Mem:48.87M (Peak 49.41M) | Time:01:04.00 | Remaining:00:00.01 | Mem:1.65M, Peak:2.04M | Scene, View Layer | Rendered 509/510 Tiles, Sample 128/128
Fra:1 Mem:48.76M (Peak 49.41M) | Time:01:04.03 | Mem:1.53M, Peak:2.04M | Scene, View Layer | Rendered 510/510 Tiles
Fra:1 Mem:48.76M (Peak 49.41M) | Time:01:04.03 | Mem:1.53M, Peak:2.04M | Scene, View Layer | Finished
Saved: '/tmp/.png'
 Time: 01:04.86 (Saving: 00:00.83)

ImportError: sys.meta_path is None, Python is likely shutting down
Error: Unknown py-exception, could not convert
zsh: segmentation fault  python3

Originally posted by @lakex24 in #43 (comment)

@TylerGubala Hey Tyler, any news about this bug? I encountered the same issue and saw your post at https://developer.blender.org/T82675. Seems like the bug has already been marked as fixed, but I am using the latest version of blenderpy, weird.

Any help will be appreciated, thanks!

👀