How to Solve NameError: name 'exceptions' is not defined -- wikipedia

Solution: Import the 'exceptions' module

To Solve the error, add the following line to the top of your code.

from wikipedia import exceptions

 

For more information:
Python wikipedia exceptions