Problem with importing libraries

why i always trouble with importing python libraries when i import library like fitz or like tabula i installed the packages but i cant use its method it doesnt installed properly

Repl link/Link to where the bug appears:

Traceback (most recent call last):
  File "/home/runner/generate-a-PDF-from-an-excel-spreadsheet/", line 37, in <module>
    table=tabula.read_pdf('weather.pdf', pages=1)
AttributeError: module 'tabula' has no attribute 'read_pdf'


1 Like

Hey, @IqbalAhmadi!
Can you run poetry add tabula-py in the shell?


i run your code in the shell but still i cant use the tabula methods