Dear Matthias,

Thanks for your help! I tried that and found that several packages are 
broken. I uninstalled them and re-installed some of them, now it is working!


Thanks,
Jianping

On Sunday, June 4, 2023 at 1:19:59 AM UTC-4 Matthias Koeppe wrote:

> Try "make -j list-broken-packages", which may give instructions how to fix 
> this
>
> On Saturday, June 3, 2023 at 7:40:58 PM UTC-7 Jianping Pan wrote:
>
>> 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)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/854068e1-807a-446f-ba16-17e55cf5c7a6n%40googlegroups.com.

Reply via email to