It has to be Github with lowercase h.

You can see it even in examples in documentation or on PyPi.org

Answer from furas on Stack Overflow
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 2911
from github import Github · Issue #2911 · PyGithub/PyGithub
February 26, 2024 - While running in colab the code: !pip install PyGithub from github import Github Receiving the error: ImportError Traceback (most recent call last) in () 1 get_ipython().system('pip i...
Author   AdrianVMartin
Discussions

Python 2.7 Error - ImportError: cannot import name Github
import github works but nothing seems to be under github. Using Python 2.7. pip install PyGithub Thoughts? More on github.com
🌐 github.com
24
October 11, 2016
ModuleNotFoundError: No module named 'github' but i pip installed pygithub?
trying to run the file gives: ================= RESTART: C:/Users/RCG/Downloads/GiTest.py ================= Traceback (most recent call last): File "C:/Users/RCG/Downloads/GiTest.py", lin... More on github.com
🌐 github.com
1
1
Cannot import name 'Github' from 'github'
I have installed PyGithub but when I run : from github import Github I have this error : Traceback (most recent call last): File "/home/user/projects/main.py", line 1, in from github import Github ImportError: cannot import name... More on github.com
🌐 github.com
19
February 18, 2023
ImportError: No module named github
I'm trying to use PyGitHub and I'm getting "ImportError: No module named github". Setup specs: macOS v10.13.6 Python v3.7.0 Installed with pip v18.0 More on github.com
🌐 github.com
47
August 7, 2018
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 2164
IImportError: cannot import name 'Github' from partially initialized module 'github' (most likely due to a circular import) · Issue #2164 · PyGithub/PyGithub
January 27, 2022 - ImportError: cannot import name 'Github' from partially initialized module 'github' (most likely due to a circular import) The above error cause when running python file with batch ...
Author   myatthiha1998
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 472
Python 2.7 Error - ImportError: cannot import name Github · Issue #472 · PyGithub/PyGithub
October 11, 2016 - Python 2.7 Error - ImportError: cannot import name Github#472 · Copy link · azatelli · opened · on Oct 11, 2016 · Issue body actions · import github works but nothing seems to be under github. Using Python 2.7. pip install PyGithub · Thoughts? 👍React with 👍210c8 and Atharv-Chaudhari ·
Author   azatelli
🌐
GitHub
github.com › PyGithub › PyGithub › discussions › 2367
ImportError: cannot import name 'Github' from 'github' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/github/__init__.py) · PyGithub/PyGithub · Discussion #2367
I'm trying to list all the contents of a repository recursively but it seems like the import always crash. I don't really know why, because I've checked the route of installation at it's well installed. I'm trying this code: from github import Github def list_content_repo(): g = Github() # github username username = g.get_user("gitblanc") # Obtain the repository repo = username.get_repo("Obsidian-Notes") print(repo.get_contents("")) list_content_repo()
Author   PyGithub
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 2427
Cannot import name 'Github' from 'github' · Issue #2427 · PyGithub/PyGithub
February 18, 2023 - I have installed PyGithub but when I run : from github import Github I have this error : Traceback (most recent call last): File "/home/user/projects/main.py", line 1, in <module> from github import Github ImportError: cannot import name 'Github' from 'github' (unknown location)
Author   judemont
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 540
import error · Issue #540 · PyGithub/PyGithub
March 23, 2017 - after installing githubpy next i want to use it then it get error in python like' from github import Github ImportError: cannot import name Github plz help me if anyone know how to use
Find elsewhere
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 856
ImportError: No module named github · Issue #856 · PyGithub/PyGithub
August 7, 2018 - I'm trying to use PyGitHub and I'm getting "ImportError: No module named github". Setup specs: macOS v10.13.6 Python v3.7.0 Installed with pip v18.0
Author   JosephTLyons
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 2065
Exception has occurred: ImportError cannot import name 'GitHub' from 'github' (But I do not have github.py!) · Issue #2065 · PyGithub/PyGithub
September 26, 2021 - Exception has occurred: ImportError cannot import name 'GitHub' from 'github' (But I do not have github.py!)#2065
Author   Mordai
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 1858
ImportError: cannot import name 'Github' from partially initialized module 'github' · Issue #1858 · PyGithub/PyGithub
February 20, 2021 - Hello GitHub, I have encountered the following issue when I tried to use the PyGithub library ImportError: cannot import name 'Github' from partially initialized module 'github' (most likely due to a circular import) I am running Python ...
Author   brianmori
🌐
GitHub
github.com › PyGithub › PyGithub › issues › 331
the code doesn't work with python3 · Issue #331 · PyGithub/PyGithub
August 5, 2015 - python3 github/__init__.py Traceback (most recent call last): File "github/__init__.py", line 36, in <module> from MainClass import Github File "/tmp/pygithub-1.25.2/github/MainClass.py", line 32, in <module> import AuthenticatedUser File "/tmp/pygithub-1.25.2/github/AuthenticatedUser.py", line 30, in <module> import github.GithubObject File "/usr/lib/python3/dist-packages/github/__init__.py", line 36, in <module> from MainClass import Github ImportError: cannot import name 'Github'
🌐
Stack Exchange
cs50.stackexchange.com › questions › 43910 › fixing-an-from-github-import-github-error
python - fixing an 'from github import Github' error - CS50 Stack Exchange
March 29, 2023 - from github import Github #Authenticate with GitHub g = Github('<PAT>') #Replace <PAT> with your personal access token #Get the repository repo = g.get_repo('repo') #Replace 'repo' with the name of your repository #Determine which actions have permissions set on the repo actions = repo.get_actions() if not actions.permissions: print('No actions have permissions set on the repo') else: for action in actions.permissions: print(f'{action} has permissions set on the repo')
🌐
Atlassian Community
community.atlassian.com › t5 › Bitbucket-questions › Import-from-Github-is-not-working › qaq-p › 1779656
Solved: Import from Github is not working
August 7, 2022 - Get answers about Jira and other Atlassian products, connect with experts and our product teams, and get inspired by users just like you!
🌐
Glitch
support.glitch.com › glitch help
Issue with GitHub import - Glitch Help - Glitch Community Forum
August 13, 2019 - Hello everyone. I’ve made a project (Discord Bot) and he’s on a GitHub repo. There is a problem. When I want to import from GitHub, Glitch asks me to connect to GitHub, but I already linked my account. When I click on : “Connect”, the page refreshes. But, when I click on “Import from GitHub”, I enter the repo (I’ve checked), Glitch’s loading, and it says to me : “Arg, something went wrong.
🌐
GitLab
forum.gitlab.com › how to use gitlab › migrations
Github Import Button Missing - Migrations - GitLab Forum
June 11, 2024 - Can’t see the import button on the import page when creating a new project
🌐
Docker Community
forums.docker.com › general
ImportError when importing cloned github repository - General - Docker Community Forums
August 23, 2024 - Hi All, I’m trying to execute a python script in container. This script imports a module from the remote repository. So, in Dockerfile, RUN git clone {remote repository} is executed. But, everytime I try to execute t…