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

Not working with Mac OS #10

Open
kellyzxiaowei opened this issue Jun 2, 2024 · 9 comments
Open

Not working with Mac OS #10

kellyzxiaowei opened this issue Jun 2, 2024 · 9 comments
Assignees
Labels
bug Something isn't working macos

Comments

@kellyzxiaowei
Copy link

No description provided.

@onuratakan
Copy link
Owner

onuratakan commented Jun 2, 2024

Hi, can you share a screen shot. Actualy i know there is some problems caused by pyqt5 but it can be fixed.

@onuratakan onuratakan self-assigned this Jun 2, 2024
@kellyzxiaowei
Copy link
Author

image

@onuratakan
Copy link
Owner

@kellyzxiaowei I just made fix. Can you try again.

@kellyzxiaowei
Copy link
Author

@kellyzxiaowei I just made fix. Can you try again.

(venv) zxw@VdeMacBook-Pro gpt-computer-assistant % computerassistant
Profile: None
[02:14:06] Upsonic active on_prem.py:130
Error: Remote is down
Traceback (most recent call last):
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/upsonic/remote/on_prem.py", line 1422, in langchain
the_tool = tool(the_function)
^^^^^^^^^^^^^^^^^^
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/langchain_core/tools.py", line 960, in tool
return make_with_name(args[0].name)(args[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/langchain_core/tools.py", line 925, in make_tool
return StructuredTool.from_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/langchain_core/tools.py", line 836, in from_function
description
= textwrap.dedent(description
).strip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/textwrap.py", line 435, in dedent
text = _whitespace_only_re.sub('', text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'list'

Traceback (most recent call last):
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/bin/computerassistant", line 8, in
sys.exit(start())
^^^^^^^
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/gpt_computer_assistant/start.py", line 19, in start
from .gpt_computer_assistant import QApplication, MainWindow, sys
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/gpt_computer_assistant/gpt_computer_assistant.py", line 1, in
from .agent.chat_history import *
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/gpt_computer_assistant/agent/init.py", line 2, in
from .assistant import *
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/gpt_computer_assistant/agent/assistant.py", line 5, in
from ..screen.shot import *
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/gpt_computer_assistant/screen/shot.py", line 3, in
import pyautogui
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/pyautogui/init.py", line 246, in
import mouseinfo
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/mouseinfo/init.py", line 100, in
from rubicon.objc import ObjCClass, CGPoint
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/rubicon/objc/init.py", line 33, in
from . import api, collections, runtime, types
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/rubicon/objc/api.py", line 29, in
from .runtime import (
File "/Users/zxw/AITOOL/gpt-computer-assistant/venv/lib/python3.11/site-packages/rubicon/objc/runtime.py", line 460, in
libobjc.objc_msgSendSuper_stret.restype = None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ctypes/init.py", line 389, in getattr
func = self.getitem(name)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ctypes/init.py", line 394, in getitem
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: dlsym(0x31a437110, objc_msgSendSuper_stret): symbol not found

Can not working.

@onuratakan onuratakan added the bug Something isn't working label Jun 3, 2024
@onuratakan
Copy link
Owner

Hi are you working with intel macos?

@HarbingerOfFire
Copy link

Looking at it, it seems to fail when importing Rubicon objective-C for PyAutoGUI. The code it is failing on is architecture specific, and it only works on 32-bit or ARM processors. You can check the architecture in the place shown below.
image
Apple M1 and M2 work well, and so do intel x86. However, if you have an intel x64, this is likely an error with rubicon not correctly identifying architecture.

@onuratakan
Copy link
Owner

Looking at it, it seems to fail when importing Rubicon objective-C for PyAutoGUI. The code it is failing on is architecture specific, and it only works on 32-bit or ARM processors. You can check the architecture in the place shown below.
image
Apple M1 and M2 work well, and so do intel x86. However, if you have an intel x64, this is likely an error with rubicon not correctly identifying architecture.

Oh thanks for detailed explaination. Do you know any solution for this or writing another gui for intel macos?

@HarbingerOfFire
Copy link

I would say the only alternative I know is to replace the use of pyautogui for mac environments with an Objective-C bridge and do things manually. There may be a little bit of a learning curve, but I suggest pyobjc because it is native to MacOS, and can be used to do much of the same things when paired with Quartz.

@gokborayilmaz
Copy link
Contributor

Okey, we will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos
Projects
None yet
Development

No branches or pull requests

4 participants