Hi all,
I'm using SageMath version 10.1.beta1, and I have dot2tex and graphviz installed. I checked that following line produces a nice PDF of the tableau.
sage: T = Tableau([[1,2,2], [2,3]]); view(T)
However, I found that I can not plot or view any digraphs. Thanks!
sage: G = graphs.PetersenGraph().to_directed()
sage: G.plot()
/Users/jianpingpan/sage/src/sage/repl/rich_output/display_manager.py:610: RichReprWarning: Exception in _rich_repr_ while displaying object: dlopen(/Users/jianpingpan/sage/local/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so, 0x0002): Library not loaded: '/usr/local/opt/libtiff/lib/libtiff.5.dylib'
Referenced from: '/Users/jianpingpan/sage/local/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so'
Reason: tried: '/usr/local/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file), '/usr/local/Cellar/libtiff/4.5.0/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file)
warnings.warn(
sage: latex(G)
ImportError
Specifically for the ImportError, it looks like the following PIL import is broken
sage: from PIL import Image
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In [6], line 1
----> 1 from PIL import Image
File ~/sage/local/lib/python3.8/site-packages/PIL/Image.py:89
80 MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3)
83 try:
84 # If the _imaging C module is not present, Pillow will not load.
85 # Note that other modules should not refer to _imaging directly;
86 # import Image and use the Image.core variable instead.
87 # Also note that Image.core is not a publicly documented interface,
88 # and should be considered private and subject to change.
---> 89 from . import _imaging as core
91 if __version__ != getattr(core, "PILLOW_VERSION", None):
92 raise ImportError(
93 "The _imaging extension was built for another version of Pillow or PIL:\n"
94 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n"
95 f"Pillow version: {__version__}"
96 )
ImportError: dlopen(/Users/jianpingpan/sage/local/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so, 0x0002): Library not loaded: '/usr/local/opt/libtiff/lib/libtiff.5.dylib'
Referenced from: '/Users/jianpingpan/sage/local/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so'
Reason: tried: '/usr/local/opt/libtiff/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file), '/usr/local/Cellar/libtiff/4.5.0/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file)