-
Notifications
You must be signed in to change notification settings - Fork 683
Closed
Labels
Description
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 foundTo Reproduce (mandatory)
import fitzExpected 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 pymupdfUnfortunately, I'm not experienced with the Linux builds, so maybe something is wrong with the linking.