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

Fails with current pdfminer #45

Closed
mitar opened this issue Dec 20, 2014 · 3 comments
Closed

Fails with current pdfminer #45

mitar opened this issue Dec 20, 2014 · 3 comments

Comments

@mitar
Copy link

mitar commented Dec 20, 2014

pdfparanoia (using GitHub master code) fails wtih current pdfminer code:

Traceback (most recent call last):
  File ".../pdf/bin/pdfparanoia", line 5, in <module>
    pkg_resources.run_script('pdfparanoia==0.0.15', 'pdfparanoia')
  File ".../pdf/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File ".../pdf/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 1239, in run_script
    execfile(script_filename, namespace, namespace)
  File ".../pdf/lib/python2.7/site-packages/pdfparanoia-0.0.15-py2.7.egg/EGG-INFO/scripts/pdfparanoia", line 38, in <module>
    outputcontent = pdfparanoia.scrub(StringIO(Args.in_pdf.read()), verbose=verbose)
  File ".../pdf/lib/python2.7/site-packages/pdfparanoia-0.0.15-py2.7.egg/pdfparanoia/core.py", line 53, in scrub
    content = plugin.scrub(content, verbose=verbose)
  File ".../pdf/lib/python2.7/site-packages/pdfparanoia-0.0.15-py2.7.egg/pdfparanoia/plugins/aip.py", line 25, in scrub
    pdf = parse_content(content)
  File ".../pdf/lib/python2.7/site-packages/pdfparanoia-0.0.15-py2.7.egg/pdfparanoia/parser.py", line 45, in parse_content
    return parse_pdf(stream)
  File ".../pdf/lib/python2.7/site-packages/pdfparanoia-0.0.15-py2.7.egg/pdfparanoia/parser.py", line 35, in parse_pdf
    doc.initialize()
AttributeError: 'PDFDocument' object has no attribute 'initialize'

It works if I force pdfminer to 20131113 version.

@kanzure
Copy link
Owner

kanzure commented Dec 20, 2014

Sounds like this is related to #44 does this sound accurate to you?

@mitar
Copy link
Author

mitar commented Dec 20, 2014

I think more related to #43. And yes. This ticket seems to be a duplicate of #43.

I am curious. Why you do not make a version dependency fixed?

@mitar mitar closed this as completed Dec 20, 2014
@kanzure
Copy link
Owner

kanzure commented Dec 20, 2014

I am curious. Why you do not make a version dependency fixed?

Just haven't had time yet.

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