You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the merger like in the snippet below. Whatever input PDF file I provide, I get a PDF with the same number of pages, but all of them are blank (even if in the input file they are not blank).
Does not happen on python 2.7, but happens in exactly the same environment on python 3.5. Tested on PyPDF2==1.26.0.
One finding I have is that the if branch on line 116 is never entered in Python 3, but it is entered on Python 2. The reason is that isinstance(open("/tmp/x"), file) is evaluated to True on Python 2, but isinstance(open("/tmp/x"), io.FileIO) is evaluated to False on Python 3 (note from io import FileIO as file at the top of the file).
The text was updated successfully, but these errors were encountered:
@mstamy2
Seems the fix (#294 ) hasn't been made available on the version available through PyPI.
Experiencing the same issue as #293 with Python 3.6.3.
I uninstalled and reinstalled through pip, and still ended up having to manually changing the line @mluszczyk did in their PR.
Could we reopen this issue until the fix is live and pip-able?
I'm using the merger like in the snippet below. Whatever input PDF file I provide, I get a PDF with the same number of pages, but all of them are blank (even if in the input file they are not blank).
Does not happen on python 2.7, but happens in exactly the same environment on python 3.5. Tested on
PyPDF2==1.26.0
.One finding I have is that the
if
branch on line 116 is never entered in Python 3, but it is entered on Python 2. The reason is thatisinstance(open("/tmp/x"), file)
is evaluated toTrue
on Python 2, butisinstance(open("/tmp/x"), io.FileIO)
is evaluated toFalse
on Python 3 (notefrom io import FileIO as file
at the top of the file).The text was updated successfully, but these errors were encountered: