How to Solve NameError: name 'convert_from_path' is not defined -- pdf2image
Solution: Import the 'convert_from_path' module
To Solve the error, add the following line to the top of your code.
from pdf2image import convert_from_path
For more information:
Python pdf2image convert_from_path