Installing Cryptography on an Apple Silicon M1 Mac

This issue is due to a mismatch between the libffi header version and the version of libffi the dynamic linker finds. In general it appears users encountering this problem have homebrew libffi installed and have a Python built against that in some fashion. When this happens cffi (a cryptography dependency) compiles, but fails at runtime … Read more

How to run amd64 docker image on arm64 host platform?

Using –platform is correct. On my M1 Mac I’m able to run both arm64 and amd64 versions of the Ubuntu image from Docker Hub. The machine hardware name provided by uname proves it. # docker run –rm -ti –platform linux/arm/v7 ubuntu:latest uname -m armv7l # docker run –rm -ti –platform linux/amd64 ubuntu:latest uname -m x86_64 … Read more

Running Ruby, Node, Python and Docker on the new Apple Silicon architecture? [closed]

Programming languages such as Ruby, Node and Python should run on Apple M1 Chip but Docker is not supported as of now (They are working on it) Docker for Mac Issue https://github.com/docker/for-mac/issues/4733 Docker team might be working on fixing the issue as per this: https://github.com/docker/roadmap/issues/142 My Recommendation: Get it now only if you want to … Read more

How can I run two isolated installations of Homebrew?

Install Homebrew natively on Apple Silicon (will install to /opt/homebrew by default): /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Install Intel-emulated Homebrew (will install to /usr/local by default): arch –x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” If you haven’t yet installed Rosetta 2, you’ll need to run softwareupdate –install-rosetta first. Create an alias for Intel homebrew. I’m calling … Read more

“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1 [duplicate]

This worked for me after trying a bunch of solutions to no avail. Step 1 Using pyenv install python version 3.8.5 and set it as your default python version. This tutorial(https://realpython.com/intro-to-pyenv/) is helpful for getting pyenv configured properly. Step 1.1 Use this post(https://github.com/pyenv/pyenv/issues/1446) if you have troubles running pyenv in zsh. Step 1.2 Once you … Read more

How can I install GRPCIO on an Apple M1 Silicon laptop?

This seems to work well, do the following in the terminal export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 And then install whatever package that you wanted to install, in my case I was trying to install firebase admin and I had to run the following pip install firebase-admin Or just run the below command if you just want … Read more

Xcode error ‘building for iOS Simulator, but linking in dylib built for iOS .. for architecture arm64’ from Apple Silicon M1 Mac

Answering my own question in a hope to help others who are having similar problems. (and until a good answer is added from another user) I found out that GoogleWebRTC actually requires its source to be compiled with x64 based on its source depo. For builds targeting iOS devices, this should be set to either … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)