Macos Introduction Skill linked to x86 not arm lib
Closed this issue · 1 comments
Specs
- Leon version: 1.0.0-beta.8
- OS (or browser) version: MacOS 14.7, homebrew up to date, Firefox 131.0.2
- Node.js version: 22.9.0
- Complete "leon check" (or "npm run check") output: https://report.getleon.ai/raw/ibeweriyog
- (optional) Leon skill version:
Expected Behavior
Launches but seems there are issues with the dependencies
Actual Behavior
leon@1.0.0-beta.8 check
ts-node scripts/check.js
.: CHECKING :.
ℹ️ Leon version
✅ 1.0.0-beta.8
ℹ️ Environment
✅ Total RAM: 32 GB
✅ {"type":"Darwin","platform":"darwin","arch":"x64","cpus":12,"release":"23.6.0","osName":"macOS Unknown","distro":null}
ℹ️ node --version
✅ v22.9.0
ℹ️ npm --version
✅ 10.9.0
✅ Python bridge version: 1.0.1
ℹ️ Executing a skill...
ℹ️ bridges/python/dist/macosx-arm64/leon-python-bridge "/Users/jason/.leon/scripts/assets/intent-object.json"
🚨 Error: Command was killed with SIGABRT (Aborted): bridges/python/dist/macosx-arm64/leon-python-bridge "/Users/jason/.leon/scripts/assets/intent-object.json"
dyld[52539]: Library not loaded: /opt/homebrew/opt/gettext/lib/libintl.8.dylib
Referenced from: <8B66F31C-B9FD-3912-9CE3-D0A671A47DD3> /Users/jason/.leon/bridges/python/dist/macosx-arm64/leon-python-bridge
Reason: tried: '/opt/homebrew/opt/gettext/lib/libintl.8.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/gettext/lib/libintl.8.dylib' (no such file), '/opt/homebrew/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/usr/lib/libintl.8.dylib' (no such file, not in dyld cache)
✅ TCP server version: 1.0.0
ℹ️ Starting the TCP server...
ℹ️ tcp_server/dist/macosx-arm64/leon-tcp-server en
ℹ️ For the first start, it may take a few minutes to cold start the TCP server on macOS. No worries it is a one-time thing
✅ The TCP server can successfully start
ℹ️ TCP server startup time: 3797ms
ℹ️ Global resolvers NLP model state
✅ Found and valid
ℹ️ Skills resolvers NLP model state
✅ Found and valid
ℹ️ Main NLP model state
✅ Found and valid
ℹ️ Amazon Polly TTS
ℹ️ Google Cloud TTS/STT
ℹ️ Watson TTS
ℹ️ Offline TTS
ℹ️ Watson STT
ℹ️ Offline STT
.: REPORT :.
ℹ️ Here is the diagnosis about your current setup
✅ Run
🚨 Run skills
✅ Reply you by texting
✅ Start the TCP server
🚨 Please fix the errors above
.: REPORT URL :.
ℹ️ Sending report...
✅ Report URL: https://report.getleon.ai/raw/ibeweriyog
How Do We Reproduce?
brew install git
brew install node
brew install npm
npm install -g npm@10.9.0
npm install --global @leon-ai-cli
leon create birth
leon start
Extra (like a sample repo to reproduce the issue, etc.)
I was able to get this fixed via the homebrew forums
https://github.com/orgs/Homebrew/discussions/5669#discussioncomment-10922144
You need to uninstall Homebrew from /usr/local and then install it into /opt/homebrew.
To uninstall:
curl -OL https://raw.githubusercontent.com/Homebrew/install/refs/heads/master/uninstall.sh
/bin/bash uninstall.sh --path=/usr/local
To install into /opt/homebrew:
arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
You may wish to brew bundle dump before uninstalling to generate a Brewfile, so that you can brew bundle install after installing to /opt/homebrew with the same packages you had installed previously.