Search code examples
pythontabula

tabula-py - "No module named requests"


I'm make "scripts.py" with code (https://github.com/chezou/tabula-py#example) and when I start "python scripts.py" I got this error:

    Traceback (most recent call last):
  File "script.py", line 1, in <module>
    import tabula
  File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/__init__.py", line 1, in <module>
    from .wrapper import read_pdf_table
  File "/home/ubuntu/.local/lib/python2.7/site-packages/tabula/wrapper.py", line 16, in <module>
    import requests
ImportError: No module named requests

OS: Ubuntu 16.04

Java: 1.8.0_121


Solution

  • You need to install requests: http://docs.python-requests.org/en/master/user/install/#install