Skip to content

Pyston can't get freetype2 version because ZLIB 1.2.9 is not found #41

@rocky

Description

@rocky

I've been trying pyston 2.2 for running an open-source Mathematica called Mathics

Using it is about 25-30% faster than CPython as advertised. Thanks!

In doing this and running package wordcloud

I get this traceback in part...

  File "/src/external-vcs/github/mathics/Mathics/mathics/builtin/drawing/image.py", line 2560, in _word_cloud
    wc.generate_from_frequencies(freq)
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/wordcloud/wordcloud.py", line 496, in generate_from_frequencies
    font = ImageFont.truetype(self.font_path, font_size)
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/PIL/ImageFont.py", line 853, in truetype
    return freetype(font)
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/PIL/ImageFont.py", line 850, in freetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/PIL/ImageFont.py", line 173, in __init__
    freetype_version = parse_version(features.version_module("freetype2"))
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/packaging/version.py", line 57, in parse
    return Version(version)
  File "/home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/site-packages/packaging/version.py", line 296, in __init__
    match = self._regex.search(version)

What is going on above is that version from the call parse_version(...("freetype2") is coming back None and that is because the dynamic loader is not findingZLIB_1.2.9:

 __import__('PIL._imagingft')
** ImportError: /home/rocky/.pyenv/versions/pyston-2.2/lib/pyston3.8/lib-dynload/../../../lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions