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

Basic macOS-support #175

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Conversation

PixelAlarm
Copy link
Contributor

  • Enable usage on macOS: Add platform "Darwin" to informationservice.py to make app run on macOS

  • add .DS_Store to .gitignore

* Enable usage on macOS

* add .DS_Store to .gitignore
@mgineer85
Copy link
Collaborator

Hey, I am curious, I do not have a mac.
Does the app start for you and is usable?
Which backends work for you? Probably only virtual camera and opencv webcam?

@mgineer85 mgineer85 merged commit d5eef43 into photobooth-app:main Feb 7, 2024
2 of 8 checks passed
@PixelAlarm
Copy link
Contributor Author

Hi,

yes. The app is starting and displays correctly.
„Same“ experience as in linux.
The App is also available in local Network.

As you mentioned, backends are only Virtual webcam and webcamvc2. I have gphoto2 installed, but its not in the backends-list.

If I can help with testing on mac, feel free to contact me :)

@mgineer85
Copy link
Collaborator

Hm, I could add automated tests for Mac also. Not sure how gphoto performs on mac

@flsabourin
Copy link

VirtualCam and Webcamvc2 works fine, but how to get it working with gphoto2?

@mgineer85
Copy link
Collaborator

You mean for Mac? @PixelAlarm did you make it work on your system on a mac? I did not dive deeper in that because I do not own a mac.

@flsabourin
Copy link

You mean for Mac? @PixelAlarm did you make it work on your system on a mac? I did not dive deeper in that because I do not own a mac.

Yes for Mac.
GPhoto2 alone works well (in CLI), but it is not (yet) a backend for photobooth-app apparently.
Unless there is a config I missed?

@mgineer85
Copy link
Collaborator

No you did not miss anything.
I just release a new version 4.1.6 which allows to select the gphoto2 backend on Darwin platform and also installs the gphoto2 pip package.

So please update to latest version, check that it installed gphoto2 as dependency and then try if it works out of the box.

Good luck ;)

https://pypi.org/project/photobooth-app/
244970c

@flsabourin
Copy link

Thanks for your update @mgineer85 !
I now have the gphoto2 option on the UI, however, when I trigger the "Take photo" action, it doesn't seem to recognize the backend and fails:
https://pastebin.com/Jty6g5Ga

Gphoto2 is well installed into the vent
➜ ~ pipx runpip photobooth-app install gphoto2 Requirement already satisfied: gphoto2 in ./.local/pipx/venvs/photobooth-app/lib/python3.13/site-packages (2.5.1)

@mgineer85
Copy link
Collaborator

hi - there must be more logs. We need to see what happend from the start of the app until the moment you trigger a capture.
It seems the initialization fails - no idea yet, why.

When you start the program on the console, you might see live what errors occur.

@PixelAlarm PixelAlarm deleted the basic-macos-support branch January 22, 2025 08:45
@PixelAlarm
Copy link
Contributor Author

You mean for Mac? @PixelAlarm did you make it work on your system on a mac? I did not dive deeper in that because I do not own a mac.

I didn‘t investigate the MacOS-backends further, since I mostly use the Mac-Support for testing some CSS-fiddling.
I‘m looking forward to test the new gPhoto2-addition though.

gphoto2 seems to be not future-proof on macos though: gphoto/libgphoto2#1064 (comment)

@mgineer85
Copy link
Collaborator

I have no idea if gphoto2 will be usable in the future on macos, but good to know about this upcoming issue. Keep it in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants