So, would you say this is a pyglet bug or a pypy bug? My understanding is that python code that uses the supported libraries should work the same in pypy and Cpython2.7.
On Sun, Feb 28, 2016 at 4:02 PM, Tristam MacDonald <[email protected]> wrote: > I'm not saying that PyPy doesn't support ctypes. I'm saying that Pyglet > has in places "interesting" use of ctypes. > > I had to make a lot of changes to get it working on PyPy in the first > place, and I wouldn't be surprised if we still have bugs. > > On Sun, Feb 28, 2016 at 1:49 PM, ... <[email protected]> wrote: > >> Hmm, >> >> from http://pypy.org/compat.html >> >> >Supported, but written in pure Python: >> > cPickle, ctypes, ... >> >> I'd think the pypy folks would consider this a bug, no? >> >> On Sun, Feb 28, 2016 at 3:39 PM, Tristam MacDonald <[email protected]> >> wrote: >> >>> Pyglet isn't really a pure-Python library, give the extensive use of >>> ctypes. Pyglet's ctypes comparability with PyPy has been a little hit or >>> miss over time, but it was working last time I tried. >>> >>> On Sun, Feb 28, 2016 at 1:36 PM, ... <[email protected]> wrote: >>> >>>> Pypy should work with any pure python library, such as pyglet. Please >>>> write a minimal example that demonstrates this error and post it on the >>>> pypy dev mailing list and maybe here also. >>>> >>>> http://pypy.org/contact.html >>>> >>>> On Sun, Feb 28, 2016 at 7:25 AM, Salvakiya <[email protected]> wrote: >>>> >>>>> Just to clarify... I do not get this error when using cpython. only >>>>> with pypy. pypy is supposed to support pyglet? >>>>> >>>>> >>>>> On Sunday, February 28, 2016 at 11:20:12 AM UTC, Salvakiya wrote: >>>>>> >>>>>> why am I getting this error? >>>>>> >>>>>> Traceback (most recent call last): >>>>>> File "C:/Users/Salvakiya/PycharmProjects/OpenGLTest/test.py", line >>>>>> 12, in <module> >>>>>> anim = pyglet.resource.image("SoldierUS.png") >>>>>> File "D:\pypy\site-packages\pyglet\resource.py", line 529, in image >>>>>> atlas=atlas) >>>>>> File "D:\pypy\site-packages\pyglet\resource.py", line 460, in >>>>>> _alloc_image >>>>>> img = pyglet.image.load(name, file=file) >>>>>> File "D:\pypy\site-packages\pyglet\image\__init__.py", line 193, in >>>>>> load >>>>>> image = decoder.decode(file, filename) >>>>>> File "D:\pypy\site-packages\pyglet\image\codecs\gdiplus.py", line >>>>>> 277, in decode >>>>>> self._delete_bitmap(bitmap) >>>>>> File "D:\pypy\site-packages\pyglet\image\codecs\gdiplus.py", line >>>>>> 272, in _delete_bitmap >>>>>> self.stream.Release() >>>>>> File "D:\pypy\site-packages\pyglet\com.py", line 125, in <lambda> >>>>>> self.method.get_field()(self.i, self.name)(obj, *args) >>>>>> File "D:\pypy\lib_pypy\_ctypes\function.py", line 345, in __call__ >>>>>> newargs.insert(0, thisvalue.value) >>>>>> AttributeError: 'IUnknown' object has no attribute 'value' >>>>>> >>>>>> the only way I can actually load images into my application is if I >>>>>> do pyglet.image.load and manually set the decoder. >>>>>> >>>>>> this is very annoying =( I am on windows 10 using pypy for python 2.7 >>>>>> >>>>> -- >>>>> 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 https://groups.google.com/group/pyglet-users. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> 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 https://groups.google.com/group/pyglet-users. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> 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 https://groups.google.com/group/pyglet-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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 https://groups.google.com/group/pyglet-users. >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 https://groups.google.com/group/pyglet-users. > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
