Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from github import Github #2911

Open
AdrianVMartin opened this issue Feb 26, 2024 · 3 comments
Open

from github import Github #2911

AdrianVMartin opened this issue Feb 26, 2024 · 3 comments

Comments

@AdrianVMartin
Copy link

While running in colab the code:
!pip install PyGithub
from github import Github
Receiving the error:
ImportError Traceback (most recent call last)
in <cell line: 2>()
1 get_ipython().system('pip install PyGithub')
----> 2 from github import Github

ImportError: cannot import name 'Github' from 'github' (/usr/local/lib/python3.10/dist-packages/github/init.py)

@xvega
Copy link
Contributor

xvega commented Mar 12, 2024

I noticed this was posted as an issue; it's actually a perfect question for the PyGitHub Discussions Q&A section. Where you can ask the community for help

Stack Overflow is also a fantastic place for reaching a broader audience with the pygithub tag.

Issues are best reserved for bug reports or feature suggestions, helping maintainers or people looking into issues to contribute solutions to prioritize development work. As PyGithub is seeking new maintainers, focusing our efforts is more important than ever.

While running in colab the code: !pip install PyGithub from github import Github Receiving the error: ImportError Traceback (most recent call last) in <cell line: 2>() 1 get_ipython().system('pip install PyGithub') ----> 2 from github import Github

ImportError: cannot import name 'Github' from 'github' (/usr/local/lib/python3.10/dist-packages/github/init.py)

@AdrianVMartin can you add some screenshots or steps to reproduce your error? I tried to reproduce your error in Colab but worked fine for me.

image

@simonasmulevicius-humbility

Getting the same issue on my end

@amindadgar
Copy link

The same error on my end too. It seems there is another package that is causing this and when I try to remove all my python packages using this

pip freeze | xargs pip uninstall -y

and after that when I'm trying to install the pygithub package

pip install PyGithub

Everything works as expected and no error will pop up when running the code below

from github import GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants