Hi Sylvain,
Thanks, that's great, really great :D . I just have an error while
trying the echo_cherrypy example.
I have CherryPy 3.2 (Python 3.2). The example does start and
everything's working fine until I launch Firefox on localhost:9000.
Here's the error:
[30/Oct/2012:17:26:59] HTTP Traceback (most recent call last):
File "C:\python32\lib\site-packages\cherrypy-3.2.2-py3.2.egg\cherrypy\_cpreque
st.py", line 647, in respond
self.hooks.run('before_request_body')
File "C:\python32\lib\site-packages\cherrypy-3.2.2-py3.2.egg\cherrypy\_cpreque
st.py", line 112, in run
raise exc
File "C:\python32\lib\site-packages\cherrypy-3.2.2-py3.2.egg\cherrypy\_cpreque
st.py", line 102, in run
hook()
File "C:\python32\lib\site-packages\cherrypy-3.2.2-py3.2.egg\cherrypy\_cpreque
st.py", line 62, in __call__
return self.callback(**self.kwargs)
File "C:\python32\lib\site-packages\ws4py-0.2.3-py3.2.egg\ws4py\server\cherrypyserver.py",
line 149, in upgrade
ws_key = base64.b64decode(key)
File "C:\python32\lib\base64.py", line 83, in b64decode
raise TypeError("expected bytes, not %s" % s.__class__.__name__)
TypeError: expected bytes, not str
127.0.0.1 - - [30/Oct/2012:17:26:59] "GET /ws HTTP/1.1" 500 1686 "" "Mozilla/5.0
Maybe it's because the Python 3 sockets exchange bytes, no more str,
but I doubt of it, as Cherrypy handles it well. Do you know where
this problem come from?
Thanks again,
Vincent
2012/10/30, Sylvain Hellegouarch <
s...@defuze.org>:
> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To post to this group, send email to
cherryp...@googlegroups.com.
> To unsubscribe from this group, send email to
>
cherrypy-user...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/cherrypy-users?hl=en.
>
>