pythonpython-3.xamazon-web-servicesamazon-textract

Amazon textextract I can't find trp module


I want to use this amazon table textract script

The problem I encounter is that I don't have any clue what is trp module and how I can install it.

I tried

pip install trp

But when I try to run then I get this error

lib/python3.7/site-packages/trp/__init__.py", line 31
    print ip
           ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ip)?

Solution

  • If you face

    ImportError: cannot import name 'Document'
    

    You might want to import like

    from trp.trp import Document
    

    Depending on your file structure!