sightmachine/SimpleCV

font module error

Opened this issue · 0 comments

kuanb commented

Can't seem to draw blobs in the tutorial. Getting the following error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Features/Features.py", line 123, in show
    self.draw(color, width, autocolor)
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Features/Features.py", line 96, in draw
    f.draw(color=color,width=width)
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Features/Blob.py", line 572, in draw
    layer = self.image.dl()
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/ImageClass.py", line 6457, in dl
    return self.getDrawingLayer(index)
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/ImageClass.py", line 6442, in getDrawingLayer
    layer = DrawingLayer(self.size())
  File "/usr/local/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/DrawingLayer.py", line 44, in __init__
    if( not pg.font.get_init() ):
  File "/usr/local/lib/python2.7/site-packages/pygame/__init__.py", line 105, in __getattr__
    raise NotImplementedError(MissingPygameModule)
NotImplementedError: font module not available
(ImportError: dlopen(/usr/local/lib/python2.7/site-packages/pygame/font.so, 2): Symbol not found: _TTF_CloseFont
  Referenced from: /usr/local/lib/python2.7/site-packages/pygame/font.so
  Expected in: flat namespace
 in /usr/local/lib/python2.7/site-packages/pygame/font.so)