Closed brousch closed 10 years ago
The 3D Rendering example wiorks on Kivy 1.8 under Python 2.7, but fails on Kivy 1.8 under Python 3.3.
C:\Users\ben\Projects\kivy\examples\3Drendering>python main.py [INFO ] Kivy v1.8.0 [INFO ] [Logger ] Record log in C:\Users\ben\.kivy\logs\kivy_1 4-03-18_1.txt [INFO ] [Factory ] 157 symbols loaded [DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout= Nones [DEBUG ] [Cache ] register <kv.image> with limit=None, timeout =60s [DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout =Nones [INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img _gif (img_pil ignored) [DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeo ut=60s [DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeou t=3600s [DEBUG ] [Window ] Ignored <egl_rpi> (import error) [INFO ] [Window ] Provider: pygame(['window_egl_rpi'] ignored) [DEBUG ] [Window ] Display driver windib [DEBUG ] [Window ] Actual window size: 800x600 [DEBUG ] [Window ] Actual color bits r8 g8 b8 a8 [DEBUG ] [Window ] Actual depth bits: 24 [DEBUG ] [Window ] Actual stencil bits: 8 [DEBUG ] [Window ] Actual multisampling samples: 4 GLEW initialization succeeded [INFO ] [GL ] OpenGL version <b'4.0.0 - Build 9.17.10.2932 '> [INFO ] [GL ] OpenGL vendor <b'Intel'> [INFO ] [GL ] OpenGL renderer <b'Intel(R) HD Graphics 2500 '> [INFO ] [GL ] OpenGL parsed version: 4, 0 [INFO ] [GL ] Shading version <b'4.00 - Build 9.17.10.2932 '> [INFO ] [GL ] Texture max size <8192> [INFO ] [GL ] Texture max units <16> [INFO ] [Shader ] fragment shader: <No errors.> [DEBUG ] [Shader ] Fragment compiled successfully [INFO ] [Shader ] vertex shader: <No errors.> [DEBUG ] [Shader ] Vertex compiled successfully [INFO ] [Shader ] program: <No errors.> [DEBUG ] [ImagePygame ] Load <C:\Kivy-1.8.0-py3.3-win32\kivy\kivy\da ta\glsl\default.png> [INFO ] [Window ] virtual keyboard not allowed, single mode, n ot docked [DEBUG ] [App ] Loading kv <.\renderer.kv> [DEBUG ] [App ] kv <.\renderer.kv> not found [INFO ] [Shader ] program: <No errors.> [INFO ] [Shader ] Read <simple.glsl> [INFO ] [Shader ] vertex shader: <No errors.> [DEBUG ] [Shader ] Vertex compiled successfully [INFO ] [Shader ] fragment shader: <No errors.> [DEBUG ] [Shader ] Fragment compiled successfully [INFO ] [Shader ] program: <No errors.> Traceback (most recent call last): File "main.py", line 61, in <module> RendererApp().run() File "C:\Kivy-1.8.0-py3.3-win32\kivy\kivy\app.py", line 766, in run root = self.build() File "main.py", line 58, in build return Renderer() File "main.py", line 16, in __init__ self.scene = ObjFile(resource_find("monkey.obj")) File "C:\Users\ben\Projects\kivy\examples\3Drendering\objloader.py", line 126 , in __init__ self.finish_object() File "C:\Users\ben\Projects\kivy\examples\3Drendering\objloader.py", line 64, in finish_object data = [v[0], v[1], v[2], n[0], n[1], n[2], t[0], t[1]] TypeError: 'map' object is not subscriptable
Should be fixed by https://github.com/kivy/kivy/pull/1987
The 3D Rendering example wiorks on Kivy 1.8 under Python 2.7, but fails on Kivy 1.8 under Python 3.3.