taky/belle — Issue #1: 縦書き時に例外
Author: taky
Created: 2012-01-12 01:28:23+00:00
State: open

Traceback (most recent call last):
File "/usr/local/amber/bin/render.py", line 5, in
pkg_resources.run_script('belle==0.1.6', 'render.py')
File "/usr/local/amber/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 489, in run_script
File "/usr/local/amber/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1207, in run_script
File "/usr/local/amber/lib/python2.7/site-packages/belle-0.1.6-py2.7.egg/EGG-INFO/scripts/render.py", line 82, in
render(sys.argv[2])
File "/usr/local/amber/lib/python2.7/site-packages/belle-0.1.6-py2.7.egg/EGG-INFO/scripts/render.py", line 65, in render
GlyphWriter(char).write(im)
File "/usr/local/amber/lib/python2.7/site-packages/belle-0.1.6-py2.7.egg/belle/glyph.py", line 36, in write
to.paste(glyph_, mapping(self.char.height).map(self.char, glyph_), glyph_)
File "/usr/local/amber/lib/python2.7/site-packages/PIL-1.1.7-py2.7-linux-x86_64.egg/Image.py", line 1101, in paste
self.im.paste(im, box, mask.im)
TypeError: integer argument expected, got float
Traceback (most recent call last):
File "/usr/local/amber/lib/python2.7/site-packages/amber-0.1.6-py2.7.egg/amber/middleware.py", line 56, in __call__
return self.app(environ, start_response)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/router.py", line 176, in __call__
response = self.handle_request(request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/tweens.py", line 17, in excview_tween
response = handler(request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/router.py", line 153, in handle_request
response = view_callable(context, request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/views.py", line 267, in attr_view
return view(context, request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/views.py", line 240, in predicate_wrapper
return view(context, request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/views.py", line 320, in viewresult_to_response
result = view(context, request)
File "/usr/local/amber/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/views.py", line 403, in _requestonly_view
response = view(request)
File "/usr/local/amber/lib/python2.7/site-packages/amber-0.1.6-py2.7.egg/amber/views/feed.py", line 281, in render
resp.body = Renderer().render(request.str_POST['document'])
File "/usr/local/amber/lib/python2.7/site-packages/amber-0.1.6-py2.7.egg/amber/lib/render.py", line 22, in render
raise BelleError('rendering process [%d] exited with code %d' % (p.pid, p.returncode))
amber.lib.exc.BelleError: 'rendering process [17921] exited with code 1'