[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] An unofficial Mac binary
In case anybody cares, I have an unofficial Mac binary for pygame 1.9.1
that uses python.org's 64-bit Python (Mac OS X 10.6 and later).
I don't intend to serve it officially because the unit tests had 3
errors and 2 failures (see appended log). But it may be useful to
somebody (it certainly meets my needs, which is only to play sound
files). You can get it here:
<http://www.astro.washington.edu/users/rowen/python/>
The png tests are especially puzzling to me because:
- The installer could not find Apple's libpng in /usr/X11 even though I
added those include and lib dirs as required and that must have worked
because pygame's installer found libfreetype there.
- So I installed my own libpng, which seemed to build just fine and
pygame seemed happy to use it.
-- Russell
======================================================================
FAIL: FontTypeTest.test_set_bold
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/tests/font_test.py", line 254, in test_set_bold
self.failIf(f.get_bold())
AssertionError: None
======================================================================
FAIL: FontTypeTest.test_set_italic
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/tests/font_test.py", line 266, in test_set_italic
self.failIf(f.get_bold())
AssertionError: None
======================================================================
ERROR: GL_ImageSave.test_image_save_works_with_opengl_surfaces
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/tests/image__save_gl_surface_test.py", line 37, in
test_image_save_works_with_opengl_surfaces
pygame.image.save(screen, tmp_file)
error: SavePNG: could not create png write struct
======================================================================
ERROR: ImageModuleTest.test_save
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/tests/image_test.py", line 100, in test_save
pygame.image.save(s, temp_filename)
error: SavePNG: could not create png write struct
======================================================================
ERROR: SurfarrayModuleTest.test_make_surface
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/tests/surfarray_test.py", line 488, in test_make_surface
surf = pygame.surfarray.make_surface(self._make_src_array3d(dtype))
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/surfarray.py", line 243, in make_surface
return numpysf.make_surface (array)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/_numpysurfarray.py", line 368, in make_surface
blit_array (surface, array)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pac
kages/pygame/_numpysurfarray.py", line 437, in blit_array
surface.get_buffer ().write (data, 0)
IndexError: bytes to write exceed buffer size
----------------------------------------------------------------------
Ran 408 tests in 33.901s
FAILED (failures=2, errors=3)