Hi,

I think this pythonw thing works for me only because I'm on osx and there is a
/usr/bin/pythonw, which means "run python with a gui", so it is
running a system-wide
python.   However, because I did "sage -sh", I'm still getting the
packages installed
into sage, e.g., pyglet and sympy.

So folks, don't try this at home after all.  That said, it's very
pretty when it works,
so we should definitely figure out if pyglet can somehow benefit sage.

William

On Dec 10, 2007 2:12 PM, Jason Grout <[EMAIL PROTECTED]> wrote:
>
>
> Ondrej Certik wrote:
> > On Dec 10, 2007 11:03 PM, David Joyner <[EMAIL PROTECTED]> wrote:
> >> On Dec 10, 2007 4:58 PM, William Stein <[EMAIL PROTECTED]> wrote:
> >>> On Dec 10, 2007 1:39 PM, David Joyner <[EMAIL PROTECTED]> wrote:
> >>>> The plots look really nice. Thanks for posting this.
> >>>> Since pyglet depends on it, I'm curious what people think of opengl.
> >>> Try this in Sage right now.  It might work for you.
> >>>
> >>> (1) From the command line, type
> >>>
> >>>     sage -sh
> >>>
> >>> (2) Type
> >>>
> >>>    bash$    pythonw
> >>
> >> "pythonw" gave "command not found". If you meant "python", I got a
> >> segfault:
> >>
> >>
> >> [EMAIL PROTECTED]:/mnt/drive_hda1/sagefiles/sage-2.8.13.alpha1$ python
> >> Python 2.5.1 (r251:54863, Nov 26 2007, 13:44:20)
> >> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> >> Type "help", "copyright", "credits" or "license" for more information.
> >>>>> from sympy import symbols, Plot
> >>>>> x,y,z = symbols('xyz')
> >>>>> Plot(x*y**3-y*x**3)
> >> [0]: x*y**3 - y*x**3, 'mode=cartesian'
> >>>>> Window initialization failed: No conforming visual exists
> >> Segmentation fault (core dumped)
> >
> > It needs fixing to work from Sage notebook, there is some pythonw
> > exception, but I have no idea what pythonw is. As to the segfault, it
> > is probably a bug in pyglet, I just updated to the newest one and
> > released sympy with that a few days ago. But ubuntu should work out of
> > the box (if you are using ubuntu).
> >
> > Ondrej
> >
> > >
> >
>
> I got the following on Ubunty 7.10 (32-bit).  Any ideas what went wrong?
>
> $ sage -sh
> Starting subshell with Sage environment variables set:
> $ pythonw
>
> KABOOOM!!!
>
> Whoops, command-not-found has crashed! Please file a bug report at:
> https://bugs.launchpad.net/ubuntu/+source/command-not-found
> Please include the following information with the report:
> No module named CommandNotFound
> Traceback (most recent call last):
>    File "/usr/lib/command-not-found", line 10, in <module>
>      from CommandNotFound import CommandNotFound
> ImportError: No module named CommandNotFound
> Python version: 2.5.1 final 0
> bash: pythonw: command not found
> $ python<TAB>
> python                python2.5-config      python-config
> python2.4             python2.5-dbg         python-dbg
> python2.4-config      python2.5-dbg-config  python-dbg-config
> python2.5             python.cex
> $ python
> Python 2.5.1 (r251:54863, Nov 26 2007, 12:10:35)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> from sympy import symbols, Plot
>  >>> x,y,z=symbols('xyz')
>  >>> Plot(x*y**3-y*x**3)
> Xlib:  extension "XFree86-DRI" missing on display ":1.0".
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/__init
> __.py", line 16, in Plot
>      import plot
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/plot.p
> y", line 8, in <module>
>      from plot_axes import PlotAxes
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/plot_a
> xes.py", line 2, in <module>
>      from pyglet import font
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/pyglet
>                                   /font/__init__.py", line 79, in <module>
>      from pyglet import image
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/pyglet
>                                   /image/__init__.py", line 1964, in
> <module>
>      _codecs.add_default_image_codecs()
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/pyglet
>                                   /image/codecs/__init__.py", line 173,
> in add_default_image_codecs
>      import pyglet.image.codecs.gdkpixbuf2
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/pyglet
>                                   /image/codecs/gdkpixbuf2.py", line 50,
> in <module>
>      gdk = pyglet.lib.load_library('gdk-x11-2.0')
>    File
> "/home/grout/sage/local/lib/python2.5/site-packages/sympy/plotting/pyglet
>                                   /lib.py", line 43, in load_library
>      return ctypes.cdll.LoadLibrary(path)
>    File "/home/grout/sage/local/lib/python2.5/ctypes/__init__.py", line
> 425, in L                                  oadLibrary
>      return self._dlltype(name)
>    File "/home/grout/sage/local/lib/python2.5/ctypes/__init__.py", line
> 342, in _                                  _init__
>      self._handle = _dlopen(self._name, mode)
> OSError: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter
>
>  >>>
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to