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

ModuleNotFoundError #11

Open
1 of 2 tasks
ooshnoo opened this issue Apr 11, 2022 · 1 comment
Open
1 of 2 tasks

ModuleNotFoundError #11

ooshnoo opened this issue Apr 11, 2022 · 1 comment

Comments

@ooshnoo
Copy link

ooshnoo commented Apr 11, 2022

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.

  • I am using the macadmins Python distribution that I installed on the affected Mac.
  • I am using a Python 3 runtime I installed myself, and I updated the script's shebang to point to the that python3 binary.

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 ooshnoo closed this as completed Apr 11, 2022
@ooshnoo ooshnoo reopened this Apr 11, 2022
@ooshnoo
Copy link
Author

ooshnoo commented Apr 11, 2022

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

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

No branches or pull requests

1 participant