boppreh / mouse

Hook and simulate global mouse events in pure Python
MIT License
900 stars 135 forks source link

MacOS High Sierra support? #75

Open sebastiansam55 opened 3 years ago

sebastiansam55 commented 3 years ago

I have read the documentation but it is sort of vague and I'm not a super big mac/apple guy so I am kinda of lost.

The only mac that I have access to is a Early 2011 13" MacBook Pro. It is fully updated (10.13.6) High Sierra.

I added all of the suggested items (terminal, "Python" by which I mean that I added "IDLE" and "Python Launcher" to the accessibility section of Security & Privacy. I tried adding to the python3 executable but it did not allow it to be added to the list of apps.

The error is a OSError: Unsupported platfrom 'Darwin'

I get this error just by importing the program in both the IDLE (which is also added to the Accessibility access list) and also in python3 when run from the terminal (the Terminal is also added to the Accessibility access list)

Already tried rebooting a few times. Not sure what else to do. Don't use Mac stuff at all.

ddaskan commented 3 years ago

It's normal if you install from pip. You need to install from the source since Mac support it's not deployed in pip index. Create a new environment and try to install as below;

pip install pyobjc-framework-Quartz
pip install git+https://github.com/boppreh/mouse.git
saltyfireball commented 3 years ago

pip install pyobjc-framework-Quartz pip install git+https://github.com/boppreh/mouse.git

Worked for me, thanks @ddaskan