Message6794
Steps to Reproduce
==================
-4. Drink two black russians courtesy of @aminusfu.
-3. Narrowly avoid a game of zombies.
-2. Meet @jimbaker.
-1. Decide to get http://aspen.io/ running on Jython yay!
0. Be on Mac OS Snow Leopard w/ XCode version blah blah blah.
1. Install Jython 2.5.2 (also applies to 2.5.3a1, don't see it in the 'Versions' list).
2. Build a jython virtualenv.
3. Install http://aspen.io/ v0.13.6 into it.
4. Run the aspen executable.
Expected Result
===============
Greetings, program! Welcome to port 8080.
Actual Result
=============
Traceback (most recent call last):
File "/Users/whit537/personal/aspen/master/jenv/bin/aspen", line 7, in <module>
sys.exit(
File "/Users/whit537/personal/aspen/master/aspen/server.py", line 98, in main
website.stop()
File "/Users/whit537/personal/aspen/master/aspen/server.py", line 62, in main
website.start()
File "/Users/whit537/personal/aspen/master/aspen/website.py", line 46, in start
self.engine.start()
File "/Users/whit537/personal/aspen/master/aspen/engines/cherrypy_.py", line 16, in start
self.cp_server.start()
File "/Users/whit537/personal/aspen/master/aspen/_cherrypy/wsgiserver.py", line 1767, in start
self.socket.listen(self.request_queue_size)
File "<string>", line 1, in listen
File "/Users/whit537/jython2.5.3b1/Lib/socket.py", line 1084, in listen
self._config()
File "/Users/whit537/jython2.5.3b1/Lib/socket.py", line 1084, in listen
self._config()
File "/Users/whit537/jython2.5.3b1/Lib/socket.py", line 1045, in _config
self.sock_impl.setsockopt(level, optname, self.pending_options[ (level, optname) ])
File "/Users/whit537/jython2.5.3b1/Lib/socket.py", line 330, in setsockopt
raise error(errno.ENOPROTOOPT, "Socket option '%s' (level '%s') not supported on socket(%s)" % (_constant_to_name(option), _constant_to_name(level), str(self.jsocket)))
socket.error: (42, "Socket option 'NI_IDN_USE_STD3_ASCII_RULES' (level 'IPPROTO_TCP') not supported on socket(ServerSocket[addr=/0.0.0.0,localport=8080])")
I hacked jython*/Lib/socket.py and if I skip option=256 in getsockopt I can get service from aspen, which is sweet. IDN is a little esoteric (sadly?), so not sure what to do with this. Maybe a workaround to turn this off from the aspen layer? This is prolly specific to Max OS? |
|
Date |
User |
Action |
Args |
2012-03-14 07:20:24 | whit537 | set | recipients:
+ whit537 |
2012-03-14 07:20:24 | whit537 | set | messageid: <1331709624.45.0.811460148988.issue1848@psf.upfronthosting.co.za> |
2012-03-14 07:20:24 | whit537 | link | issue1848 messages |
2012-03-14 07:20:23 | whit537 | create | |
|