novnc / websockify

Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service.
GNU Lesser General Public License v3.0
3.91k stars 772 forks source link

handler exception: can't pickle _thread.RLock objects #493

Open nmz787 opened 3 years ago

nmz787 commented 3 years ago

I am trying to use websockify to proxy between local port 5901 and a different remote machine's port 1234, but getting this odd error:

$ python.exe -m websockify 5901 1.2.3.4:1234 --cert ..\secrets\ssl.crt --key ..\secrets\ssl.key
WARNING: no 'resource' module, daemonizing is disabled
WebSocket server settings:
  - Listen on :5901
  - SSL/TLS support
  - proxying from :5901 to 1.2.3.4:1234
handler exception: can't pickle _thread.RLock objects
handler exception: can't pickle _thread.RLock objects
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python36\lib\multiprocessing\spawn.py", line 105, in spawn_main
    exitcode = _main(fd)
  File "C:\Python36\lib\multiprocessing\spawn.py", line 115, in _main
    self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

I am running on this version of Python: Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32

and on websockify commit dc345815c0c344de115278a37e837ba6a6f1b272

CendioOssman commented 3 years ago

Hmmm.. This worked as of #388. Not sure why things are broken again.