How to Solve NameError: name 'Github' is not defined -- github

Solution: Import the 'Github' module

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

from github import Github

 

For more information:
Python github Github