Skip to content

ImportError: dlopen(): symbol not found #11

@hackermd

Description

@hackermd

When I try to install the package from the wheel on macOS Monterey with arm architecture, I get the following error:

$ pip install pillow-jpls
$ python -c 'import pillow_jpls'
../../.pyenvs/test/lib/python3.9/site-packages/pillow_jpls/__init__.py:2: in <module>
    from .jpls_image_file import JplsImageFile, accept
../../.pyenvs/test/lib/python3.9/site-packages/pillow_jpls/jpls_image_file.py:3: in <module>
    from . import _pycharls
E   ImportError: dlopen(....pyenvs/test/lib/python3.9/site-packages/pillow_jpls/_pycharls.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '__ZN3fmt2v87vformatENS0_17basic_string_viewIcEENS0_17basic_format_arg
sINS0_20basic_format_contextINS0_8appenderEcEEEE'

When I install the package from source, it works:

$ pip install --no-binary=':all:' pillow-jpls
$ python -c 'import pillow_jpls'

Note that I installed CharLS via Homebrew, which installs libraries with prefix /opt/homebrew on the new Apple devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions