chore:bump pypdfium2 from 4.16.0 to 4.17.0
Description
fix:pip3 install pypdfium2==4.16.0
- fail when pip3 install pypdfium2==4.16.0
- success when pip3 install pypdfium2==4.17.0
Fixes # (issue)
Type of Change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update, included: Dify Document
- [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
- [ ] Dependency upgrade
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [ ] TODO
Suggested Checklist:
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] My changes generate no new warnings
- [ ] I ran
dev/reformat(backend) andcd web && npx lint-staged(frontend) to appease the lint gods - [ ]
optionalI have made corresponding changes to the documentation - [ ]
optionalI have added tests that prove my fix is effective or that my feature works - [ ]
optionalNew and existing unit tests pass locally with my changes
Btw , in which Python version, have you encountered with the package installation failure?
Btw , in which Python version, have you encountered with the package installation failure?
4.16.0,can you successfully install ?
Excuse me, there's no Python 4.16.0. Is that 3.12 or sth like that?
Excuse me, there's no Python 4.16.0. Is that 3.12 or sth like that?
Python 3.10.13
I'm pretty sure we can successfully install all the pip packages from the ground up on Python 3.10 and 3.11, but not 3.12 (for the reason of gmpy2 package).
Excuse me, there's no Python 4.16.0. Is that 3.12 or sth like that?
Python 3.10.13
Thanks. Could you reset and uninstall all the packages , and try again. I'm using the same Python version.
Excuse me, there's no Python 4.16.0. Is that 3.12 or sth like that?
Python 3.10.13
Thanks. Could you reset and uninstall all the packages , and try again. I'm using the same Python version. I have create a new conda env with Python 3.10.13,and install all package from requirements.txt,same error as below
Collecting pypdfium2==4.16.0 (from -r requirements.txt (line 37)) Downloading pypdfium2-4.16.0.tar.gz (145 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.2/145.2 kB 75.4 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
['git', 'ls-remote', 'https://github.com/bblanchon/pdfium-binaries.git'] (cwd=None)
Switching pdfium binary from None (v8 False) to 6406 (v8 False)
['ctypesgen', '--library', 'pdfium', '--runtime-libdir', '.', '--strip-build-path=/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_annot.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_attachment.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_catalog.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_dataavail.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_doc.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_edit.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_ext.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_flatten.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_formfill.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_fwlevent.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_javascript.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_ppo.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_progressive.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_save.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_searchex.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_signature.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_structtree.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_sysfontinfo.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_text.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_thumbnail.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_transformpage.h', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdfview.h', '-o', '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/raw.py', '--no-srcinfo'] (cwd=PosixPath('/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64'))
usage: ctypesgen [-h] [--version] [-i HEADERS [HEADERS ...]] [-l LIBRARY] -o
FILE [--system-headers HEADER [HEADER ...]]
[-m MODULE [MODULE ...]] [--linkage-anchor LINKAGE_ANCHOR]
[-I INCLUDEDIR [INCLUDEDIR ...]] [-L LIBDIR [LIBDIR ...]]
[--compile-libdirs LIBDIR [LIBDIR ...]]
[--runtime-libdirs LIBDIR [LIBDIR ...]]
[--no-system-libsearch] [--no-embed-templates] [--cpp CPP]
[-D NAME [NAME ...]] [-U NAME [NAME ...]] [-X [ENTRY ...]]
[--preproc-savepath FILENAME]
[--preproc-errcheck | --no-preproc-errcheck]
[--optimize-lexer] [-a] [--builtin-symbols] [--no-macros]
[--no-undefs]
[--symbol-rules SYMBOL_RULES [SYMBOL_RULES ...]]
[--no-stddef-types] [--no-gnu-types] [--no-python-types]
[--no-load-library] [--insert-files FILENAME [FILENAME ...]]
[--output-language LANGUAGE]
[--dllclass {CDLL,WinDLL,OleDLL,pythonapi}]
[--no-symbol-guards] [--no-macro-guards] [--all-errors]
[--show-long-errors] [--no-macro-warnings]
[--debug-level DEBUG_LEVEL]
ctypesgen: error: unrecognized arguments: --strip-build-path=/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_annot.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_attachment.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_catalog.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_dataavail.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_doc.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_edit.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_ext.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_flatten.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_formfill.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_fwlevent.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_javascript.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_ppo.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_progressive.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_save.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_searchex.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_signature.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_structtree.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_sysfontinfo.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_text.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_thumbnail.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdf_transformpage.h /tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/build_tar/include/fpdfview.h --no-srcinfo
'https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F6406/pdfium-linux-x64.tgz' -> '/tmp/pip-install-as4qbnk2/pypdfium2_e0a1cc3723d744ae83d9c603ebc4db18/data/linux_x64/pdfium-linux-x64.tgz'
Traceback (most recent call last):
File "/home/njue/anaconda3/envs/dify/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The major difference in your environment comes with,
- no matched prebuilt 4.16.0 for your Linux, pip is trying to build the wheel locally instead.
- the failure caused by the unsupported parameter of
ctypesgen - pip download the prebuilt package of
4.17.0as it is available
LGTM overall. Bumping pypdfium2 would help to solve the possible installation problem. cc @takatost
The major difference in your environment comes with,
1. no matched prebuilt 4.16.0 for your Linux, pip is trying to build the wheel locally instead. 2. the failure caused by the unsupported parameter of `ctypesgen` 3. pip download the prebuilt package of `4.17.0` as it is available
Thank you