Skip to content

FT_Get_First_Char: symbol not found on alpine #1013

@John-James-Rambo

Description

@John-James-Rambo

I have install pymudef on alpine container. I know there was already an issue #391 about installing it. I met similar problems but in the end I successfully installed it in the alphine container.

The problem occurred during import of the fitz.

Describe the bug (mandatory)

During import fitz I get:

>>> import fitz
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/site-packages/fitz/__init__.py", line 2, in <module>
    from fitz.fitz import *
  File "/usr/local/lib/python3.7/site-packages/fitz/fitz.py", line 15, in <module>
    from . import _fitz
ImportError: Error relocating /usr/local/lib/python3.7/site-packages/fitz/_fitz.cpython-37m-x86_64-linux-gnu.so: FT_Get_First_Char: symbol not found

To Reproduce (mandatory)

import fitz

Expected behavior (optional)

Import fitz should be flawlessly.

Your configuration (mandatory)

FROM python:3.7-alpine

RUN apk add --no-cache mupdf mupdf-tools mupdf-dev gcc musl-dev freetype-dev jpeg jbig2dec freetype openssl
RUN ln -s /usr/include/freetype2/ft2build.h /usr/include/ft2build.h \
 && ln -s /usr/include/freetype2/freetype/ /usr/include/freetype
RUN pip install pymupdf

Unfortunately, I'm not experienced with the Linux builds, so maybe something is wrong with the linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions