Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for s390x #166

Open
sandeepb2013 opened this issue May 21, 2024 · 4 comments
Open

Support for s390x #166

sandeepb2013 opened this issue May 21, 2024 · 4 comments

Comments

@sandeepb2013
Copy link

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 with PDFIUM_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.`

@bblanchon
Copy link
Owner

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.

@bblanchon bblanchon changed the title RuntimeError: No pre-built binaries available for <Host: linux s390x, glibc 2.35> Support for s May 21, 2024
@bblanchon bblanchon changed the title Support for s Support for s390x May 21, 2024
@sandeepb2013
Copy link
Author

sandeepb2013 commented May 23, 2024

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.

@mara004
Copy link
Contributor

mara004 commented Aug 1, 2024

@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: pypdfium2-team/pypdfium2#313 (comment)

@sandeepb2013
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants