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

MAC下启动报错KeyError: 'CFMachPortCreateRunLoopSource' #279

Open
innerbboy opened this issue Jan 15, 2024 · 0 comments
Open

MAC下启动报错KeyError: 'CFMachPortCreateRunLoopSource' #279

innerbboy opened this issue Jan 15, 2024 · 0 comments

Comments

@innerbboy
Copy link

错误信息如下:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/pynput/_util/init.py", line 210, in run
self._run()
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/pynput/keyboard/_darwin.py", line 254, in _run
super(Listener, self)._run()
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/pynput/_util/darwin.py", line 202, in _run
loop_source = Quartz.CFMachPortCreateRunLoopSource(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/objc/_lazyimport.py", line 178, in getattr
value = getattr(p, name)
^^^^^^^^^^^^^^^^
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/objc/_lazyimport.py", line 178, in getattr
value = getattr(p, name)
^^^^^^^^^^^^^^^^
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/objc/_lazyimport.py", line 192, in getattr
value = get_constant(name)
^^^^^^^^^^^^^^^^^^
File "/Users/daiyunshan/gitproject/KeymouseGo/venv/lib/python3.11/site-packages/objc/_lazyimport.py", line 360, in get_constant
funcmap.pop(name)
KeyError: 'CFMachPortCreateRunLoopSource'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant