Reputation: 524
I recently got a Mac with the apple M1 chip and I am having numerous problems running libraries and applications.
One such example is numpy. To provide context, I installed Python 3.9 and pip3 and then decided to use pip to install numpy. To test if Python 3.9 and numpy have been properly installed, I type in terminal python3
. I next try importing numpy using the statement import numpy
I then get the error
/var/db/oah/e089a6709d38c1a085254c76a7cb592fcceddb3f234a4aa318bb4ec25fe40d27/a37f39d2b061393d7731233ae89d90cd87c97f4edeeb46a78ad791/_multiarray_umath.cpython-39-darwin.so.aot: attachment of code signature supplement failed: 1
zsh: trace trap python3
I have the exact same error when trying to open other applications (eg. SonicWall Mobile Connect) from the apple app store. If anyone has any insight to how to resolve this rosetta error it would be very much appreciated.
Cheers!
Upvotes: 28
Views: 86866
Reputation: 1682
What worked for me:
Verify that Rosetta is installed on your Mac. Rosetta should be installed automatically when you try to run an Intel-based application on an Apple Silicon Mac. If it's not installed, you can manually install Rosetta using the following command:
softwareupdate --install-rosetta
Upvotes: 11
Reputation: 36427
I just upgraded my OS to macOS Ventura. Then suddenly certain commands in terminal stopped working.
All I had to do was:
Upvotes: 0
Reputation: 874
This was happening to me a lot. Restarting fixed the issue but it would happen again soon after. Restarting so often would be a pain.
This answer on another question helped me fix the issue without having to restart:
dotnet clean
https://stackoverflow.com/a/74197116/1266153
Upvotes: 5
Reputation: 305
FWIW - Same behaviour on macOS Monterey 12.6.1. Simple restart solved the problem. Nothing else was required.
Upvotes: 13
Reputation: 555
I just had the same problem and I realized that I had the AMD64 binary.
file /Applications/SnowSQL.app/Contents/MacOS/snowsql /Applications/SnowSQL.app/Contents/MacOS/snowsql: Mach-O 64-bit executable x86_64
I used Homebrew to install, i.e.
brew install --cask snowflake-snowsql
Upvotes: -3
Reputation: 1
I faced similar issue after upgrading to Monterey 12.3.1
,
tried restarting MacOS but that didn't help.
Later figured out that I was not able to build java applications using Java 8 but Java 11 applications were running fine.
Issue got resolved after installing java 11 from https://www.oracle.com/java/technologies/downloads/#java11-mac
Upvotes: 0
Reputation: 8162
I am using M1 Mac Monterey 12.3.1
, I had to switch over to using Docker Compose V2. After I did this and restarted the Docker for Mac engine client app, the CLI started working again (though the buttons in the app still gave errors).
Good luck!
Upvotes: 3
Reputation: 5681
One of the following will fix the issue IMHO.
I had the same issue on Apple Silicon (M1Pro) running on Mac OS Monterey (12.0). I installed Rosetta2 and problem persisted. I deleted and reinstalled Docker but that did not fix the problem. After reading other answers on this question, I realized that for some people, OS upgrade was solving the problem.
Upvotes: 43
Reputation: 31
The same problem has occurred for me as well, but with Big Sur 11.5 update as another comment has pointed out before me.
What I did to fix the error was to update from Big Sur 11.5 to Big Sur 11.6.
From there the issue resolved itself for me.
Upvotes: 3
Reputation: 524
As it turns out this was an Apple software issue. (I believe it was update 11.4, but I am not 100% sure.) After doing the software update the rosetta issue disappeared and all of the software that was having problems with it earlier now function properly.
Upvotes: 2