You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error was caused by did't passing https certs related verifications, you can bypass this error by using default https context, add the following code into "emsdk", and try the same command again.
These two lines of code will globally disabling the verification of https certs, though it's not recommend to use, it did work.
Reacted by Pierre Glibert, Nick Aversano, Luis E. Fraguada, stevendcheng, Vadym Filipov, Bernard Lin, James, Endel Dreyer, Cydia, Brandon Yi and 23 more
Reacted by Endel Dreyer, Brandon Yi, Stupid Zhe, Scott Gangemi, Diego Sisto, Aleksei Kritskov, Devspace, Necho and Venkatesh Babu AR
Reacted by Scott Gangemi, javictory, Aleksei Kritskov, Devspace, 19890843006 and Venkatesh Babu AR
Reacted by Gokulakrishnan Kalaikovan, Devspace, Saeed Jahan akbari, David Emilsson, Venkatesh Babu AR and Comantparis
I just ran into this issue installing emsdk on a new Mac, even with Python 2.7.15 (the latest Python 2.7) pre-installed. I think there is a better solution than disabling certificate verification. Here is what worked for me:
Install Python 2.7.15 on Mac
Go to /Applications/Python 2.7 and run "Install Certificates.command"
Step 2 is the key, and the reasoning behind it is explained in /Applications/Python 2.7/ReadMe.rtf, under section [CHANGED in 2.7.15]. Essentially this will "install a curated bundle of default root certificates".
I just ran into this issue installing emsdk on a new Mac, even with Python 2.7.15 (the latest Python 2.7) pre-installed. I think there is a better solution than disabling certificate verification. Here is what worked for me:
Install Python 2.7.15 on Mac
Go to /Applications/Python 2.7 and run "Install Certificates.command"
Step 2 is the key, and the reasoning behind it is explained in /Applications/Python 2.7/ReadMe.rtf, under section [CHANGED in 2.7.15]. Essentially this will "install a curated bundle of default root certificates".
I had also run the install with python ./emsdk install latest not just ./emsdk install latest as it seems to default to system provided python.
This error was caused by did't passing https certs related verifications, you can bypass this error by using default https context, add the following code into "emsdk", and try the same command again.
This error was caused by did't passing https certs related verifications, you can bypass this error by using default https context, add the following code into "emsdk", and try the same command again.
Activity
Becavalier commentedon Jun 20, 2018
@pierreglibert
This error was caused by did't passing https certs related verifications, you can bypass this error by using default https context, add the following code into "emsdk", and try the same command again.
These two lines of code will globally disabling the verification of https certs, though it's not recommend to use, it did work.
kripken commentedon Jun 20, 2018
This may also be related to #6275 , if so then using a newer python may fix it.
pierreglibert commentedon Jun 21, 2018
Hi @Becavalier & @kripken :)
The solution of @Becavalier works.
Thanks ! 👍
Becavalier commentedon Jun 22, 2018
@pierreglibert You're welcome, issue can be closed now.
erik-larsen commentedon Jul 20, 2018
I just ran into this issue installing emsdk on a new Mac, even with Python 2.7.15 (the latest Python 2.7) pre-installed. I think there is a better solution than disabling certificate verification. Here is what worked for me:
Step 2 is the key, and the reasoning behind it is explained in /Applications/Python 2.7/ReadMe.rtf, under section [CHANGED in 2.7.15]. Essentially this will "install a curated bundle of default root certificates".
@kripken If someone else can confirm this fixes emsdk installs on fresh Macs, perhaps it could be added to https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#mac-os-x.
kripken commentedon Jul 21, 2018
Thanks @erik-larsen, yeah, would be good if others can confirm this, and then we should add it to those docs.
weewam commentedon Oct 3, 2018
@erik-larsen Thank you so much for this, worked perfectly for me 🥇
AlohaWorld commentedon Feb 23, 2019
I found an easy way on windows to solve this problem.
The default python build in anaconda suite is of version 3.x
hixus commentedon Jun 23, 2019
I had also run the install with
python ./emsdk install latestnot just./emsdk install latestas it seems to default to system provided python.StupidZhe commentedon Jul 12, 2019
IT WORKS! THANKS!
liushuaidi commentedon Jan 6, 2021
you should put the code into emsdk.py