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

[QUESTION] Macast installed through pip on Windows does not work properly #75

Closed
zqbxx opened this issue Sep 21, 2021 · 9 comments
Closed
Labels
question Further information is requested

Comments

@zqbxx
Copy link

zqbxx commented Sep 21, 2021

  • System: Window 10

192.168.137.1这个地址比较奇怪,我这里没有

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple macast
macast-cli
{'ApplicationPort': 1068, 'CheckUpdate': 1, 'DLNA_FriendlyName': 'Macast(DESKTOP-O8SKEPJ)', 'DLNA_Renderer': 'Default', 'MenubarIcon': 0, 'PlayerHW': 1, 'PlayerPosition': 2, 'PlayerSize': 1, 'StartAtLogin': 0, 'USN': '86c505d0-e200-41f2-a2bc-0c27d48ef738'}
INFO:cherrypy.error:[21/Sep/2021:11:24:23] ENGINE Set handler for console events.
ERROR:SSDPServer:add membership 192.168.1.35
ERROR:SSDPServer:add membership 192.168.137.1
ERROR:SSDPServer:[WinError 10049] 在其上下文中,该请求的地址无效。
INFO:cherrypy.error:[21/Sep/2021:11:24:23] ENGINE Serving on http://0.0.0.0:1068
INFO:MPVRenderer:starting mpv and mpv ipc
INFO:MPVRenderer:mpv starting
INFO:cherrypy.error:[21/Sep/2021:11:24:23] ENGINE Started monitor thread 'Autoreloader'.
INFO:cherrypy.error:[21/Sep/2021:11:24:23] ENGINE Started monitor thread 'SSDP_NOTIFY_THREAD'.
INFO:cherrypy.error:[21/Sep/2021:11:24:23] ENGINE Bus STARTED
INFO:main:Server current run on port: 1068
ERROR:MPVRenderer:[WinError 2] 系统找不到指定的文件。
INFO:MPVRenderer:mpv stopped
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv restarting
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
INFO:MPVRenderer:mpv starting
ERROR:MPVRenderer:[WinError 2] 系统找不到指定的文件。
INFO:MPVRenderer:mpv stopped
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
ERROR:MPVRenderer:mpv restarting
INFO:MPVRenderer:mpv starting
ERROR:MPVRenderer:[WinError 2] 系统找不到指定的文件。
INFO:MPVRenderer:mpv stopped
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
ERROR:MPVRenderer:mpv restarting
ERROR:MPVRenderer:mpv cannot start
INFO:cherrypy.error:[21/Sep/2021:11:24:26] ENGINE Bus STOPPING
INFO:cherrypy.error:[21/Sep/2021:11:24:26] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 1068)) shut down
ERROR:SSDPServer:drop membership 192.168.1.35
ERROR:SSDPServer:drop membership 192.168.137.1
INFO:cherrypy.error:[21/Sep/2021:11:24:26] ENGINE Removed handler for console events.
INFO:MPVRenderer:stoping mpv and mpv ipc
ERROR:MPVRenderer:sendCommand: 'NoneType' object has no attribute 'send_bytes'
ERROR:MPVRenderer:[Errno 10] No child processes
ERROR:MPVRenderer:mpv ipc socket start connect
ERROR:MPVRenderer:mpv ipc socket reconnecting: [WinError 2] 系统找不到指定的文件。
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Stopped thread 'SSDP_NOTIFY_THREAD'.
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Stopped thread 'Autoreloader'.
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Bus STOPPED
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Bus EXITING
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Waiting for child threads to terminate...
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Bus EXITED
INFO:cherrypy.error:[21/Sep/2021:11:24:27] ENGINE Waiting for thread MPV_STOP_SERVICE.
INFO:main:Service stopped
@zqbxx zqbxx added the bug Something isn't working label Sep 21, 2021
@xfangfang
Copy link
Owner

xfangfang commented Sep 21, 2021

使用pip安装需要自行安装mpv,并在系统路径中配置mpv,不然找不到啊。

137那个地址是windows开热点时候需要的,如果开启热点的话也会监控热点对应的网卡,这个不影响

如果您使用macast-gui启动的话就能收到通知说,mpv启动失败,cli的提示目前做的还不是很好,这点之后会改进的


You need to install MPV yourself and configure MPV in the system path

@xfangfang xfangfang changed the title [BUG] 启动报错 [QUESTION] Installing macast wpip on Windows cannot start Sep 21, 2021
@xfangfang xfangfang changed the title [QUESTION] Installing macast wpip on Windows cannot start [QUESTION] Installing macast via pip on Windows cannot start Sep 21, 2021
@xfangfang xfangfang changed the title [QUESTION] Installing macast via pip on Windows cannot start [QUESTION] Macast installed through pip on Windows does not work properly Sep 21, 2021
@xfangfang xfangfang added question Further information is requested and removed bug Something isn't working labels Sep 21, 2021
@zqbxx
Copy link
Author

zqbxx commented Sep 21, 2021

使用pip安装需要自行安装mpv,并在系统路径中配置mpv,不然找不到啊。

137那个地址是windows开热点时候需要的,如果开启热点的话也会监控热点对应的网卡,这个不影响

如果您使用macast-gui启动的话就能收到通知说,mpv启动失败,cli的提示目前做的还不是很好,这点之后会改进的

You need to install MPV yourself and configure MPV in the system path

知道,想问一下自己实现CustomRenderer还需要配置mpv吗?

@xfangfang
Copy link
Owner

知道,想问一下自己实现CustomRenderer还需要配置mpv吗?

不需要的,自己实现的话,直接python运行插件就可以了,我在wiki写了简单的教程,也可以参考现在有的几个插件,或者参考项目中的mpv.py,写好的话欢迎提交代码到 Macast-plugins,提前感谢了

@zqbxx
Copy link
Author

zqbxx commented Sep 23, 2021

知道,想问一下自己实现CustomRenderer还需要配置mpv吗?

不需要的,自己实现的话,直接python运行插件就可以了,我在wiki写了简单的教程,也可以参考现在有的几个插件,或者参考项目中的mpv.py,写好的话欢迎提交代码到 Macast-plugins,提前感谢了

实现了一个CustomRenderer,还是会提示错误,但不影响使用。

ERROR:SSDPServer:[WinError 10049] 在其上下文中,该请求的地址无效。

集成在了视频播放器里面,不适合提交到 Macast-plugins
https://github.com/zqbxx/gxbzys

1 similar comment
@zqbxx
Copy link
Author

zqbxx commented Sep 23, 2021

知道,想问一下自己实现CustomRenderer还需要配置mpv吗?

不需要的,自己实现的话,直接python运行插件就可以了,我在wiki写了简单的教程,也可以参考现在有的几个插件,或者参考项目中的mpv.py,写好的话欢迎提交代码到 Macast-plugins,提前感谢了

实现了一个CustomRenderer,还是会提示错误,但不影响使用。

ERROR:SSDPServer:[WinError 10049] 在其上下文中,该请求的地址无效。

集成在了视频播放器里面,不适合提交到 Macast-plugins
https://github.com/zqbxx/gxbzys

@xfangfang
Copy link
Owner

集成在了视频播放器里面,不适合提交到 Macast-plugins
https://github.com/zqbxx/gxbzys

那个应该算是提示了,我之后再完善完善相关的提示吧。

除了设置url还支持更多的功能的,比如进度同步之类的,只需要实现一些对应的方法,调用一些方法就行,我最近又轻微更新了一下wiki的注释,加油~

先关闭啦

@xfangfang
Copy link
Owner

顺便一提,我可以之后把您的项目写在Macast的readme或者wiki中,一方面给您宣传一下,另一方面也可以让更多的开发者参考怎么快速的接入macast,您感觉可以吗?

@zqbxx
Copy link
Author

zqbxx commented Sep 24, 2021

集成在了视频播放器里面,不适合提交到 Macast-plugins
https://github.com/zqbxx/gxbzys

那个应该算是提示了,我之后再完善完善相关的提示吧。

除了设置url还支持更多的功能的,比如进度同步之类的,只需要实现一些对应的方法,调用一些方法就行,我最近又轻微更新了一下wiki的注释,加油~

先关闭啦

目前只是验证一下,后面还要改的。
修改了实现,避免了播放器改为gplv3,新的地址:
https://github.com/zqbxx/gxbzys-dlna-render

@zqbxx
Copy link
Author

zqbxx commented Sep 24, 2021

顺便一提,我可以之后把您的项目写在Macast的readme或者wiki中,一方面给您宣传一下,另一方面也可以让更多的开发者参考怎么快速的接入macast,您感觉可以吗?

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

No branches or pull requests

2 participants