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

TestStapler fails with PyPDF2 1.27.5 #92

Open
papoteur-mga opened this issue Nov 11, 2022 · 0 comments
Open

TestStapler fails with PyPDF2 1.27.5 #92

papoteur-mga opened this issue Nov 11, 2022 · 0 comments

Comments

@papoteur-mga
Copy link

Trying to build for Mageia, the tests fail:


test_split (staplelib.tests.TestStapler)
Make sure a file is properly split into pages. ... Traceback (most recent call last):
  File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/../stapler", line 15, in <module>
    stapler.main()
  File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/stapler.py", line 116, in main
    modes[mode](args)
  File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/commands.py", line 113, in split
    iohelper.write_pdf(output, staplelib.OPTIONS.destdir +
  File "/home/pterjan/rpmbuild/BUILD/stapler-1.0.0rc1/staplelib/iohelper.py", line 59, in write_pdf
    pdf.write(outputStream)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 475, in write
    self._sweepIndirectReferences(externalReferenceMap, self._root)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences
    self._sweepIndirectReferences(externMap, realdata)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences
    value = self._sweepIndirectReferences(externMap, value)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences
    self._sweepIndirectReferences(externMap, realdata)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences
    value = self._sweepIndirectReferences(externMap, value)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 551, in _sweepIndirectReferences
    value = self._sweepIndirectReferences(externMap, data[i])
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 566, in _sweepIndirectReferences
    self._sweepIndirectReferences(externMap, realdata)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences
    value = self._sweepIndirectReferences(externMap, value)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 583, in _sweepIndirectReferences
    newobj = self._sweepIndirectReferences(externMap, newobj)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 542, in _sweepIndirectReferences
    value = self._sweepIndirectReferences(externMap, value)
  File "/usr/lib/python3.10/site-packages/PyPDF2/pdf.py", line 569, in _sweepIndirectReferences
    if data.pdf.stream.closed:
AttributeError: 'PdfFileWriter' object has no attribute 'stream'
ERROR
test_zip (staplelib.tests.TestStapler)
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

1 participant