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

Mixing Windows and Python 3.2 #69

Closed
smithkl42 opened this issue Feb 19, 2013 · 1 comment
Closed

Mixing Windows and Python 3.2 #69

smithkl42 opened this issue Feb 19, 2013 · 1 comment

Comments

@smithkl42
Copy link

I've seen that other folks (#66) have been able to get Websockify on Windows working with Python 3.2, so after having failed with 2.7 and 3.3, I thought I'd give it a shot. However, this is the error I get when I try to connect:

WARNING: no 'resource' module, daemonizing is slower or disabled
  1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
  1: 127.0.0.1: Version hybi-13, base64: 'False'
  1: connecting to: localhost:4511
Process Process-1:
Traceback (most recent call last):
  File "F:\source\thirdparty\websockify\websockify\websocket.py", line 797, in top_new_client
    self.new_client()
  File "F:\source\thirdparty\websockify\websockify\websocketproxy.py", line 190, in new_client
    self.do_proxy(tsock)
  File "F:\source\thirdparty\websockify\websockify\websocketproxy.py", line 291, in do_proxy
    raise self.CClose(1000, "Target closed")
websocket.CClose: (1000, 'Target closed')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python32\lib\multiprocessing\process.py", line 265, in _bootstrap
    self.run()
  File "C:\Python32\lib\multiprocessing\process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "F:\source\thirdparty\websockify\websockify\websocket.py", line 802, in top_new_client
    self.send_close(exc.args[0], exc.args[1])
  File "F:\source\thirdparty\websockify\websockify\websocket.py", line 564, in send_close
    msg = pack(">H%ds" % len(reason), code, reason)
struct.error: argument for 's' must be a bytes object

Not sure if this is just an issue with my configuration, or with something else I'm trying to do, but I thought I'd report it.

@smithkl42
Copy link
Author

I honestly can't remember what I did to fix this, but it's not a problem now. I do have another problem I'm running into, but I'll close this one for now.

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