docker-library / pypy

Docker Official Image packaging for pypy
http://pypy.org/
MIT License
69 stars 46 forks source link

lzma module doesn't work #42

Closed RazerM closed 4 years ago

RazerM commented 4 years ago

Example:

$ docker run --rm -it pypy:3.6-7.3.0
Python 3.6.9 (1608da62bfc7, Dec 23 2019, 10:50:04)
[PyPy 7.3.0 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> import lzma
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib-python/3/lzma.py", line 27, in <module>
    from _lzma import *
  File "/usr/local/lib_pypy/_lzma.py", line 15, in <module>
    from _lzma_cffi import ffi, lib as m
ImportError: /usr/local/lib_pypy/_lzma_cffi.pypy36-pp73-x86_64-linux-gnu.so: undefined symbol: lzma_index_stream_padding
tianon commented 4 years ago

Good catch! I've updated our test to catch this in https://github.com/docker-library/official-images/pull/8166, and opened a PR to fix this in pypy at https://github.com/docker-library/pypy/pull/43. :+1: