Skip to content
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

Emscripten installation fails with Python 3 on macOS #1356

Closed
immakermatty opened this issue Dec 24, 2022 · 4 comments
Closed

Emscripten installation fails with Python 3 on macOS #1356

immakermatty opened this issue Dec 24, 2022 · 4 comments

Comments

@immakermatty
Copy link

immakermatty commented Dec 24, 2022

I encountered an issue while trying to install Emscripten using the ./emsdk install latest command. The installation failed with the following error message:

Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-14.18.2-64bit.tar.xz'..

I tried running the command again, but the issue persisted. I then tried installing an older version of Emscripten using the ./emsdk install <version> command, but I encountered the same issue.

I was able to resolve the issue by installing Python 2 and running the ./emsdk install latest command using Python 2.

I'm using macOS version 13.0.1 (22A400), and I have the latest version of Python 3.11.1 installed.

@immakermatty
Copy link
Author

immakermatty commented Dec 24, 2022

Full error from the command line

`matejsuchanek@Matejs-MacBook-Pro emsdk % python3 ./emsdk.py install latest
Resolving SDK alias 'latest' to '3.1.28'
Resolving SDK version '3.1.28' to 'sdk-releases-upstream-30b9e46ddcea66e91530559379089002d8b692cf-64bit'
Installing SDK 'sdk-releases-upstream-30b9e46ddcea66e91530559379089002d8b692cf-64bit'..
Installing tool 'node-14.18.2-64bit'..
Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v14.18.2-darwin-x64.tar.gz': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
Warning: Possibly SSL/TLS issue. Update or install Python SSL root certificates (2048-bit or greater) supplied in Python folder or https://pypi.org/project/certifi/ and try again.
error: installation failed!`

BTW The text of the issue was written by ChatGPT

I just described your bug report guidelines and what went wrong during the installation.

Screenshot 2022-12-24 at 13 23 31

@immakermatty immakermatty changed the title Emscripten installation fails with Python 3 on macOS Big Sur Emscripten installation fails with Python 3 on macOS Dec 24, 2022
@sbc100
Copy link
Collaborator

sbc100 commented Dec 26, 2022

Can you show the follow command you typed along with the full output? The file that em
sdk it trying to download looks a little odd because the filename is node-14.18.2-64bit.tar.xz. This filename should really include the OS name and be one of the following:

  • node-v14.18.2-darwin-x64.tar.gz
  • node-v14.18.2-linux-arm64.tar.xz
  • node-v14.18.2-linux-armv7l.tar.xz
  • node-v14.18.2-linux-x64.tar.xz
  • node-v14.18.2-win-x64.zip

Given you are on macOS I would expect it to be node-v14.18.2-darwin-x64.tar.gz.

Can you try running the same install command but with EMSDK_VERBOSE=1

@sbc100
Copy link
Collaborator

sbc100 commented Dec 26, 2022

Wait...... I just saw that the actual error was:

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
Warning: Possibly SSL/TLS issue. Update or install Python SSL root certificates (2048-bit or greater) supplied in Python folder or https://pypi.org/project/certifi/ and try again.

and that the filename being downloaded does include the string darwin.

So this is, I think, and issue with your local python installation. Other folks have run into this in the past and there are some fixed out here I believe. Googling for emsdk ssl gives some pointers.

BTW, where did the node-14.18.2-64bit.tar.xz filename (the one that doesn't contain the string dawrin) come from? Did chatgpt make that up?

@sbc100 sbc100 transferred this issue from emscripten-core/emscripten Mar 13, 2024
sbc100 added a commit that referenced this issue Mar 14, 2024
sbc100 added a commit that referenced this issue Mar 14, 2024
@sbc100
Copy link
Collaborator

sbc100 commented Mar 14, 2024

Fixed in #1355

@sbc100 sbc100 closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants