[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame on osx snow leopard (font module problems)



Hi  All

i'm tring to run a pygame application, but i'm having problems with the pygame.font module.
i'm running mac osx 10.6.2 using the system python.

i download the framework for sdl, sdl.mixer, sdl.ttf  and png, jpg

Hunting dependencies...
Framework SDL found
Framework SDL_ttf found
Framework SDL_image found
Framework SDL_mixer found
Framework smpeg found
Framework png found
Framework jpeg found
SCRAP   : not found
PORTMIDI: not found
Framework CoreMidi found


the build and install procedure goeas ahead without error (i can post the log if needed)

but tring to run an application downloaded from the pgame site " pmx " (pygame map explorer)
i get this errors :

-- pyMap eXplorer (1.0a2) ---------------------------------------------
Unexpected error: <type 'exceptions.NotImplementedError'>
font error  None  for widget  
(<type 'exceptions.NotImplementedError'>, NotImplementedError('font module not available\n(ImportError: dlopen(/Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so, 2): Symbol not found: _TTF_CloseFont\n  Referenced from: /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so\n  Expected in: flat namespace\n in /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so)',), <traceback object at 0x101c8f6c8>)
Get Widget : error on  copyright
(<type 'exceptions.NotImplementedError'>, NotImplementedError('font module not available\n(ImportError: dlopen(/Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so, 2): Symbol not found: _TTF_CloseFont\n  Referenced from: /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so\n  Expected in: flat namespace\n in /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so)',), <traceback object at 0x101c8f7a0>)
/Users/sasha/Downloads/pmx-10a2/fgame.py:659: RuntimeWarning: use font: dlopen(/Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so, 2): Symbol not found: _TTF_CloseFont
  Referenced from: /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so
(ImportError: dlopen(/Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so, 2): Symbol not found: _TTF_CloseFont
  Referenced from: /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so)
  font=pygame.font.Font(fontPath, fontSize)



the same error i gave if from a standard python shell i type :

In [1]: import pygame

In [2]: import pygame.font
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so, 2): Symbol not found: _TTF_CloseFont
  Referenced from: /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/pygame-1.9.1release-py2.6-macosx-10.6-universal.egg/pygame/font.so


In [3]: from pygame import font

In [4]: exit()



thanks for your help!

regards,

Massimo.