v1.40.1 build error using the emscripten-supplied python3

68 views
Skip to first unread message

ema...@cfa.harvard.edu

unread,
Aug 10, 2020, 3:12:54 PM8/10/20
to emscripten-discuss
After updating to v1.40.1 from v1.39.19, I get the error shown below when using the emscripten-supplied version of python3. Utilizing my own previously installed version of python3 (which has 'requests' installed) works fine.

Running 'emcc --clear-ports', as suggested, did not help in this case.

Regards,

Eric

system_libs:INFO: retrieving port: bzip2 from https://github.com/emscripten-ports/bzip2/archive/1.0.6.zip
system_libs:ERROR: a problem occurred when using an emscripten-ports library.  try to run `emcc --clear-ports` and then run this command again
Traceback (most recent call last):
  File "/Users/eric/emsdk/upstream/emscripten/tools/system_libs.py", line 1891, in retrieve
    import requests
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/http/client.py", line 1414, in connect
    server_hostname=server_hostname)
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/ssl.py", line 423, in wrap_socket
    session=session
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/ssl.py", line 870, in _create
    self.do_handshake()
  File "/Users/eric/emsdk/python/3.7.4_64bit/lib/python3.7/ssl.py", line 1139, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)

Sam Clegg

unread,
Aug 11, 2020, 12:12:20 AM8/11/20
to emscripte...@googlegroups.com
Thanks for the bug report.  Would you mind opening an issue in the emsdk repo?

So far I'm managed to confirm that this does not occur on our CI machines:

```
$ /Users/distiller/project/python/3.7.4_64bit/bin/python3 /Users/distiller/project/upstream/emscripten/embuilder.py build bzip2 --force
embuilder:INFO: building and verifying bzip2
root:INFO: Cache: deleting cached file: /Users/distiller/project/upstream/emscripten/cache/wasm/libbz2.a
cache:INFO: generating port: libbz2.a... (this will be cached in "/Users/distiller/project/upstream/emscripten/cache/wasm/libbz2.a" for subsequent builds)
cache:INFO:  - ok
embuilder:INFO: ...success
```

We need to figure out what is different about your setup that causes this failure.

cheers,
sam

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/6bf6f70f-6307-4318-abc7-2bda9fbe2e97n%40googlegroups.com.

Sam Clegg

unread,
Aug 11, 2020, 12:24:58 AM8/11/20
to emscripte...@googlegroups.com
Can you try running this command from the emsdk directory and see if if fixes these issue:

```
$ python/3.7.4_64bit/bin/python3 ./python/3.7.4_64bit/bin/pip3 install certifi
```

I suspect it might but since I can't repro I can't confirm.

cheers,
sam

ema...@cfa.harvard.edu

unread,
Aug 11, 2020, 8:51:19 AM8/11/20
to emscripten-discuss
Installing certifi did not fix my problem, but installing requests did:

````

python/3.7.4_64bit/bin/python3 ./python/3.7.4_64bit/bin/pip3 install requests

````

Is this the answer ... and, if so, do you still want me to open an issue?

Sam Clegg

unread,
Aug 11, 2020, 10:28:26 AM8/11/20
to emscripte...@googlegroups.com
On Tue, Aug 11, 2020 at 5:51 AM ema...@cfa.harvard.edu <ema...@cfa.harvard.edu> wrote:
Installing certifi did not fix my problem, but installing requests did:

````

python/3.7.4_64bit/bin/python3 ./python/3.7.4_64bit/bin/pip3 install requests

````

Is this the answer ... and, if so, do you still want me to open an issue?


Yes, please.  That way we can track the issue through to fixing it.
 
Reply all
Reply to author
Forward
0 new messages