0

I am building a native macOS application from a Python program that uses wxPython (and ultimately wxWidgets) to present a GUI using py2app. However when I start the built .app, I get a permission prompt that says "<APP_NAME> would like to access your photos." However my app really has no special interest in the Photos directory. How do I get rid of this prompt?

enter image description here

In case it's useful, I'm testing on macOS 10.14 (Mojave).

David Foster
  • 6,931
  • 4
  • 41
  • 42
  • This is clearly an OS permissions issue, not a coding problem. – Rolf of Saxony Mar 22 '21 at 08:43
  • @RolfofSaxony Could you describe what you mean by an "OS permissions issue"? – David Foster Mar 23 '21 at 17:05
  • Precisely what I said. Clearly, some access/security component on your Mac is keeping an eye on what is accessing what. That message isn't coming out of your code or wxpython, so it looks like you might have to configure something else on your system to whitelist what you're attempting to do. – Rolf of Saxony Mar 23 '21 at 17:14
  • See: https://stackoverflow.com/questions/21848033/access-denied-using-py2exe could be the issue – Rolf of Saxony Mar 23 '21 at 17:17
  • Nope. That's py2exe on Windows. This prompt is Mac-specific, related to py2app, and raised by the operating system itself rather than 3rd party software. I know this because this type of dialog was raised for a large number of (non-Python) native apps after a major OS upgrade. – David Foster Mar 24 '21 at 18:53
  • In other words, you're confirming my original contention. It's not a coding issue. So this question would be better served in a different forum. – Rolf of Saxony Mar 24 '21 at 20:05

0 Answers0