(venv) (base) justin self-operating-computer % operate
Traceback (most recent call last):
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/bin/operate", line 7, in
from operate.main import main_entry
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/operate/main.py", line 6, in
from operate.dialog import main
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/operate/dialog.py", line 19, in
from operate.utils.os import (
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/operate/utils/os.py", line 1, in
import pyautogui
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/pyautogui/init.py", line 246, in
import mouseinfo
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/mouseinfo/init.py", line 100, in
from rubicon.objc import ObjCClass, CGPoint
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/rubicon/objc/init.py", line 33, in
from . import api, collections, runtime, types
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/rubicon/objc/api.py", line 29, in
from .runtime import (
File "/Users/justin/Library/CloudStorage/Dropbox/Mac (3)/Desktop/code/self-operating-computer/venv/lib/python3.11/site-packages/rubicon/objc/runtime.py", line 460, in
libobjc.objc_msgSendSuper_stret.restype = None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justin/miniconda3/lib/python3.11/ctypes/init.py", line 389, in getattr
func = self.getitem(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justin/miniconda3/lib/python3.11/ctypes/init.py", line 394, in getitem
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: dlsym(0x3c3fe83b0, objc_msgSendSuper_stret): symbol not found
Apple M2 Max M2 Sonoma 14.2.1
I have a similar error using Apple M2 14.2.1. I figured out that this is caused by pyautogui and more precise in the rubicon module. But this error only occurs when I am packaging the python script with pyinstaller. Did you also converted you script into an executable? For me the executable also runs normally when it's in the path of /Users/your_user. I can't get it to work. I tried excluding the rubicon module in the pyinstaller but than pyautogui doesn't work anymore.
Here is my full log:
Traceback (most recent call last):
File "v2.py", line 5, in
import pyautogui
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "pyautogui/init.py", line 246, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "mouseinfo/init.py", line 100, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "rubicon/objc/init.py", line 33, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "rubicon/objc/api.py", line 29, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "rubicon/objc/runtime.py", line 460, in
File "ctypes/init.py", line 392, in getattr
File "ctypes/init.py", line 397, in getitem
AttributeError: dlsym(0x3c04283b0, objc_msgSendSuper_stret): symbol not found
[16526] Failed to execute script 'v2' due to unhandled exception!
Hope to find a solution...
Hello same problem here...
It's a pyobjc issue. I switched to python3.8 and re-installed pyobjc from git repo, then the error disappeared. Details here
Traceback (most recent call last):
File "/Users/kieranklaassen/anaconda3/envs/native/bin/operate", line 5, in
from operate.main import main_entry
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/operate/main.py", line 6, in
from operate.operate import main
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/operate/operate.py", line 25, in
from operate.utils.operating_system import OperatingSystem
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/operate/utils/operating_system.py", line 1, in
import pyautogui
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/pyautogui/init.py", line 246, in
import mouseinfo
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/mouseinfo/init.py", line 100, in
from rubicon.objc import ObjCClass, CGPoint
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/rubicon/objc/init.py", line 33, in
from . import api, collections, runtime, types
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/rubicon/objc/api.py", line 29, in
from .runtime import (
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/site-packages/rubicon/objc/runtime.py", line 460, in
libobjc.objc_msgSendSuper_stret.restype = None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/ctypes/init.py", line 389, in getattr
func = self.getitem(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kieranklaassen/anaconda3/envs/native/lib/python3.11/ctypes/init.py", line 394, in getitem
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: dlsym(0x3c7c683b0, objc_msgSendSuper_stret): symbol not found