Open sandeepb2013 opened 6 months ago
Chromium contains many references to s390x
, so I suppose it supports this architecture.
However, I don't think PDFium supports it.
I tried to build with target_cpu = "s390x"
but ended up with an x86-64
library.
@sandeepb2013, if you do need this, I suggest you get in touch with the PDFium development team and ask them how you can cross-build from x86 to s390x. Once you find the solution, I'll be happy to integrate it into the weekly build.
Thanks @bblanchon raised concern regarding the same with PDFium community. [https://github.com/pypdfium2-team/pypdfium2/issues/313]
let me know if i can do anything from my end to move forward. Thanks.
@sandeepb2013 Sorry for the late reply, I missed this thread.
raised concern regarding the same with PDFium community. [https://github.com/pypdfium2-team/pypdfium2/issues/313]
I think you may have mixed up pypdfium2 and pdfium here. You can reach out to pdfium at its mailing list: https://groups.google.com/g/pdfium or maybe the bug tracker: https://issues.chromium.org/issues?q=componentid:1586257%2B
In the meantime, you could consider the libreoffice trick: https://github.com/pypdfium2-team/pypdfium2/issues/313#issuecomment-2093029127
@mara004 sorry for the late response, thanks for your reference i'll be looking into the pdfium team. i''l keep you posted the updates.
Hi,
i'm trying to install python-docTR on S390x, but dependency pypdfium2 build failed. i'm tring to install pypdfium2 from pip getting the following error .
`pip install pypdfium2 Collecting pypdfium2 Downloading pypdfium2-4.30.0.tar.gz (140 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.2/140.2 kB 3.8 MB/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 ╰─> [18 lines of output] Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-iw42b6xf/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-iw42b6xf/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-iw42b6xf/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 161, in
File "", line 152, in main
File "/tmp/pip-install-96eku2nd/pypdfium2_5345d99864474a78ac39d1b0c222be99/setupsrc/pypdfium2_setup/packaging_base.py", line 610, in parse_pl_spec
raise RuntimeError(f"No pre-built binaries available for {Host}. You may place custom binaries & bindings in data/sourcebuild and install with
{PlatSpec_EnvVar}=sourcebuild
.") RuntimeError: No pre-built binaries available for <Host: linux s390x, glibc 2.35>. You may place custom binaries & bindings in data/sourcebuild and install withPDFIUM_PLATFORM=sourcebuild
. [end of output]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.`