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 failure #1358

Closed
wetbadger opened this issue Mar 3, 2023 · 6 comments
Closed

emscripten installation failure #1358

wetbadger opened this issue Mar 3, 2023 · 6 comments

Comments

@wetbadger
Copy link

Please include the following in your bug report:

Version of emscripten/emsdk:
Command 'emcc' not found, but can be installed with:
sudo apt install emscripten

(Problem with installation)

Failing command line in full:

Trying to install from git-clone:

./emsdk install latest -v
Resolving SDK alias 'latest' to '3.1.32'
Resolving SDK version '3.1.32' to 'sdk-releases-29ad1037cd6b99e5d8a1bd75bc188c1e9a6fda8d-64bit'
Installing SDK 'sdk-releases-29ad1037cd6b99e5d8a1bd75bc188c1e9a6fda8d-64bit'..
Installing tool 'node-14.18.2-64bit'..
Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v14.18.2-linux-x64.tar.xz': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
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!

Trying to install from apt:

sudo apt install node-acorn
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
node-acorn : Depends: nodejs:any or
nodejs (< 12.22.5dfsg-4) but 18.14.2-deb-1nodesource1 is to be installed
E: Unable to correct problems, you have held broken packages.

@sbc100
Copy link
Collaborator

sbc100 commented Mar 3, 2023

Seems like a duplicate of #1357

Somehow your system version python isn't able to validate certificates.

What does which python and which python3 say?

What distribution are you using?

@wetbadger
Copy link
Author

/home/worryword/.pyenv/shims/python
and
/home/worryword/.pyenv/shims/python3

python version is: 3.9.13

Distro is Linux Mint 21.1

@sbc100
Copy link
Collaborator

sbc100 commented Mar 3, 2023

I would recommend following the various pieces of advice in #1357. Several folks seems to have had the same issue.

One think I notice is that .pyenv seems to be some kind of virtual environment. Do you have /usr/bin/python3 on your system? What happens if you try using that directly (i.e. /usr/bin/python3 emsdk.py install latest)

OK to close this issue as a duplicate?

@wetbadger
Copy link
Author

Your advice to use /usr/bin/python3 emsdk.py install latest worked. If it is a true duplicate I am not sure because many of them are saying they had to use python2.7.

@sbc100
Copy link
Collaborator

sbc100 commented Mar 17, 2023

There may be different root causes but the net result is CERTIFICATE_VERIFY_FAILED due to some kind of issue with the pre-exiting python installation.

Its hard to know what emscripten can do about this since we kind of depend on a working copy of python.

@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