-
Notifications
You must be signed in to change notification settings - Fork 710
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
"emsdk install latest" fails when downloading something due to SSL stuff #140
Comments
This looks like it might be emscripten-core/emscripten#6275 , which was caused by a github update to SSL, which requires a quite recent python version. You might want to try running emsdk.bat using that newer python directly, that works on other platforms at least.
Sorry about that! It used to be better, bundling Python in the windows download, but sadly we no longer have a windows person helping with releases. None of the active devs, myself included, are on windows, which is definitely bad :( I'm trying to get help to improve our windows support, but so far no luck. |
I commented those four "@if EXIST ..." blocks in the emsdk.bat out and it seemed to work. One more reason to hate SSL. There's so much hassle with certificates running out, version incompatibilities, ... Strange that no one uses Windows since a lot of (probably the most) software is developed for Windows. Maybe it's just that most of that is closed source and most open source contributors use Linux. |
The root issue here I think is that after we migrated emsdk on Windows from Python 2.7.5.3 to 2.7.13.1, we did not kick off the emsdk deployment script (mentioned this here emscripten-core/emscripten#6275 (comment) as well), so the |
The fix to this SSL oddiness is in https://github.com/juj/emsdk/blob/master/emsdk.bat, but due to the above, the emsdk-portable.zip you downloaded was outdated. Try going via the manual
A particularly nasty thing here was also that since this problem affected downloading from Python, and the updater mechanism also needs to download, it means that one can't use emsdk to update to newer fixed version, since the issue broke the updating mechanism as well, but need to bootstrap from scratch.
If you install a "full sdk" via emsdk, it will install JRE, since the Closure minifier/compiler uses JRE. (that is the only feature that we use Java for). For Emscripten though, JRE is optional, and if not present, Closure minification is then not available. Installing a full SDK via emdk is a convenience that installs a full set of packages, for example, |
…es issue to reduce the number of future git issues being raised about the Python ... urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate ... exception. This issue has resulted in continuous stream of issues with common problems in: emscripten-core#133 emscripten-core#136 emscripten-core#140 emscripten-core#176 #6275 #6548 #6723 #9036 ...
…common SSL: CERTIFICATE_VERIFY_FAILED] error. Relates to emscripten-core#133 emscripten-core#136 emscripten-core#140 emscripten-core#176 #6275 #6548 #6723 #9036
…tes issue to reduce the number of issues raised. The OSX message is [SSL: CERTIFICATE_VERIFY_FAILED] while trying to download files. While, the Linux Python message is less descriptive. Error downloading URL 'https://xxxx.xxx.xxx': <urlopen error unknown url type: https>. This hopefully reduces the stream of common issues raised during installation as a result of the change of Python TLS certs to 2048 or greater. This change relates to emscripten-core#133 emscripten-core#136 emscripten-core#140 emscripten-core#176 #6275 #6548 #6723 #9036 … and possibly more.
…tes to reduce the number of issues raised during SDK installation. The OSX message is [SSL: CERTIFICATE_VERIFY_FAILED] while trying to download files. While, the Linux Python message is less descriptive. Error downloading URL 'https://xxxx.xxx.xxx': <urlopen error unknown url type: https>. This hopefully reduces the stream of common issues raised during installation as a result of the change of Python TLS certs to 2048 or greater. This change relates to emscripten-core#133 emscripten-core#136 emscripten-core#140 emscripten-core#176 #6275 #6548 #6723 #9036 … and possibly more. Installation can be accomplished by installing the latest Python certificates (pip install certifi), symbolic linking a new python version, and relying on the python shebang line to run $ ./emsdk.py install latest.
…tes to reduce the number of issues raised during SDK installation. The OSX message is [SSL: CERTIFICATE_VERIFY_FAILED] while trying to download files. While, the Linux Python message is less descriptive. Error downloading URL 'https://xxxx.xxx.xxx': <urlopen error unknown url type: https>. This hopefully reduces the stream of common issues raised during installation as a result of the change of Python TLS certs to 2048 or greater. This change relates to emscripten-core#133 emscripten-core#136 emscripten-core#140 emscripten-core#176 #6275 #6548 #6723 #9036 … and possibly more. Installation can be accomplished by installing the latest Python certificates (pip install certifi), symbolic linking a new python version, and relying on the python shebang line to run $ ./emsdk.py install latest.
The OSX message is [SSL: CERTIFICATE_VERIFY_FAILED] while trying to download files. While, the Linux Python message is less descriptive. Error downloading URL 'https://xxxx.xxx.xxx': <urlopen error unknown url type: https>. This hopefully reduces the stream of common issues raised during installation as a result of the change of Python TLS certs to 2048 or greater. This change relates to #133 #136 #140 #176 #6275 #6548 #6723 #9036 … and possibly more. Installation can be accomplished by installing the latest Python certificates (pip install certifi), symbolic linking a new python version, and relying on the python shebang line to run $ ./emsdk.py install latest.
(I'm sorry for my awful English, Im not a native speaker :)) I'm trying to install an emsdk and getting this:
Does anyone know how to solve it? |
Your issue looks unrelated to this one. Can you open a new issue perhaps? I would say that since you are using mingw you might need to be able to investigate and fix any issues you find since its not one of our primary 3 targets and we don't test in that environment (If somebody wanted to take it on they could add testing to out CI). The first thing to try is to run with |
Oh, sure, I'm sorry. As you can see I'm a new in GitHub, so I should just learn some rules. Thanks a lot for your comment |
…-d7da-47ac-bbc2-badee5bda104 [main] Update dependencies from dotnet/arcade
So I wanted to try Webassembly and followed the instructions at https://github.com/juj/emsdk.
First emsdk failed because I had no Python, so I installed Python (3.6.5).
"emsdk update" seemed to work (no output) but "emsdk install latest" failed, output:
I'm using Windows 7 btw.
Git is not in my path but it doesn't seem to require it (which would be weird).
So my first impression was not good and some suggestions from my perspective I guess (mostly C++ developer who has also done web stuff with Javascript&Typescript):
Why is the script apparently installing Python 2.7.5.3? I just installed a new(er) Python version.
Why is it downloading stuff? Why is there no simple installer with everything it needs?
At first I was on http://webassembly.org/getting-started/developers-guide/ but it seems to be a build from source which I don't really want, I just want to use it and that should be made easy. The instruction on this Github page are apparently for the prebuild version which seemed easier. But apparently Webassembly still can't be used for anything 😉, at least not without a lot of hassle and on Windows.
Is there any IDE for it or some instruction to integrate it (like use the normal run hotkey to build it and open it in a browser)? I think I've heard of something but neither this Github nor webassembly.org list one, would be nice to have a more "out of the box" solution.
Is there a way to access the DOM to do typical Javascript stuff with Webassembly? Or can I call Javascript functions? It's often advertised as kinda replacing JS but I can't find anything that easily, though would expect it in a "Getting Started" guide. This kinda sounded like it but seems to be something else:
http://webassembly.org/getting-started/js-api/
I'm checking out Emscripten and Webassembly occasionally for years already and love the idea but it still seems to be in the "Let's check that out again in a few years"-stage...
The text was updated successfully, but these errors were encountered: