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

pdfly can fail for unmet pypdf requirements #111

Closed
hwine opened this issue Feb 25, 2025 · 3 comments
Closed

pdfly can fail for unmet pypdf requirements #111

hwine opened this issue Feb 25, 2025 · 3 comments

Comments

@hwine
Copy link

hwine commented Feb 25, 2025

While pypdf is required by pdfly, it does not include the optional packages.

This can lead to errors when those features are needed. E.g.:

$ uv tool install pdfly
$ pdfly rm -o trimmed.pdf full.pdf 10:
...
  File "...\pdfly\Lib\site-packages\pypdf\_crypt_providers\_fallback.py", line 69, in decrypt
    raise DependencyError(_DEPENDENCY_ERROR_STR)
pypdf.errors.DependencyError: cryptography>=3.1 is required for AES algorithm

Error while reading full.pdf

I successfully worked around by re-installing:

$ uv tool install --with "pypdf[full]" pdfly
@Lucas-C
Copy link
Member

Lucas-C commented Feb 25, 2025

Thank you for reporting this issue @hwine

@allcontributors please add @hwine for bug

Copy link
Contributor

@Lucas-C

I've put up a pull request to add @hwine! 🎉

@Lucas-C
Copy link
Member

Lucas-C commented Feb 25, 2025

Fixed by #113

The fix is not released yet, but you can check that it's work by installing the latest version of pdfly from the main branch:

uv tool install git+https://github.com/py-pdf/pdfly

@Lucas-C Lucas-C closed this as completed Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants