macos-big-surapple-m1rosetta

Mac M1 chip issues with rosetta, “attachment of code signature supplement failed: 1”


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!


Solution

  • One of the following will fix the issue IMHO.

    1. Restart Mac OS.
    2. Upgrade OS (will restart after the upgrade)
    3. Upgrade Docker, Upgrade OS, restart.

    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.