Python Mobile development using kivy

Laura Creighton lac at openend.se
Mon Aug 17 13:14:26 EDT 2015


In a message of Mon, 17 Aug 2015 09:35:12 -0700, reetesh nigam writes:
>Hi All,
>
>I am using Python2.7 version, while developing basic app using kivy, I am getting following error :
>
>dev at synechron-desktop-156:~/myDev/mobile_app$ cat main.py 
>from kivy import app
>from kivy.app import App
>from kivy.uix.label import Label
>class MyApp(App):
>    def build(self):
>        return Label(text='Hello world')
>if __name__ == '__main__':
>    MyApp().run()
>
>dev at synechron-desktop-156:~/myDev/mobile_app$ python main.py 
>[INFO   ] [Logger      ] Record log in /home/dev/.kivy/logs/kivy_15-08-17_0.txt
>[INFO   ] [Kivy        ] v1.9.0
>[INFO   ] [Python      ] v2.7.5 (default, Aug  9 2015, 22:40:01) 
>[GCC 4.4.3]
>[INFO   ] [Factory     ] 173 symbols loaded
>[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer ignored)
> Traceback (most recent call last):
>   File "main.py", line 1, in <module>
>     from kivy import app
>   File "/usr/local/lib/python2.7/site-packages/kivy/app.py", line 324, in <module>
>     from kivy.uix.widget import Widget
>   File "/usr/local/lib/python2.7/site-packages/kivy/uix/widget.py", line 167, in <module>
>     from kivy.graphics.transformation import Matrix
>   File "/usr/local/lib/python2.7/site-packages/kivy/graphics/__init__.py", line 89, in <module>
>     from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \
>   File "kivy/graphics/vbo.pxd", line 7, in init kivy.graphics.instructions (kivy/graphics/instructions.c:14003)
>   File "kivy/graphics/compiler.pxd", line 1, in init kivy.graphics.vbo (kivy/graphics/vbo.c:5112)
>   File "kivy/graphics/shader.pxd", line 5, in init kivy.graphics.compiler (kivy/graphics/compiler.c:2863)
>   File "kivy/graphics/texture.pxd", line 3, in init kivy.graphics.shader (kivy/graphics/shader.c:10293)
>   File "kivy/graphics/fbo.pxd", line 5, in init kivy.graphics.texture (kivy/graphics/texture.c:29967)
>   File "kivy/graphics/fbo.pyx", line 84, in init kivy.graphics.fbo (kivy/graphics/fbo.c:7065)
> ImportError: /usr/local/lib/python2.7/site-packages/kivy/graphics/opengl.so: undefined symbol: glBlendEquationSeparate
>dev at synechron-desktop-156:~/myDev/mobile_app$

If you get undefined opengl errors, it is usually caused by an old
version of opengl, and the error you got is common.

This is a puzzling error that most often happens when compiling under
i386 for the old libGL.  Given that the symbol is present in libGL and
that compilation works under amd64, this shouldn't be happening.  But
for some reason it does.  If a newer version of opengl.so  doesn't fix
your problem, post a bug report here:
https://github.com/kivy/kivy/issues

or discuss it on #kivy on freenode

Laura





More information about the Python-list mailing list