leng-yue / py-scrcpy-client

An easy to use python scrcpy client
https://leng-yue.github.io/py-scrcpy-client/
MIT License
290 stars 74 forks source link

在Mac端运行你的项目报错了 #14

Closed lycfr closed 2 years ago

lycfr commented 2 years ago
Traceback (most recent call last):
  File "/Users/cfr/PycharmProjects/py-scrcpy-client/scrcpy/core.py", line 184, in __stream_loop
    raw_h264 = self.__video_socket.recv(0x10000)
BlockingIOError: [Errno 35] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cfr/PycharmProjects/py-scrcpy-client/scrcpy_ui/main.py", line 92, in handler
    evt.position().x() / ratio, evt.position().y() / ratio, action
AttributeError: 'QMouseEvent' object has no attribute 'position'

看着好像是引入包的时候报错了 image

image

lycfr commented 2 years ago

有办法兼容一下Mac端吗?

leng-yue commented 2 years ago

我就是在 mac 开发的, 你能发下你的 pip freeze 么.

lycfr commented 2 years ago

好像可以了