modelscope / DiffSynth-Studio

Enjoy the magic of Diffusion models!
Apache License 2.0
6.59k stars 600 forks source link

PermissionError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。 #16

Open qiaocuiqingcai opened 8 months ago

qiaocuiqingcai commented 8 months ago

(DiffSynthStudio) D:\下载\DiffSynth-Studio-main>python -m streamlit run Diffsynth_Studio.py Traceback (most recent call last): File "D:\Anaconda\envs\DiffSynthStudio\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\Anaconda\envs\DiffSynthStudio\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit__main__.py", line 20, in main(prog_name="streamlit") File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\click\core.py", line 1157, in call return self.main(args, kwargs) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\click\core.py", line 783, in invoke return __callback(args, **kwargs) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\cli.py", line 233, in main_run _main_run(target, args, flag_options=kwargs) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\cli.py", line 269, in _main_run bootstrap.run(file, is_hello, args, flag_options) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\bootstrap.py", line 430, in run asyncio.run(run_server()) File "D:\Anaconda\envs\DiffSynthStudio\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\Anaconda\envs\DiffSynthStudio\lib\asyncio\base_events.py", line 647, in run_until_complete return future.result() File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\bootstrap.py", line 418, in run_server await server.start() File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\server\server.py", line 262, in start start_listening(app) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\server\server.py", line 129, in start_listening start_listening_tcp_socket(http_server) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\streamlit\web\server\server.py", line 188, in start_listening_tcp_socket http_server.listen(port, address) File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\tornado\tcpserver.py", line 183, in listen sockets = bind_sockets( File "D:\Anaconda\envs\DiffSynthStudio\lib\site-packages\tornado\netutil.py", line 162, in bind_sockets sock.bind(sockaddr) PermissionError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。

qiaocuiqingcai commented 8 months ago

怎么回事,前面没安装上streamlit,报错是 (DiffSynthStudio) D:\下载\DiffSynth-Studio-main>python -m streamlit run Diffsynth_Studio.py D:\Anaconda\envs\DiffSynthStudio\python.exe: No module named streamlit

独立安装以后就是标题的报错了

Artiprocher commented 8 months ago

在运行命令后面加上 --server.port 5998 试一下,详见 https://discuss.streamlit.io/t/oserror-winerror-10013-an-attempt-was-made-to-access-a-socket-in-a-way-forbidden-by-its-access-permissions/1545/2