Symbol not found: ____chkstk_darwin ImportError

Since today I am getting the following error when running my application locally (the error appears when importing Streamlit).

System: macOS 10.12 (I know it’s old)
Streamlit: tested on versions 1.7.0 - 1.8.1
Python version 3.9.0

Error:

Traceback (most recent call last):
  File "/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/bin/streamlit", line 5, in <module>
    from streamlit.cli import main
  File "/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/streamlit/__init__.py", line 70, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/streamlit/delta_generator.py", line 63, in <module>
    from streamlit.elements.image import ImageMixin
  File "/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/streamlit/elements/image.py", line 25, in <module>
    from PIL import Image, ImageFile
  File "/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/PIL/Image.py", line 132, in <module>
    from . import _imaging as core
ImportError: dlopen(/Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/PIL/_imaging.cpython-39-darwin.so, 2): Symbol not found: ____chkstk_darwin
  Referenced from: /Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/PIL/.dylibs/libtiff.5.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/fabianmeyer/.local/share/virtualenvs/analytics-GC4g190F/lib/python3.9/site-packages/PIL/.dylibs/libtiff.5.dylib

I tried to install and uninstall PIL (pillow) but has no effect.

Can anybody help me?

Try previous version:

Pillow==9.0.1

Wow! How did you find out?

GitHub issues of Pillow

1 Like

Thanks!