Skip to content

can not install pikepdf by pip install ... #47

Closed
@ollie-zhang

Description

@ollie-zhang

FROM pypy:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code

ADD docker/sources.list /etc/apt/

RUN apt-get update && apt-get install -y gettext
RUN apt-get install -y ffmpeg
RUN apt-get install -y qpdf

ADD requirements.txt /code/

RUN pip install --no-cache-dir -r requirements.txt \

-i http://mirrors.aliyun.com/pypi/simple/ \

--trusted-host mirrors.aliyun.com

RUN pip install --no-cache-dir -r requirements.txt
I replace python:3.6.12 by pypy:3,but when pip install pikepdf, i get an error:

creating build/temp.linux-x86_64-3.6/src/qpdf
  gcc -pthread -DNDEBUG -O2 -fPIC -DVERSION_INFO="1.19.3" -I/tmp/pip-build-env-uqjtm46z/overlay/site-packages/pybind11/include -I/opt/pypy/include -c src/qpdf/annotation.cpp -o build/temp.linux-x86_64-3.6/src/qpdf/annotation.o -std=c++14 -fvisibility=hidden
  src/qpdf/annotation.cpp:11:10: fatal error: qpdf/Constants.h: No such file or directory
   #include <qpdf/Constants.h>
            ^~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pikepdf

I don't know what's the different between pip in python3 and pip in pypy, could you give me some suggestion?

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