-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix"Unable to locate package msodbcsql17"on M1 #5638
Conversation
If you run the docker-compose on a Mac with the new M1 chip, you will get the "Unable to locate package msodbcsql17" error. Because there are currently no msodbcsql17 packages for arm64 architecture. The solution was to change the base image in the Dockerfile to change the installation to the older AMD architecture. FROM --platform=linux/amd64 python:3.7-slim-buster
I ended up doing this for some local development but it did make the build significantly slower. Is the idea that it's not going to slow anything down on M1 and on M1 it's already broken anyway? |
I think this is a good idea. We've had a lot of questions about compiling on the apple silicon chips. Until we can iron out the builds this will communicate to people early that it's not expected to work. We should add something to our docs about it as well. |
@dangoldin did you just slow down the build time of the image or other things as well? |
@arikfr Just the build time from what I noticed. |
In the future we should consider using a different image without the MSSQL stuff so we don't have to use a different architecture, but for now this feels like a reasonable solution. Thank you! |
I support this merge, but the good news is that shortly it won't be necessary if we modify how we install it: From their docs:
Since we don't use brew to install we can simply borrow the implementation from their brew taps. |
This, while it allows M1 to work, will forever break any other ARM system by hard-coding the docker builds. M1 users should be doing this, And this Docker file needs some conditional addition of this driver so it will build on ARM. |
If you run the docker-compose on a Mac with the new M1 chip, you will get the "Unable to locate package msodbcsql17" error. Because there are currently no msodbcsql17 packages for arm64 architecture. The solution was to change the base image in the Dockerfile to change the installation to the older AMD architecture. FROM --platform=linux/amd64 python:3.7-slim-buster
What type of PR is this? (check all applicable)
Description
If you run the docker-compose on a Mac with the new M1 chip, you will get the "Unable to locate package msodbcsql17" error. Because there are currently no msodbcsql17 packages for arm64 architecture. The solution was to change the base image in the Dockerfile to change the installation to the older AMD architecture.
FROM --platform=linux/amd64 python:3.7-slim-buster
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)