python-emscripten / python

Build system and patches - mirror of https://www.beuc.net/python-emscripten/python
Other
20 stars 2 forks source link

invalid ELF header #2

Open TomGarside opened 3 years ago

TomGarside commented 3 years ago

Hi I was attempting to follow your instructions for building python 3.8 and I am getting the following error

    from decimal import Decimal
  File "/home/tom/python/3.8/build/Python-3.8.3/Lib/decimal.py", line 8, in <module>
    from _pydecimal import *
  File "/home/tom/python/3.8/build/Python-3.8.3/Lib/_pydecimal.py", line 440, in <module>
    import contextvars
  File "/home/tom/python/3.8/build/Python-3.8.3/Lib/contextvars.py", line 1, in <module>
    from _contextvars import Context, ContextVar, Token, copy_context
ImportError: /home/tom/python/3.8/build/Python-3.8.3/emscripten/build/lib.emscripten-3.8/_contextvars.so: invalid ELF header

I tried building using the latest emscripten as well as 2.0.2 and 1.39.18 mentioned in the closed thread I am trying to build on Ubuntu 20.04.2 LTS my system python3 is Python 3.8.5

williamstein commented 3 years ago

I also hit the same problem, building on Ubuntu 20.04.02 (a default project on https://cocalc.com), using the latest emscripten.