PhasesResearchLab / AMMap

Additive Manufacturing Mapping of Compositional Spaces with Thermodynamic, Analytical, and Artificial Intelligence Models
MIT License
5 stars 0 forks source link

Pillow package issue in codespace #1

Closed amr8004 closed 3 months ago

amr8004 commented 5 months ago

In codespace, pycalphad requires

pip uninstall pillow pip install pillow in order to import pycalphad successfully. Version of pillow does not change.

notebook error below:

ImportError Traceback (most recent call last) Cell In[1], line 4 2 import nimplex 3 from utils import plotting ----> 4 import pycalphad

File /opt/conda/lib/python3.11/site-packages/pycalphad/init.py:16 14 from pycalphad.core.calculate import calculate 15 from pycalphad.core.equilibrium import equilibrium ---> 16 from pycalphad.plot.binary import binplot 17 from pycalphad.plot.ternary import ternplot 18 from pycalphad.plot.eqplot import eqplot

File /opt/conda/lib/python3.11/site-packages/pycalphad/plot/init.py:1 ----> 1 from . import triangular

File /opt/conda/lib/python3.11/site-packages/pycalphad/plot/triangular.py:16 1 """ 2 Register a 'triangular' projection with matplotlib to plot diagrams on 3 triangular axes. (...) 13 14 """ ---> 16 from matplotlib.axes import Axes ... 93 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n" 94 f"Pillow version: {version}" 95 )

ImportError: libtiff.so.5: cannot open shared object file: No such file or directory

amkrajewski commented 5 months ago

@amr8004

amr8004 commented 5 months ago

This error occurs when you try to import pycalphad or anything wherein in the jupyter notebook

amkrajewski commented 4 months ago

Appears fixed now!