Shih-Yu Lo
2011-07-08 01:35:18 UTC
hi
I just installed python 2.6, VisionEgg, and all those required modules. When I ran my program, I specified the Gamma value to 2.1, and it said: "gamma ramp must contain integer elements". Below is the information from the log file:
2011-07-07 15:21:29,411 (3308) INFO: Script /Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py started Vision Egg 1.2.1 with process id 3308.
2011-07-07 15:21:49.487 Python[3308:60f] _createMenuRef called with existing principal MenuRef already associated with menu
2011-07-07 15:21:49,498 (3308) INFO: Requesting fullscreen 1024 x 768 32 bpp (8 8 8 0 RGBA).
2011-07-07 15:21:50,141 (3308) INFO: Error while trying to set_icon: <type 'exceptions.ImportError'>: No module named AppKit
2011-07-07 15:21:50,141 (3308) INFO: OpenGL 2.1 NVIDIA-1.6.24, NVIDIA GeForce 9400M OpenGL Engine, NVIDIA Corporation (PyOpenGL 3.0.1)
2011-07-07 15:21:50,141 (3308) INFO: Video system reports 32 bpp (8 8 8 8 RGBA).
2011-07-07 15:21:50,147 (3308) CRITICAL: Traceback (most recent call last):
File "/Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py", line 49, in <module>
screen = get_default_screen()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 741, in get_default_screen
return Screen.create_default()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 699, in create_default
if not screen.set_gamma_ramp(red,green,blue):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 602, in set_gamma_ramp
if pygame.display.set_gamma_ramp(*args,**kw):
ValueError: gamma ramp must contain integer elements
Traceback (most recent call last):
File "/Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py", line 49, in <module>
screen = get_default_screen()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 741, in get_default_screen
return Screen.create_default()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 699, in create_default
if not screen.set_gamma_ramp(red,green,blue):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 602, in set_gamma_ramp
if pygame.display.set_gamma_ramp(*args,**kw):
ValueError: gamma ramp must contain integer elements
So how should I fix this?
I just installed python 2.6, VisionEgg, and all those required modules. When I ran my program, I specified the Gamma value to 2.1, and it said: "gamma ramp must contain integer elements". Below is the information from the log file:
2011-07-07 15:21:29,411 (3308) INFO: Script /Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py started Vision Egg 1.2.1 with process id 3308.
2011-07-07 15:21:49.487 Python[3308:60f] _createMenuRef called with existing principal MenuRef already associated with menu
2011-07-07 15:21:49,498 (3308) INFO: Requesting fullscreen 1024 x 768 32 bpp (8 8 8 0 RGBA).
2011-07-07 15:21:50,141 (3308) INFO: Error while trying to set_icon: <type 'exceptions.ImportError'>: No module named AppKit
2011-07-07 15:21:50,141 (3308) INFO: OpenGL 2.1 NVIDIA-1.6.24, NVIDIA GeForce 9400M OpenGL Engine, NVIDIA Corporation (PyOpenGL 3.0.1)
2011-07-07 15:21:50,141 (3308) INFO: Video system reports 32 bpp (8 8 8 8 RGBA).
2011-07-07 15:21:50,147 (3308) CRITICAL: Traceback (most recent call last):
File "/Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py", line 49, in <module>
screen = get_default_screen()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 741, in get_default_screen
return Screen.create_default()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 699, in create_default
if not screen.set_gamma_ramp(red,green,blue):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 602, in set_gamma_ramp
if pygame.display.set_gamma_ramp(*args,**kw):
ValueError: gamma ramp must contain integer elements
Traceback (most recent call last):
File "/Users/alexhDied09/Desktop/Shihyu/Quadrant/Quadrant.py", line 49, in <module>
screen = get_default_screen()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 741, in get_default_screen
return Screen.create_default()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 699, in create_default
if not screen.set_gamma_ramp(red,green,blue):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visionegg-1.2.1-py2.6-macosx-10.5-fat.egg/VisionEgg/Core.py", line 602, in set_gamma_ramp
if pygame.display.set_gamma_ramp(*args,**kw):
ValueError: gamma ramp must contain integer elements
So how should I fix this?