theJayTea / WritingTools

The world's smartest system-wide grammar assistant; a better version of the Apple Intelligence Writing Tools. Works on Windows, Linux, & macOS, with the free Gemini API, local LLMs, & more.
GNU General Public License v3.0
587 stars 32 forks source link

encounter a new issue, the codes are listed below! #37

Closed WYang555 closed 4 days ago

WYang555 commented 1 month ago

2024-11-04 23:33:46,725 - ERROR - Unhandled exception in listener callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pynput/_util/init.py", line 229, in inner return f(self, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pynput/_util/darwin.py", line 283, in _handler self._handle(proxy, event_type, event, refcon)


TypeError: '_thread._ThreadHandle' object is not callable
momokrono commented 4 weeks ago

Hi! What platform are you running on? Did you install everything in a virtual env?

WYang555 commented 4 weeks ago

no i directly run it on macos, i also installed all dependency using python3.13, but it reported errors.

WYang555 commented 4 weeks ago

Hi! 你好! What platform are you running on? Did you install everything in a virtual env?您在哪个平台上运行?您是否在虚拟环境中安装了所有内容?

necessary to install everything i a virtual env?

WYang555 commented 4 weeks ago

Hi! 你好! What platform are you running on? Did you install everything in a virtual env?您在哪个平台上运行?您是否在虚拟环境中安装了所有内容?

necessary to install everything i a virtual env?

the chip is M series

kurcz commented 4 weeks ago

Hi! Can you try downgrading to python 3.12? I was unable to get it to work on MacOS with python 3.13 at this time.

WYang555 commented 3 weeks ago

i run these codes in python 3.12, but the bug reports that the""SafetySettingDict" is missing. where can i find the new version of google--generativeai? thank you! File "main.py", line 3, in from WritingToolApp import WritingToolApp File "/Users/wangyang/Desktop/WritingTools-main/macOS/WritingToolApp.py", line 17, in from google.generativeai.types import SafetySettingDict ImportError: cannot import name 'SafetySettingDict' from 'google.generativeai.types' (/Users/wangyang/Library/Python/3.8/lib/python/site-packages/google/generativeai/types/init.py)

theJayTea commented 3 weeks ago

@WYang555 try pip install --upgrade google-generativeai

WYang555 commented 1 week ago

i did, but it reported the same bug

theJayTea commented 1 week ago

@WYang555 there’s a new native macOS version of Writing Tools (written in Swift) created by a contributor. It’s nearly ready, and that will fix these issues and help Writing Tools work amazingly well on macOS :)

WYang555 commented 6 days ago

thank you for all your efforts, the new version is anticipated

theJayTea commented 4 days ago

Closing this as there's now a new, native Swift macOS version maintained by @Aryamirsepasi :D Installation instructions will come soon.