| <type 'exceptions.IOError'> | Python 2.7.18: /home/scalemodelsclub/virtualenv/pics/2.7/bin/python2.7_bin Fri Nov 7 11:03:57 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/scalemodelsclub/pics/root/script/general/request_dispatcher.py in Dispatch(self=<root.script.general.request_dispatcher.RequestDispatcher instance>) |
| 71 args = {} |
| 72 args = self.__merge(m.groupdict(), args) |
| => 73 call_back(**args) |
| 74 return |
| 75 |
| call_back = <function pic>, args = {'id': u'34869'} |
| /home/scalemodelsclub/pics/root/script/pics.py in pic(id=u'34869') |
| 295 text, |
| 296 fill='#00ffff', |
| => 297 font=ImageFont.truetype(ttf, 16), |
| 298 ) |
| 299 s = cStringIO.StringIO() |
| font undefined, global ImageFont = <module 'PIL.ImageFont' from '/home/scalemodelsc...7/lib/python2.7/site-packages/PIL/ImageFont.pyc'>, ImageFont.truetype = <function truetype>, ttf = 'root/font.ttf' |
| /home/scalemodelsclub/virtualenv/pics/2.7/lib/python2.7/site-packages/PIL/ImageDraw.py in text(self=<PIL.ImageDraw.ImageDraw object>, xy=(6, 1176), text=u'\u041f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u043d\u043e 162 \u043f\u044a\u0442\u0438', fill=None, font=<PIL.ImageFont.FreeTypeFont object>, anchor=None, *args=(), **kwargs={}) |
| 273 try: |
| 274 mask, offset = font.getmask2(text, self.fontmode, |
| => 275 *args, **kwargs) |
| 276 xy = xy[0] + offset[0], xy[1] + offset[1] |
| 277 except AttributeError: |
| args = (), kwargs = {} |
| /home/scalemodelsclub/virtualenv/pics/2.7/lib/python2.7/site-packages/PIL/ImageFont.py in getmask2(self=<PIL.ImageFont.FreeTypeFont object>, text=u'\u041f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u043d\u043e 162 \u043f\u044a\u0442\u0438', mode='L', fill=<built-in function fill>, direction=None, features=None, *args=(), **kwargs={}) |
| 183 def getmask2(self, text, mode="", fill=Image.core.fill, direction=None, |
| 184 features=None, *args, **kwargs): |
| => 185 size, offset = self.font.getsize(text, direction, features) |
| 186 im = fill("L", size, 0) |
| 187 self.font.render(text, im.id, mode == "1", direction, features) |
| size undefined, offset undefined, self = <PIL.ImageFont.FreeTypeFont object>, self.font = <Font object>, self.font.getsize = <built-in method getsize of Font object>, text = u'\u041f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u043d\u043e 162 \u043f\u044a\u0442\u0438', direction = None, features = None |
<type 'exceptions.IOError'>: invalid face handle
args =
('invalid face handle',)
errno =
None
filename =
None
message =
'invalid face handle'
strerror =
None