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

Platform support and testing status #3

Closed
mara004 opened this issue Oct 24, 2021 · 14 comments
Closed

Platform support and testing status #3

mara004 opened this issue Oct 24, 2021 · 14 comments
Labels
help wanted Extra attention is needed

Comments

@mara004
Copy link
Member

mara004 commented Oct 24, 2021

Platforms we build wheels for and their current testing status:

  • macOS x64:
    Tested, works (10.11.6 El Capitan / 10.15.7 Catalina / 11.6.1 Big Sur)
  • macOS arm64/M1:
    Tested, works (11.6 Big Sur)
  • Linux x64 glibc:
    Tested, works (Ubuntu 20.04, Python 3.8)
  • Linux x86/i686 glibc:
    Untested
  • Linux aarch64/arm64 glibc:
    Tested, works (via emulation in GitHub workflow)
  • Linux armv7l/armhf glibc:
    Tested, works (Debian 9, Raspberry Pi 2, Python 3.9)
  • Linux x64 musl:
    Untested
  • Linux x84/i686 musl:
    Untested
  • Windows x64:
    Tested, works (Windows 8.1)
  • Windows arm64:
    Untested
  • Windows x86 (i. e. 32-bit):
    Untested

Summary: At the moment, 6 of 11 wheels are confirmed to work.
pypdfium2 does not only run with CPython, but also with PyPy.

@mara004 mara004 added documentation Improvements or additions to documentation help wanted Extra attention is needed for discussion A topic that can be discussed labels Oct 24, 2021
@mara004 mara004 pinned this issue Nov 21, 2021
@mara004 mara004 added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation for discussion A topic that can be discussed labels Nov 21, 2021
@mlove4u
Copy link

mlove4u commented Jan 7, 2022

macOS x86_64
・10.11.6
10 11 6

・10.15.7
10 15 7

are confirmed to work.

@mara004
Copy link
Member Author

mara004 commented Jan 7, 2022

Thanks, I've updated the status above

@mlove4u
Copy link

mlove4u commented Jan 11, 2022

OS: macOS Big Sur(11.6)
CPU: Apple M1

1. Python3.8.9(default pre-installed in Big Sur). Processing stopped in "Preparing metadata (setup.py)..."
3 8 9

2. Python3.10.1(Downloaded from python.org). Only pypdfium2-0.1.0 can be installed.
pip3 install -U pypdfium2
3 10 1
.

@mara004
Copy link
Member Author

mara004 commented Jan 11, 2022

Many thanks for testing again, this is really apprectiated.

As far as I can see, it was only an issue with wheel naming. I have pushed a commit that should fix it, and uploaded a new minor release that you can try: https://pypi.org/project/pypdfium2/0.8.1/ (pip3 install -U pypdfium2, as usual)
This should now download and install correctly with both Python versions.

@mlove4u
Copy link

mlove4u commented Jan 12, 2022

Thanks for the fix.
V0.8.1 was successfully installed on macOS Big Sur(11.6) with Apple M1 chip.
And, all passed!
arm64

@mara004
Copy link
Member Author

mara004 commented Jan 12, 2022

Super, thanks!

@mara004
Copy link
Member Author

mara004 commented Feb 20, 2022

Hi @mlove4u,
I recently made some changes to macOS wheel tags, which I believe will enable compatibility with more versions of macOS.
Just to make sure my changes did not break anything, could you please test again? You'll want to use the following command to install a beta version containing the changes:

python3 -m pip install -i https://test.pypi.org/simple/ pypdfium2==0.13.2

Testing macOS x86_64 would be sufficient to me (if this works, then the other one should probably do as well). However, if you also have access to ARM it would be really nice if you could try both.
You don't necessarily have to run the test suite - just confirming that the install does not fail is enough.
Thanks in advance.

@mlove4u
Copy link

mlove4u commented Feb 21, 2022

@mara004
There is no problem in macOS Big Sur(11.6.1) with Intel CPU. And I will test it in ARM later today.

intel

@mlove4u
Copy link

mlove4u commented Feb 21, 2022

ARM(macOS Big Sur(11.6)) test also passed!

@mara004
Copy link
Member Author

mara004 commented Feb 21, 2022

Thanks for the quick response!

@mara004
Copy link
Member Author

mara004 commented Apr 4, 2022

I now added a workflow which tests those platforms that are currently provided by GitHub Actions.
This might increase confidence in our releases.

@mara004
Copy link
Member Author

mara004 commented Nov 28, 2023

@mlove4u Not sure if you are still interested in pypdfium2, but might I ask for your testing help with M1 once more?
I would like to find out whether pdf.save() works on M1, because it involves a writing callback, while M1 forbids write+execute memory.

Installing latest pypdfium2, running the test suite and sending me the output to check if this works or not would be really helpful.
I believe the saver test cases were only added shortly after #3 (comment) (Jan 12, but c76e892 was Jan 22).
Unfortunately, on the second case in February, you might not have run the test suite as I said it would be OK to only see if the wheel installed...

@mlove4u
Copy link

mlove4u commented Nov 29, 2023

@mara004 You are welcome. These are my environments , I run the test files and all passed!

  1. Intel CPU, macOS Big Sur(11.7.10): passed
  2. M1 macOS Ventura 13.2.1: passed
  3. M2 macOS Sonoma14.1.1: passed

@mara004
Copy link
Member Author

mara004 commented Nov 29, 2023

Thanks for the quick response! Glad it passed.
jbarlow83 also mentioned that ctypes implements callbacks differently, so the problem seems to be limited to cffi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants