illegal hardware instruction on new Mac M1

Hellos,

I recently restored Python projects from a Mac book pro running Catalina OS to an M1 running Big Sur. When I run my binaries like alembic or nameko, I get these errors:

23585 illegal hardware instruction alembic upgrade head

63450 Illegal instruction: 4 nameko run --config config.yml ... --backdoor 3000

I've tried reinstalling the binaries using pip, but no change.

Kindly help.

Sam.
illegal hardware instruction on new Mac M1
 
 
Q