Seeing issue on MAC M1

Seeing following issue:

streamlit hello 1 ↡
Traceback (most recent call last):
File β€œ/Library/Frameworks/Python.framework/Versions/3.8/bin/streamlit”, line 5, in
from streamlit.web.cli import main
File β€œ/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/streamlit/init.py”, line 56, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File β€œ/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/streamlit/delta_generator.py”, line 55, in
from streamlit.elements.image import ImageMixin
File β€œ/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/streamlit/elements/image.py”, line 31, in
from PIL import GifImagePlugin, Image, ImageFile
File β€œ/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/GifImagePlugin.py”, line 33, in
from . import Image, ImageChops, ImageFile, ImagePalette, ImageSequence
File β€œ/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/Image.py”, line 100, in
from . import _imaging as core
ImportError: dlopen(/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/_imaging.cpython-38-darwin.so, 0x0002): tried: β€˜/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/_imaging.cpython-38-darwin.so’ (mach-o file, but is an incompatible architecture (have β€˜arm64’, need β€˜x86_64’)), β€˜/System/Volumes/Preboot/Cryptexes/OS/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/_imaging.cpython-38-darwin.so’ (no such file), β€˜/Users/nammehta/Library/Python/3.8/lib/python/site-packages/PIL/_imaging.cpython-38-darwin.so’ (mach-o file, but is an incompatible architecture (have β€˜arm64’, need β€˜x86_64’))

Python 3.8 compatibility with ARM is awful. Migrate to Python 3.9 and you should not see most of these issues.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.