Pyglet 1.2

56 views
Skip to first unread message

Aaron Meurer

unread,
Feb 26, 2015, 11:34:51 AM2/26/15
to sy...@googlegroups.com
Pyglet 1.2 has been released http://www.pyglet.org/index.html. Among
other things, it supports Python 3. I just tried to use it with SymPy,
but it looks like our pygletplot module does not support Python 3 (it
uses implicit relative imports). And it doesn't work in Python 2
either (name 'c_float' is not defined). So let's fix these, so we can
test it out.

Aaron Meurer

Aaditya Nair

unread,
Feb 26, 2015, 12:22:33 PM2/26/15
to sy...@googlegroups.com
I worked on this one. `name 'c_float' not defined` is actually fixed in the master branch.

Aaron Meurer

unread,
Feb 26, 2015, 12:47:37 PM2/26/15
to sy...@googlegroups.com
Ah, I forgot to pull first. Now I get

>>> PygletPlot(x**2)
Traceback (most recent call last):
File "<ipython-input-6-ce172b927272>", line 1, in <module>
PygletPlot(x**2)
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/__init__.py",
line 140, in PygletPlot
return plot.PygletPlot(*args, **kwargs)
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/plot.py",
line 242, in __init__
self[0] = fargs
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/plot.py",
line 319, in __setitem__
f = PlotMode(*args, **kwargs)
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/plot_mode.py",
line 78, in __new__
subcls = PlotMode._get_mode(mode_arg, i, d)
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/plot_mode.py",
line 156, in _get_mode
return PlotMode._get_default_mode(i, d)
File "/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/plotting/pygletplot/plot_mode.py",
line 170, in _get_default_mode
return PlotMode._mode_default_map[d][i]
KeyError: 1

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/390280a1-6316-4dc6-a6d2-7da65823633b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Aaditya Nair

unread,
Feb 26, 2015, 1:07:35 PM2/26/15
to sy...@googlegroups.com
This is similar to #8915 where the user tried for an Ellipse. I think we need to reopen it.
Reply all
Reply to author
Forward
0 new messages