Hello everyone. I am using sympy(http://code.google.com/p/sympy/), which uses pyglet(http://www.pyglet.org/) to plot, and then pyglet lends ctypes.
But sympy refuses to plot. I think the bug is in pylet or ctypes, but I am not sure, so I report to you all. I have the latest sympy, pyglet and ctypes on Simplified Chinese win2k with sp4, and the python is Stand alone Python for Windows( http://arctrix.com/nas/python/standalone.html ), which is actually python 2.4.1. I have deleted the pyglet directory under sympy. Note: below is 2 tests: #### test1 begins #### ### t1.py starts### import sympy print sympy.__version__ import pyglet print pyglet.version import ctypes print ctypes.__version__ from sympy import symbols, Plot x,y,z = symbols('xyz') Plot(x*y**3-y*x**3) ### t1.py ends ### This is the result: 0.5.2 1.0alpha2 1.0.2 Traceback (most recent call last): File "t1.py", line 12, in ? Plot(x*y**3-y*x**3) File "G:\python24\Python24\lib\site-packages\sympy\plotting \__init__.py", line 19, in Plot raise e WindowsError: (126, '') #### test1 ends #### #### test2 begins #### Now I am using the file that comes with pyglet G:\Python24\python24\Lib\site-packages\pyglet\examples>g: \python24\python media_player.py Traceback (most recent call last): File "media_player.py", line 13, in ? from pyglet import font File "G:\python24\Python24\lib\site-packages\pyglet\font \__init__.py", line 80, in ? from pyglet import image File "G:\python24\Python24\lib\site-packages\pyglet\image \__init__.py", line 1965, in ? _codecs.add_default_image_codecs() File "G:\python24\Python24\lib\site-packages\pyglet\image\codecs \__init__.py", line 166, in add_default_image_codecs import pyglet.image.codecs.gdiplus File "G:\python24\Python24\lib\site-packages\pyglet\image\codecs \gdiplus.py",line 52, in ? gdiplus = windll.gdiplus File "g:\python24\Python24\lib\site-packages\ctypes\__init__.py", line 415, in __getattr__ dll = self._dlltype(name) File "g:\python24\Python24\lib\site-packages\ctypes\__init__.py", line 340, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: (126, '') #### test2 ends #### --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
