pypdfium2-team / pypdfium2

Python bindings to PDFium
https://pypdfium2.readthedocs.io/
425 stars 17 forks source link

Compile error under nvidia jetson arm64 environment #264

Closed hzrlsd closed 1 year ago

hzrlsd commented 1 year ago

hardware:nvidia jetson xavier ARM64 software:ubuntu 20.04 python 3.8.10 gcc 9.4.0 compile pypdfium2-4.20.0.tar.gz error info:

image image

So how to solve this problem?Thanks

mara004 commented 1 year ago

Aah yes. Setup requires our fork of ctypesgen, which has recently received API-breaking changes. The latest release is still authored for the old codebase, however the main branch is updated. As a workaround, I'd suggest to just install from main using pip3 install git+https://github.com/pypdfium2-team/pypdfium2.

Note, setup will not actually compile pdfium, but only download a matching build from pdfium-binaries. If you actually want to compile from source, you'd need to check out the repo, call ./run build and then PDFIUM_PLATFORM=sourcebuild pip3 install .

Also, I'm not sure why an sdist install happened in the first place - we have wheels for linux aarch64 that should take precedence. Did you somehow force a source install, e.g. using --no-binary? Otherwise, the output of python3 -c "import platform as p; print(p.system(), p.machine(), p.libc_ver())" would be interesting. And make sure you are using the latest PyPA tools (pip/setuptools/packaging etc).

hzrlsd commented 1 year ago

这是来自QQ邮箱的自动回复邮件。  您好,现在无法亲自回复您的邮件。我会尽快给您回复。

Google translate (@mara004 edit): This is an automatic reply email from QQ mailbox. Hello, I am unable to reply to your email personally right now. I will get back to you as soon as possible.

mara004 commented 1 year ago

New release published: https://github.com/pypdfium2-team/pypdfium2/releases/tag/4.21.0

mara004 commented 1 year ago

I believe https://github.com/pypdfium2-team/pypdfium2/issues/264#issuecomment-1757695862 should address this issue, so I'll close this for now. Feel free to comment/reopen if there are any questions left.

hzrlsd commented 1 year ago

这是来自QQ邮箱的自动回复邮件。   您好,现在无法亲自回复您的邮件。我会尽快给您回复。