I can't import pdftext in my new mac M1. The steps I took are:
Install python 3.10
Install command line developer tools
pip3 install pdftotext
from terminalOpen IDLE, type
import pdftotext
I get this error:
Traceback (most recent call last): File "<pyshell#9>", line 1, in import pdftotext ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdftotext.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_ZN7poppler24set_debug_error_functionEPFvRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPvES9'
I have already spent a few hours searching for this error message.
Any suggestions?
PS: I have tried several other pdf -> text packages, but they don't read the full pdf. For some weird reason, the pdfs I need to read are really complex and many packages don't read them fully. pdftotext does. So what I need is help to make this pdftotext work.