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

Error with MacBook M3 or Studio Display internal cameras #562

Open
theamnesic opened this issue Mar 19, 2024 · 0 comments
Open

Error with MacBook M3 or Studio Display internal cameras #562

theamnesic opened this issue Mar 19, 2024 · 0 comments
Labels

Comments

@theamnesic
Copy link

theamnesic commented Mar 19, 2024

Describe the bug
OSError: Neither Raspberry Pi nor GPhoto2 nor OpenCV camera detected when running pibooth with a MacBook (M3).

Steps to reproduce the bug

  1. Install pibooth with sudo pip3 install pibooth
  2. Install OpenCV with homebrew brew install opencv
  3. Run pibooth

Logs
With default config file :

pygame 2.5.2 (SDL 2.28.3, Python 3.9.6)
Hello from the pygame community. https://www.pygame.org/contribute.html
pygame-menu 4.0.7
[ INFO    ] pibooth           : Installed plugins: 
[ INFO    ] pibooth           : Starting the photo booth application without physical GPIO, fallback to GPIO mock
/Library/Python/3.9/site-packages/pluggy/_manager.py:469: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: pibooth-core:camera, Hook: pibooth_setup_camera
OSError: Neither Raspberry Pi nor GPhoto2 nor OpenCV camera detected
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
  outcome = Result.from_call(
Traceback (most recent call last):
  File "/usr/local/bin/pibooth", line 8, in <module>
    sys.exit(main())
  File "/Library/Python/3.9/site-packages/pibooth/booth.py", line 490, in main
    app = PiApplication(config, plugin_manager)
  File "/Library/Python/3.9/site-packages/pibooth/booth.py", line 131, in __init__
    self.camera = self._pm.hook.pibooth_setup_camera(cfg=self._config)
  File "/Library/Python/3.9/site-packages/pluggy/_hooks.py", line 501, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "/Library/Python/3.9/site-packages/pluggy/_manager.py", line 119, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/Library/Python/3.9/site-packages/pluggy/_manager.py", line 473, in traced_hookexec
    return outcome.get_result()
  File "/Library/Python/3.9/site-packages/pluggy/_result.py", line 99, in get_result
    raise exc.with_traceback(exc.__traceback__)
  File "/Library/Python/3.9/site-packages/pluggy/_result.py", line 61, in from_call
    result = func()
  File "/Library/Python/3.9/site-packages/pluggy/_manager.py", line 470, in <lambda>
    lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
  File "/Library/Python/3.9/site-packages/pluggy/_callers.py", line 155, in _multicall
    teardown[0].send(outcome)
  File "/Library/Python/3.9/site-packages/pibooth/plugins/camera_plugin.py", line 28, in pibooth_setup_camera
    cam = camera.find_camera()
  File "/Library/Python/3.9/site-packages/pibooth/camera/__init__.py", line 52, in find_camera
    raise EnvironmentError("Neither Raspberry Pi nor GPhoto2 nor OpenCV camera detected")
OSError: Neither Raspberry Pi nor GPhoto2 nor OpenCV camera detected

pibooth-diag give:

pygame 2.5.2 (SDL 2.28.3, Python 3.9.6)
Hello from the pygame community. https://www.pygame.org/contribute.html
pygame-menu 4.0.7
Pibooth version installed: 2.0.8
Installed plugins: 
gPhoto2 not installed, cannot diagnose connected DSLR

Environment

  • Sonoma 14.3.1
  • Internal MacBook camera and Studio Display camera
  • Pibooth version 2.0.8
  • gPhoto2 and OpenCV via homebrew
@theamnesic theamnesic added the bug label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant