0

我通过将novnc/websockify克隆到我的 Windows 机器上获得了 Websockify make,使用pip install websockify. 然后我运行了我期望的简单测试,以确保软件安装正确,只是让 Websockify 调用 Windows 没有的东西。我应该如何处理这个错误?

PS C:\Users\scratch> websockify 8080 -- nc localhost 8080
WARNING: no 'resource' module, daemonizing is disabled
WebSocket server settings:
  - Listen on :8080
  - No SSL/TLS support (no cert file)
  - proxying from :8080 to 'nc localhost 8080' (port 64306)
Starting 'nc localhost 8080'
Traceback (most recent call last):
  File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python39\Scripts\websockify.exe\__main__.py", line 7, in <module>
  File "c:\python39\lib\site-packages\websockify\websocketproxy.py", line 726, in websockify_init
    server.start_server()
  File "c:\python39\lib\site-packages\websockify\websockifyserver.py", line 749, in start_server
    self.started()  # Some things need to happen after daemonizing
  File "c:\python39\lib\site-packages\websockify\websocketproxy.py", line 362, in started
    self.run_wrap_cmd()
  File "c:\python39\lib\site-packages\websockify\websocketproxy.py", line 327, in run_wrap_cmd
    self.cmd = subprocess.Popen(
  File "c:\python39\lib\subprocess.py", line 782, in __init__
    raise ValueError("preexec_fn is not supported on Windows "
ValueError: preexec_fn is not supported on Windows platforms

鉴于相关搜索结果的稀缺性,似乎很少有人遇到这个问题,或者我不知道我在寻找什么。有人告诉我 Websockify 可以在 Windows 上运行,但问题必须来自以前run_wrap_cmd,对吧?据我所知,从那里开始没有可能导致错误的逻辑流程。

4

0 回答 0