-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
brew install zbar
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
Then :
arch -arm64 brew install zbar
==> Installing zbar
==> Pouring zbar-0.23.90.arm64_big_sur.bottle.tar.gz
🍺 /opt/homebrew/Cellar/zbar/0.23.90: 33 files, 889.5KB
==> Upgrading 5 dependents:
ffmpeg 4.3.2_3 -> 4.3.2_4, numpy 1.20.1_1 -> 1.20.2, sip 6.0.3 -> 6.0.3_1, opencv 4.5.1_3 -> 4.5.2, pyqt@5 5.15.4 -> 5.15.4_1
and run python script still throw error:
File "/opt/anaconda3/lib/python3.8/site-packages/pyzbar/wrapper.py", line 115, in load_libzbar
libzbar, dependencies = zbar_library.load()
File "/opt/anaconda3/lib/python3.8/site-packages/pyzbar/zbar_library.py", line 65, in load
raise ImportError('Unable to find zbar shared library')
ImportError: Unable to find zbar shared library
I'm not sure what is going on.
I had to copy "zbar/0.23.90/lib and bin" files to "/opt/anaconda3/lib/ and bin "directory.But still diffrent error:
/opt/anaconda3/bin/../lib/libzbar.dylib, 6): no suitable image found
/opt/anaconda3/bin/../lib/libzbar.dylib: mach-o, but wrong architecture
Metadata
Metadata
Assignees
Labels
No labels