title: importing pyautogui on python 3.9.6 not working
body: <p>I tried to import pyautogui on python 3.9.6 and I got these error messages. I tried installing pyobjc and more but its still not working. Any ways to fix this? Also this is my error message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/_pyautogui_osx.py&quot;, line 5, in &lt;module&gt;
      import Quartz
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Quartz/__init__.py&quot;, line 6, in &lt;module&gt;
      import AppKit
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/AppKit/__init__.py&quot;, line 10, in &lt;module&gt;
      import Foundation
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Foundation/__init__.py&quot;, line 9, in &lt;module&gt;
      import CoreFoundation
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/CoreFoundation/__init__.py&quot;, line 9, in &lt;module&gt;
      import objc
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/objc/__init__.py&quot;, line 37, in &lt;module&gt;
      from ._context import *  # noqa: F401, F403, E402
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/objc/_context.py&quot;, line 29, in &lt;module&gt;
      from typing import Any
    File &quot;/Users/ognen/Desktop/Programs/typing.py&quot;, line 8, in &lt;module&gt;
      pyautogui.write(x, interval = 0.01)   
  AttributeError: partially initialized module 'pyautogui' has no attribute 'write' (most likely due to a circular import)
  </code></pre>
  <p>During handling of the above exception, another exception occurred:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/ognen/Desktop/Programs/BestPhone.py&quot;, line 19, in &lt;module&gt;
      import pyautogui
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/__init__.py&quot;, line 146, in &lt;module&gt;
      from . import _pyautogui_osx as platformModule
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/_pyautogui_osx.py&quot;, line 7, in &lt;module&gt;
      assert False, &quot;You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html&quot;
  AssertionError: You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html
  Skynet-prototype-256:Programs ognen$ python3 BestPhone.py
  Traceback (most recent call last):
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/_pyautogui_osx.py&quot;, line 5, in &lt;module&gt;
      import Quartz
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Quartz/__init__.py&quot;, line 6, in &lt;module&gt;
      import AppKit
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/AppKit/__init__.py&quot;, line 10, in &lt;module&gt;
      import Foundation
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Foundation/__init__.py&quot;, line 9, in &lt;module&gt;
      import CoreFoundation
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/CoreFoundation/__init__.py&quot;, line 9, in &lt;module&gt;
      import objc
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/objc/__init__.py&quot;, line 37, in &lt;module&gt;
      from ._context import *  # noqa: F401, F403, E402
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/objc/_context.py&quot;, line 29, in &lt;module&gt;
      from typing import Any
    File &quot;/Users/ognen/Desktop/Programs/typing.py&quot;, line 8, in &lt;module&gt;
      pyautogui.write(x, interval = 0.01)   
  AttributeError: partially initialized module 'pyautogui' has no attribute 'write' (most likely due to a circular import)
  </code></pre>
  <p>During handling of the above exception, another exception occurred:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/ognen/Desktop/Programs/BestPhone.py&quot;, line 19, in &lt;module&gt;
      import pyautogui
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/__init__.py&quot;, line 146, in &lt;module&gt;
      from . import _pyautogui_osx as platformModule
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/_pyautogui_osx.py&quot;, line 7, in &lt;module&gt;
      assert False, &quot;You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html&quot;
  AssertionError: You must first install pyobjc-core and pyobjc: https://pyautogui.readthedocs.io/en/latest/install.html
  </code></pre>