Dear Juan J. Martínez,
Thank you very much for your help. I can execute these commands outside IPython notebook. I can execute these commands inside IPython (not IPython notebook). The cause was as you told me . > If I recall correctly Pyglet's 1.2 resources framework won't work inside > a IPython notebook or inside IDLE (also I recall reports of problems > with PyCharm). > > These projects fiddle with some python internals that pyglet needs to > load resources, so it doesn't work. Some day, I would like to use Pyglet in IPython notebook. > Pyglet supports some packaging tools like py2exe or py2app, though. > You can load the images without the resources, see: > http://pyglet.org/doc-current/programming_guide/image.html#loading-an-image Thank you very much for letting me know . I do not know those tools. So, I will check them. I would like to use Cocos2d, and sprite = cocos.sprite.Sprite('x.png') cause an Error, because cocos.sprite.Sprite call pyglet.resource.image inside. So, I check pyglet.resource.image method. I don't use IPython notebook with Cocos2d and Pyglet. Now I came to be able to use the Cocos2d Thanks to you. Thank you very much for your help. With best regards buynnnmmm1 2014年10月3日金曜日 23時19分55秒 UTC+9 Juan J. Martínez: On 03/10/14 14:47, buynnnmmm1 wrote: > Dear, Juan J. Martínez > > > Thank you very much for your help. > I use IPython notebook. > If I recall correctly Pyglet's 1.2 resources framework won't work inside a IPython notebook or inside IDLE (also I recall reports of problems with PyCharm). These projects fiddle with some python internals that pyglet needs to load resources, so it doesn't work. Pyglet supports some packaging tools like py2exe or py2app, though. You can load the images without the resources, see: http://pyglet.org/doc-current/programming_guide/image.html#loading-an-image Or don't run pyglet inside IPython. Regards, Juan PS: it is documented somewhere, but I don't have the time right now to go deeper ;) -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
