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

blenderproc quickstart on Mac M2 raises error. #1070

Open
ootts opened this issue Feb 22, 2024 · 3 comments
Open

blenderproc quickstart on Mac M2 raises error. #1070

ootts opened this issue Feb 22, 2024 · 3 comments
Labels
question Question, not yet a bug ;)

Comments

@ootts
Copy link

ootts commented Feb 22, 2024

Describe the issue

BlenderProc on Mac M2 cannot start.

Minimal code example

blenderproc quickstart

Files required to run the code

None. quickstart is built-in.

Expected behavior

No exception is expected.
What happened is as follows:

>>> blenderproc quickstart
Warning: Changed install path from /home_local/USERNAME... to /Users/USERNAME..., there is no /home_local/ on this machine.
Using blender in /Users/USERNAME/blender/blender-3.5.1-macos-x64/Blender.app
'blenderproc quickstart' is an alias for 'blenderproc run /Users/USERNAME/opt/anaconda3/lib/python3.9/site-packages/blenderproc/scripts/quickstart.py'
Using temporary directory: /tmp/blender_proc_382d4b389fdd42b7836b9fa5e9251501
Blender 3.5.1 (hash e1ccd9d4a1d3 built 2023-04-24 23:46:26)
Device with name Apple M2 Pro supports metal minimum requirements
Error: Python: Traceback (most recent call last):
  File "/Users/USERNAME/opt/anaconda3/lib/python3.9/site-packages/blenderproc/scripts/quickstart.py", line 1, in <module>
    import blenderproc as bproc
  File "/Users/USERNAME/opt/anaconda3/lib/python3.9/site-packages/blenderproc/__init__.py", line 19, in <module>
    from .python.utility.SetupUtility import SetupUtility
  File "/Users/USERNAME/opt/anaconda3/lib/python3.9/site-packages/blenderproc/python/utility/SetupUtility.py", line 15, in <module>
    import requests
  File "/Users/USERNAME/blender/blender-3.5.1-macos-x64/Blender.app/Contents/Resources/3.5/python/lib/python3.10/site-packages/requests/__init__.py", line 133, in <module>
    from . import utils
  File "/Users/USERNAME/blender/blender-3.5.1-macos-x64/Blender.app/Contents/Resources/3.5/python/lib/python3.10/site-packages/requests/utils.py", line 42, in <module>
    DEFAULT_CA_BUNDLE_PATH = certs.where()
  File "/Users/USERNAME/blender/blender-3.5.1-macos-x64/Blender.app/Contents/Resources/3.5/python/lib/python3.10/site-packages/certifi/core.py", line 37, in where
    _CACERT_PATH = str(_CACERT_CTX.__enter__())
AttributeError: 'PosixPath' object has no attribute '__enter__'. Did you mean: '__bytes__'?

Error: script failed, file: '/Users/USERNAME/opt/anaconda3/lib/python3.9/site-packages/blenderproc/scripts/quickstart.py', exiting.
Cleaning temporary directory

BlenderProc version

v2.7.0

@ootts ootts added the question Question, not yet a bug ;) label Feb 22, 2024
@cornerfarmer
Copy link
Member

Hey @ootts,

unfortunately, I dont have a M2 available to reproduce this error. Were you able to solve this issue?

@ootts
Copy link
Author

ootts commented Apr 2, 2024

I tried but failed. I feel like any M-chip Mac should be able to reproduce this error. Do you have any?

@cornerfarmer
Copy link
Member

Hey @ootts, unfortunately I was not able to reproduce this issue on other M chips. Could you say which python version you use? Also are using a condo env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants