lebedov / python-pdfbox

Python interface to Apache PDFBox command-line tools.
Other
75 stars 24 forks source link

Not importing in python3 #1

Closed droidzone closed 6 years ago

droidzone commented 6 years ago

import pdfbox p = pdfbox.PDFBox() text = p.extract_text('/home/joel/sc.pdf') print(text)

Error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/joel/scripts/pdfbox.py", line 2, in <module> p = pdfbox.PDFBox() AttributeError: module 'pdfbox' has no attribute 'PDFBox'

lebedov commented 6 years ago

I cannot replicate this error with Python 3.6.5. What version of Python and of python-pdfbox are you using? How did you install the package?

lebedov commented 6 years ago

Closing - feel free to reopen if you have further info.