haircut / better-jamf-policy-deferral

A better way to allow users to postpone Jamf policy execution :sunglasses:
GNU General Public License v3.0
91 stars 21 forks source link

ModuleNotFoundError #11

Open ooshnoo opened 2 years ago

ooshnoo commented 2 years ago

Describe the bug

Script result: Traceback (most recent call last):
  File "/Library/Application Support/JAMF/tmp/Defer Software Updates", line 29, in <module>
    from AppKit import NSWorkspace
ModuleNotFoundError: No module named 'AppKit'

Python 3

Note: Issues opened without specifying one of the following options will be ignored.

To Reproduce Steps to reproduce the behavior: I run the prompt policy that calls the script. Get the following error:

Script result: Traceback (most recent call last):
  File "/Library/Application Support/JAMF/tmp/Defer Software Updates", line 29, in <module>
    from AppKit import NSWorkspace
ModuleNotFoundError: No module named 'AppKit'

What am I missing? running macOS 12.3.1

ooshnoo commented 2 years ago

Also tried it with the macadmins python and reverted script shebang. no change.