Questions tagged [apple-m1]

NOTICE: Questions using this tag must be related to programming, your question will risk being closed otherwise. Do not use if you are discussing software or operating system subjects. If you need support you can try https://apple.stackexchange.com.

Apple M1 is an ARM based system on a chip designed by Apple Inc.

2791 questions
34
votes
7 answers

Issues installing Python 3.8.10 on macOS 12.3 Monterey

Anyone having issues installing python 3.8.10 on macOS Monterey M1 Mac? Any version I try to install using pyenv install gives me this error: python-build: use openssl@1.1 from homebrew python-build: use readline from homebrew Downloading…
honikun
  • 367
  • 1
  • 3
  • 5
34
votes
7 answers

Install older Ruby versions on a M1 MacBook?

Installing Ruby 3.0.x works fine on M1 MacBooks using rbenv or asdf. But older versions like 2.7.x and 2.6.x are having various issues. How do I fix them, without installing both x86 and ARM versions of homebrew at the same time?
orthodoX
  • 992
  • 1
  • 8
  • 17
34
votes
5 answers

Cannot install psycopg2 with pip3 on M1 Mac

I cannot install psycopg2 on my M1 Mac and I used pip3. When I tried to install with pip3 install psycopg2 The output like that: ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/python@3.9/bin/python3.9 -c 'import…
akasaa
  • 1,282
  • 4
  • 13
  • 33
34
votes
3 answers

How to install h5py (needed for Keras) on MacOS with M1?

I have an M1 MacBook. I have installed python 3.9.1 using pyenv, and have pip3 version 21.0.1. I have installed homebrew and hdf5 1.12.0_1 via brew install hdf5. When I type pip3 install h5py I get the error: Requirement already satisfied:…
Racing Tadpole
  • 4,270
  • 6
  • 37
  • 56
34
votes
2 answers

Apple M1 issue with iPhone simulator

I'm trying to compile my Xamarin Forms Android app on iOS. However I keep running into an error: [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)"…
Tygo
  • 441
  • 1
  • 4
  • 3
32
votes
4 answers

How to install GDB on mac m1 (apple silicon)?

I failed using brew to install gdb. I was using the following command: brew install gdb Is gdb available on mac m1 (apple silicon)? If so, what should I do?
潘嶓 Bo Pan
  • 383
  • 1
  • 4
  • 7
31
votes
5 answers

The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java

I couldn't run the flutter app on android emulator or android phone. I installed the recently released android studio for arm-mac platform on m1 mac. Please answer if I am doing anything wrong here or is it the problem with the release itself. Debug…
Yashwanth Ravula
  • 533
  • 1
  • 4
  • 17
31
votes
3 answers

Rails - TypeError: Unable to resolve type 'size_t' (Big Sur - M1)

I have an issue with my new mac to install a new rails app and I really need to resolve it quickly.I fixed all all problems with gem and bundle update is ok but I can not run rails s. I think it is because of the M1 but I don't find any post who fix…
Emz
  • 321
  • 3
  • 4
30
votes
1 answer

Docker amd64 warning on Apple M1 computer

What is this warning: I have enabled docker compose V2 and set export DOCKER_DEFAULT_PLATFORM=linux/amd64 as an env variable as I believe that this enables an emulation that allows the docker images to run on an Apple M1 chip. I am new to docker…
Oamar Kanji
  • 1,824
  • 6
  • 24
  • 39
30
votes
8 answers

Installing Cryptography on an Apple Silicon M1 Mac

Help! I'm trying to install cryptography on my m1. I know I can run terminal in rosetta mode, but I'm wondering if there is a way not to do that. Output: ERROR: Command errored out with exit status 1: command:…
Joe Fedorowicz
  • 625
  • 2
  • 6
  • 14
28
votes
13 answers

How can I run pyqt5 on my Mac with M1chip (ppc64el architecture)?

Now. When I run it. The error comes ImportError: dlopen(/Users/v/Library/Python/3.8/lib/python/site-packages/PyQt5/QtWidgets.abi3.so, 2): no suitable image found. Did…
vihanchou
  • 380
  • 1
  • 3
  • 6
28
votes
6 answers

Docker connect SQL Server container non-zero code: 1

I'm trying to create a SQL Server container from a docker-compose.yml but when I run it, it directly stops with some errors. Note: it's running on an Apple M1 chip with docker Preview docker-compose.yml: version: "3.7" services: sql-server-db: …
mrtn
  • 281
  • 1
  • 3
  • 3
27
votes
11 answers

Installing scipy and scikit-learn on apple m1

The installation on the m1 chip for the following packages: Numpy 1.21.1, pandas 1.3.0, torch 1.9.0 and a few other ones works fine for me. They also seem to work properly while testing them. However when I try to install scipy or scikit-learn via…
jpschreiter
  • 313
  • 1
  • 3
  • 6
27
votes
8 answers

M1 mac cannot run jboss/keycloak docker image

Switched to m1 mac a week ago and I cannot get my application up and running with docker because of the jboss/keycloak image not working as expected. Getting the following message from the container when trying to access localhost:8080 12:08:12,456…
Ivan Andonöw
  • 373
  • 1
  • 3
  • 6
26
votes
5 answers

M1 Related! - Prisma: Can't reach database server at `database`:`5432`

Since I have moved to the new Apple Silicon architecture my docker setup with nextjs and postgres is not working anymore. The database inside the docker cannot be found by the nextjs server where I am using prisma. The prisma client can't reach the…
brstkr
  • 1,423
  • 3
  • 18
  • 28