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

使用 mode=ffmpeg 录屏时,发送了警告:DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead #1170

Open
wauigleuagcua opened this issue Jul 25, 2024 · 0 comments

Comments

@wauigleuagcua
Copy link

(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)

(重要!根据问题类型选择分类)

详细描述问题bug:

使用 mode=ffmpeg 录屏时,发送了警告
regression_test/test_privacy_policy.py::Test_privacy_policy::test_privacy_policy_exists_rt
C:\Users\amber\AppData\Local\Programs\Python\Python310\lib\site-packages\airtest\aircv\screen_recorder.py:151: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self.t_stream.setDaemon(True)

regression_test/test_privacy_policy.py::Test_privacy_policy::test_privacy_policy_exists_rt
C:\Users\amber\AppData\Local\Programs\Python\Python310\lib\site-packages\airtest\aircv\screen_recorder.py:154: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self.t_write.setDaemon(True)

复现步骤:
执行以下代码
device().start_recording(output='demo.mp4', mode='ffmpeg')

python 版本: python3.10

操作系统: Windows11 64bit

手机设备信息:

  • 手机型号:
  • Android 13
  • (别的信息)

其他相关信息补充
(例如在linux ubuntu16.04上运行异常,在windows上正常等信息。)

  • AirtestIDE版本号:1.3.3

截屏
强烈建议带上截图,包括IDE本身的截图和后面的黑窗口的报错信息的截图(尽量完整)。

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