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

pyhthon3.10: cannot import name 'Callable' from 'collections' #22

Open
dckc opened this issue Jan 18, 2024 · 1 comment
Open

pyhthon3.10: cannot import name 'Callable' from 'collections' #22

dckc opened this issue Jan 18, 2024 · 1 comment

Comments

@dckc
Copy link

dckc commented Jan 18, 2024

terminal session
$ python --version
Python 3.10.12

$ uname -a
Linux bldbox 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ pip install oh-my-stars
Defaulting to user installation because normal site-packages is not writeable
Collecting oh-my-stars
  Using cached oh_my_stars-1.5.1-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: tinydb==3.7.0 in ./.local/lib/python3.10/site-packages (from oh-my-stars) (3.7.0)
Requirement already satisfied: ujson==1.35 in ./.local/lib/python3.10/site-packages (from oh-my-stars) (1.35)
Requirement already satisfied: github3.py==0.9.6 in ./.local/lib/python3.10/site-packages (from oh-my-stars) (0.9.6)
Requirement already satisfied: colorama==0.3.9 in ./.local/lib/python3.10/site-packages (from oh-my-stars) (0.3.9)
Requirement already satisfied: future==0.16.0 in ./.local/lib/python3.10/site-packages (from oh-my-stars) (0.16.0)
Requirement already satisfied: uritemplate.py>=0.2.0 in ./.local/lib/python3.10/site-packages (from github3.py==0.9.6->oh-my-stars) (3.0.2)
Requirement already satisfied: requests>=2.0 in ./.local/lib/python3.10/site-packages (from github3.py==0.9.6->oh-my-stars) (2.28.1)
Requirement already satisfied: idna<4,>=2.5 in ./.local/lib/python3.10/site-packages (from requests>=2.0->github3.py==0.9.6->oh-my-stars) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.10/site-packages (from requests>=2.0->github3.py==0.9.6->oh-my-stars) (2022.6.15)
Requirement already satisfied: charset-normalizer<3,>=2 in ./.local/lib/python3.10/site-packages (from requests>=2.0->github3.py==0.9.6->oh-my-stars) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.local/lib/python3.10/site-packages (from requests>=2.0->github3.py==0.9.6->oh-my-stars) (1.26.12)
Requirement already satisfied: uritemplate>=2.0 in ./.local/lib/python3.10/site-packages (from uritemplate.py>=0.2.0->github3.py==0.9.6->oh-my-stars) (4.1.1)
Installing collected packages: oh-my-stars
Successfully installed oh-my-stars-1.5.1

$ mystars
Traceback (most recent call last):
  File "/home/connolly/.local/bin/mystars", line 5, in <module>
    from ohmystars.__main__ import main
  File "/home/connolly/.local/lib/python3.10/site-packages/ohmystars/__main__.py", line 2, in <module>
    from .core import main
  File "/home/connolly/.local/lib/python3.10/site-packages/ohmystars/core.py", line 11, in <module>
    from github3 import login
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/__init__.py", line 20, in <module>
    from .api import *
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/api.py", line 11, in <module>
    from .github import GitHub, GitHubEnterprise
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/github.py", line 11, in <module>
    from .auths import Authorization
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/auths.py", line 12, in <module>
    from .models import GitHubCore
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/models.py", line 14, in <module>
    from .session import GitHubSession
  File "/home/connolly/.local/lib/python3.10/site-packages/github3/session.py", line 4, in <module>
    from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
@wolfg1969
Copy link
Owner

Thanks, will fix it

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

2 participants