-
Notifications
You must be signed in to change notification settings - Fork 68
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
Superset fails to run with ModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'
#63
Comments
make docker-run-superset
errors out withmake docker-run-superset
errors out with No module named 'cryptography.hazmat.backends.openssl.x509'
What python version? |
I'm on 2.7.16 (know i should be on 3) but running all this from docker run so my local python version shouldn't be in conflict ...I think. |
The dockerfile is pinned to python 3.9. Are you running this on the |
Nvm, I see you are running the makefile. I will take a look at it! |
ok so the issue is that the docker image is x86, not arm64. So the fix will be to build the docker image on arm64. I don't think I can do this dynamically? @gregwdata can you set docker to build images based on platform of {{ current_machine ))? |
make docker-run-superset
errors out with No module named 'cryptography.hazmat.backends.openssl.x509'Docker run
performs poorly (or doesn't run) on M1 mac because the docker image is for x86 architectures
@omnipresent07 as a work around, you can run this in codespaces for now. But I am contemplating how to solve this elegantly (may need a second dockerfile) |
@matsonj To build an image for ARM64, I think you need to start with a base image that has been built for ARM64. Looking at the base image you used, https://hub.docker.com/r/nikolaik/python-nodejs/tags?page=1 all the That said, I don't have experience with cross-platform builds. Did a little searching and found this https://dev.to/lakhansamani/create-docker-image-on-apple-silicon-m1-mac-2f75 which claims you can still build for |
ah good tip. Ok trying that now - i.e. If this works, will add a command to the make file |
ha doesn't appear to be environmental - issue still recurs. However, I did find this issue, which makes me think that maybe I've messed up the superset version pinning (should be pinned to 1.5.2) |
If it helps, I had done some updates the the Superset dependencies in #41, meltano.yml, to make it play nice w/ Superset 2.0, since the version pinning was changed from == 1.5.0 to >= 1.5.0 in #38 |
Docker run
performs poorly (or doesn't run) on M1 mac because the docker image is for x86 architecturesModuleNotFoundError: No module named 'cryptography.hazmat.backends.openssl.x509'
ah! yeah ok I'm going to pin to 1.5.2 and try again. lets see what happens here! Could probably handle superset 2.0.x with some |
I was able to reproduce the fix listed in the github issue on the superset side by pinning the dependency The issue was not the environment of the docker image, ALTHOUGH it runs incredibly slow on an M1 mac. Just a missing dependency related to superset going GA for a new version. I also tried pinning superset v1.5.2, but that had another set of dependency issues with Flask / Jinja, so instead it seemed more straight forward to go to superset v2.0.2. |
Its not building inside the github action - so I'm now chasing down a dependency. It appears that it has an old version of numpy that conflicts with superset 2.0.1. |
Ended up cleaning up some other stuff too, but the following line of code was modified, superset is now building again: |
After cloning the repository and trying to run in docker on master branch, I get this error:
It seems to be similar to error mentioned in #54 but the
superset-test
branch seems to be gone now. I'm happy to provide a PR if I can be pointed in the right direction on where this might be happening. I am running on macOS Catalina 10.15.7The text was updated successfully, but these errors were encountered: