Here are my test results with latest pyglet (rev. 773) in Windows XP.
In this order, pasted below are

 - errors I got while trying to run the examples,
 - errors I got while trying to run the tests, and
 - the output from tools/info.py.

C:\pyglet\examples>python blur.py
Traceback (most recent call last):
  File "blur.py", line 12, in <module>
    from pyglet.shader import *
ImportError: No module named shader

C:\pyglet\examples>python noisy\noisy.py
Traceback (most recent call last):
  File "noisy\noisy.py", line 13, in <module>
    from pyglet import media
  File "c:\pyglet\pyglet\media\__init__.py", line 36, in <module>
    raise ImportError('pyglet.media not yet supported on %s' %
sys.platform)
ImportError: pyglet.media not yet supported on win32

(Fair enough.)

C:\pyglet\examples>python text_test.py
Traceback (most recent call last):
  File "text_test.py", line 16, in <module>
    layout = render_html('''<p style="font-size: 26px"><strong>hello</
strong>
NameError: name 'render_html' is not defined

C:\pyglet\examples>python window_test.py
Traceback (most recent call last):
  File "window_test.py", line 13, in <module>
    w1 = pyglet.window.create(200, 200)
AttributeError: 'module' object has no attribute 'create'

(Just a leftover I guess.)

C:\pyglet\examples>python event_test.py
Traceback (most recent call last):
  File "event_test.py", line 13, in <module>
    w1 = pyglet.window.create(width=120, height=120)
AttributeError: 'module' object has no attribute 'create'

(Same as above.)

image_convert.py worked, but there's very noticeable quality loss
when
converting kitten.jpg and paper.jpg to png.


Here are the test results:

C:\pyglet>python tests\test.py
INFO:root:Beginning test at Tue Apr 10 09:25:07 2007
INFO:root:Capabilities are: GENERIC, WIN
INFO:root:sys.platform = win32
INFO:root:Reading requirements from doc\requirements.txt
INFO:root:Testing clock.FPS.
INFO:root:Begin unit tests for clock.FPS
ERROR:root:Failure in clock.FPS
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\clock\FPS.py", line 25, in test_fps
    self.assertTrue(abs(result - 5.0) < 0.05)
AssertionError

INFO:root:1 tests run
INFO:root:Testing clock.FPS_LIMIT.
INFO:root:Begin unit tests for clock.FPS_LIMIT
INFO:root:1 tests run
INFO:root:Testing clock.SCHEDULE.
INFO:root:Begin unit tests for clock.SCHEDULE
INFO:root:3 tests run
INFO:root:Testing clock.SCHEDULE_INTERVAL.
INFO:root:Begin unit tests for clock.SCHEDULE_INTERVAL
INFO:root:1 tests run
INFO:root:Testing clock.SCHEDULE_ONCE.
INFO:root:Begin unit tests for clock.SCHEDULE_ONCE
ERROR:root:Failure in clock.SCHEDULE_ONCE
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\clock\SCHEDULE_ONCE.py", line 48, in
test_schedule_once
    t += clock.tick()
  File "c:\pyglet\pyglet\clock.py", line 454, in tick
    return _default.tick()
  File "c:\pyglet\pyglet\clock.py", line 243, in tick
    item.func(ts - item.last_ts, *item.args, **item.kwargs)
  File "c:\pyglet\tests\clock\SCHEDULE_ONCE.py", line 23, in
callback_1
    self.assertTrue(abs(dt - 0.1) < 0.01)
AssertionError

INFO:root:1 tests run
INFO:root:Testing clock.TICK.
INFO:root:Begin unit tests for clock.TICK
INFO:root:1 tests run
INFO:root:event. is marked not implemented, skipping.
INFO:root:font.ANTIALIAS is marked not implemented, skipping.
INFO:root:font.ASIAN_FILE is marked not implemented, skipping.
INFO:root:font.COLOR is marked not implemented, skipping.
INFO:root:font.COLOR_BLEND is marked not implemented, skipping.
INFO:root:font.DEFAULT is marked not implemented, skipping.
INFO:root:font.FILE is marked not implemented, skipping.
INFO:root:font.ITALIC_CORRECTION is marked not implemented, skipping.
INFO:root:font.KERNING is marked not implemented, skipping.
INFO:root:font.SYSTEM is marked not implemented, skipping.
INFO:root:font.VERTICAL is marked not implemented, skipping.
INFO:root:Testing image.BUFFER_SAVE.
INFO:root:Begin unit tests for image.BUFFER_SAVE
INFO:root:Using regression tests\regression\images
\image.BUFFER_SAVE.png
Drawing scene...
Saving colour image...
Loading colour image as texture...
Done.
E

INFO:root:1 tests run
INFO:root:Testing image.CHECKERBOARD.
INFO:root:Begin unit tests for image.CHECKERBOARD
INFO:root:Using regression tests\regression\images
\image.CHECKERBOARD.png
ERROR:root:Failure in image.CHECKERBOARD
ERROR:root:Regression: Buffer does not match regression image

INFO:root:1 tests run
INFO:root:image.DDS_DXT1_LOAD is marked not implemented, skipping.
INFO:root:image.DDS_DXT1_SAVE is marked not implemented, skipping.
INFO:root:image.DDS_DXT3_LOAD is marked not implemented, skipping.
INFO:root:image.DDS_DXT3_SAVE is marked not implemented, skipping.
INFO:root:Testing image.DDS_DXT5_LOAD.
INFO:root:Begin unit tests for image.DDS_DXT5_LOAD
INFO:root:Using regression tests\regression\images
\image.DDS_DXT5_LOAD.png
ERROR:root:Failure in image.DDS_DXT5_LOAD
ERROR:root:Regression: Buffer does not match regression image

INFO:root:1 tests run
INFO:root:image.DDS_DXT5_SAVE is marked not implemented, skipping.
INFO:root:Testing image.DEPTH_SAVE.
INFO:root:Begin unit tests for image.DEPTH_SAVE
INFO:root:Using regression tests\regression\images
\image.DEPTH_SAVE.png
Drawing scene...
Saving depth image...
Loading depth image as texture...
Done.
ERROR:root:Failure in image.DEPTH_SAVE
ERROR:root:Regression: Buffer does not match regression image

[A lot more of these image mismatches later...]

INFO:root:1 tests run
INFO:root:Testing image.PYPNG_RGB_SAVE.
INFO:root:Begin unit tests for image.PYPNG_RGB_SAVE
INFO:root:Using regression tests\regression\images
\image.PYPNG_RGB_SAVE.png
ERROR:root:Failure in image.PYPNG_RGB_SAVE
ERROR:root:Regression: Buffer does not match regression image

INFO:root:1 tests run
INFO:root:Testing image.TEXTURE_3D.
------------------------------------------------------------------------------


Press return to begin test...
INFO:root:Begin unit tests for image.TEXTURE_3D
ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 72, in test2
    self.check_image(texture[i], 32, 32, i+1)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 28, in check_image
    self.assertTrue(data == color * len(data))
AssertionError

ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 80, in test5
    self.check_image(texture[i], 31, 94, i+1)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 28, in check_image
    self.assertTrue(data == color * len(data))
AssertionError

ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 113, in testPad
    self.check_cell(self.grid[i], i)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 61, in check_cell
    self.assertTrue(data == color * len(data))
AssertionError

ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 106, in testRect
    self.check_cell(self.grid[i], i)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 61, in check_cell
    self.assertTrue(data == color * len(data))
AssertionError

ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 88, in testSet
    self.check_image(texture[i], 32, 32, i+1)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 28, in check_image
    self.assertTrue(data == color * len(data))
AssertionError

ERROR:root:Failure in image.TEXTURE_3D
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 99, in testSquare
    self.check_cell(self.grid[i], i)
  File "c:\pyglet\tests\image\TEXTURE_3D.py", line 61, in check_cell
    self.assertTrue(data == color * len(data))
AssertionError

INFO:root:6 tests run
INFO:root:Testing image.TEXTURE_GRID.
------------------------------------------------------------------------------


Press return to begin test...
INFO:root:Begin unit tests for image.TEXTURE_GRID
INFO:root:6 tests run
[P]assed test, [F]ailed test: f
Enter failure description:
> Nothing happened.
ERROR:root:User marked fail for image.TEXTURE_GRID
ERROR:root:Nothing happened.
INFO:root:layout.FONTS is marked not implemented, skipping.
INFO:root:layout.HTML is marked not implemented, skipping.
INFO:root:layout.HTML_BUILDER is marked not implemented, skipping.
INFO:root:layout.INLINE_FORMATTING is marked not implemented,
skipping.
INFO:root:layout.INLINE_REPLACED is marked not implemented, skipping.
INFO:root:Testing model.obj.OBJ_LOAD.
ERROR:root:Cannot load test for model.obj.OBJ_LOAD
Traceback (most recent call last):
  File "tests\test.py", line 674, in main
    module = component.get_module(test_root)
  File "tests\test.py", line 257, in get_module
    module = __import__(name)
ImportError: No module named model.obj.OBJ_LOAD
INFO:root:Testing resource.COMPLIANCE.
ERROR:root:Cannot load test for resource.COMPLIANCE
Traceback (most recent call last):
  File "tests\test.py", line 674, in main
    module = component.get_module(test_root)
  File "tests\test.py", line 257, in get_module
    module = __import__(name)
ImportError: No module named resource.COMPLIANCE
INFO:root:Testing resource.REQUIRE.
ERROR:root:Cannot load test for resource.REQUIRE
Traceback (most recent call last):
  File "tests\test.py", line 674, in main
    module = component.get_module(test_root)
  File "tests\test.py", line 257, in get_module
    module = __import__(name)
ImportError: No module named resource.REQUIRE
INFO:root:Testing scene2d.FLAT_OOB.
------------------------------------------------------------------------------
Testing flat map allow_oob enforcement.

Press arrow keys to move view focal point (little ball) around map.
Press "o" to turn allow_oob on and off.

You should see no black border with allow_oob=False.

Press escape or close the window to finish the test.

Press return to begin test...
INFO:root:Begin unit tests for scene2d.FLAT_OOB
ERROR:root:Error in scene2d.FLAT_OOB
ERROR:root:Traceback (most recent call last):
  File "c:\pyglet\tests\scene2d\FLAT_OOB.py", line 24, in test_main
    self.set_map(gen_rect_map([[{}]*10]*10, 32, 32))
  File "c:\pyglet\pyglet\ext\scene2d\debug.py", line 83, in
gen_rect_map
    dark = Image2d.from_image(SolidColorImagePattern((150, 150, 150,
NameError: global name 'SolidColorImagePattern' is not defined

INFO:root:1 tests run
INFO:root:Testing scene2d.FLAT_SCROLLING.
------------------------------------------------------------------------------
Testing flat map scrolling.

Press arrow keys to move view focal point (little ball) around map.

You will be able to move "off" the map.

Press escape or close the window to finish the test.

Press return to begin test...

[Here I'm presented with a window that contains only garbage and
doesn't
 respond to the mouse or keyboard. I have to shut it down.]


My tools/info.py output:

C:\pyglet\tools>python info.py
Platform instance is <pyglet.window.win32.Win32Platform object at
0x0170D630>
Screens:
  Win32Screen(x=0, y=0, width=1400, height=1050)
Creating default context...
GL attributes:
buffer_size=16 doublebuffer=True stereo=False red_size=5 green_size=6
blue_size=5 alpha_size=0 aux_buffers=0 depth_size=24 stencil_size=8
accum_red_size=0 accum_green_size=0 accum_blue_size=0
accum_alpha_size=0
GL version: 2.0.5696 WinXP Release
GL vendor: ATI Technologies Inc.
GL renderer: ATI Mobility Radeon X1400 x86/SSE2
GL extensions:
  GL_ARB_texture_compression GL_EXT_blend_color GL_EXT_blend_subtract
  GL_EXT_stencil_wrap GL_EXT_vertex_array
  GL_EXT_texture_compression_s3tc GL_ATI_separate_stencil
  GL_ARB_depth_texture GL_ARB_vertex_blend
  GL_ATI_texture_compression_3dc GL_EXT_texture_object
  GL_EXT_vertex_shader GL_EXT_blend_func_separate
  GL_ATI_shader_texture_lod GL_EXT_texture_cube_map
  GL_ARB_occlusion_query GL_ARB_transpose_matrix
  GL_ARB_texture_border_clamp GL_EXT_fog_coord GL_SGIS_multitexture
  GL_ARB_texture_cube_map GL_ARB_point_parameters
  GL_EXT_texture_env_dot3 GL_ATI_texture_env_combine3
  GL_EXT_multi_draw_arrays GL_HP_occlusion_test
  GL_ATIX_texture_env_combine3 GL_ATIX_vertex_shader_output_point_size
  GL_ARB_vertex_program GL_ARB_texture_env_dot3 GL_EXT_bgra
  GL_SGIS_texture_edge_clamp GL_ATI_fragment_shader
  GL_ARB_texture_env_combine GL_ARB_vertex_buffer_object
  GL_EXT_shadow_funcs GL_EXT_separate_specular_color
  GL_EXT_texture_env_add GL_EXT_texture_mirror_clamp
  GL_SGIS_texture_border_clamp GL_ATI_vertex_attrib_array_object
  GL_ARB_point_sprite GL_EXT_framebuffer_object WGL_EXT_swap_control
  GL_ARB_draw_buffers GL_ARB_fragment_program_shadow
  GL_ATI_element_array GL_SGI_color_matrix GL_ATI_texture_mirror_once
  GL_NV_texgen_reflection GL_EXT_clip_volume_hint
  GL_EXT_compiled_vertex_array GL_EXT_point_parameters
GL_WIN_swap_hint
  GL_ARB_vertex_shader GL_ARB_fragment_shader GL_ATI_texture_float
  GL_ARB_fragment_program GL_ARB_shader_objects
  GL_ARB_shading_language_100 GL_ATI_vertex_streams GL_NV_blend_square
  GL_ATI_envmap_bumpmap GL_EXT_texture_env_combine
  GL_EXT_texgen_reflection GL_EXT_texture_lod_bias
GL_ARB_shadow_ambient
  GL_EXT_abgr GL_ARB_multisample GL_SGIS_generate_mipmap
  GL_ATI_map_object_buffer GL_EXT_texture_filter_anisotropic
  GL_EXT_blend_minmax GL_ARB_texture_env_crossbar GL_SGIS_texture_lod
  GL_ATIX_texture_env_route GL_EXT_texture_rectangle
  GL_EXT_texture_edge_clamp GL_ARB_window_pos GL_ARB_shadow
  GL_ARB_texture_mirrored_repeat GL_SUN_multi_draw_arrays GL_S3_s3tc
  GL_EXT_texture3D GL_ARB_multitexture GL_EXT_secondary_color
  GL_EXT_draw_range_elements GL_ATI_draw_buffers
  WGL_EXT_extensions_string GL_ATI_vertex_array_object
  GL_NV_occlusion_query GL_ARB_texture_env_add GL_EXT_packed_pixels
  GL_EXT_rescale_normal
GLU version: 1.2.2.0 Microsoft Corporation
GLU extensions:
  GL_EXT_bgra

Context is Win32Context()
WGL extensions:
 WGL_ARB_extensions_string WGL_ARB_make_current_read
 WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format
 WGL_ARB_render_texture WGL_ATI_pixel_format_float
 WGL_EXT_extensions_string WGL_EXT_swap_control
 WGL_ATI_render_texture_rectangle


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to