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

ModuleNotFoundError: No module named 'chardet' #229

Open
L1nkus opened this issue Nov 5, 2023 · 0 comments
Open

ModuleNotFoundError: No module named 'chardet' #229

L1nkus opened this issue Nov 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@L1nkus
Copy link

L1nkus commented Nov 5, 2023

Traceback (most recent call last):
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/requests/compat.py", line 11, in <module>
    import chardet
ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linkus/.pyenv/versions/3.12.0a3/bin/chat_downloader", line 5, in <module>
    from chat_downloader.cli import main
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/chat_downloader/__init__.py", line 3, in <module>
    from .chat_downloader import (
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/chat_downloader/chat_downloader.py", line 11, in <module>
    from .sites.common import (
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/chat_downloader/sites/__init__.py", line 3, in <module>
    from .youtube import YouTubeChatDownloader
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/chat_downloader/sites/youtube.py", line 2, in <module>
    from .common import (
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/chat_downloader/sites/common.py", line 2, in <module>
    import requests
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/requests/__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/requests/exceptions.py", line 9, in <module>
    from .compat import JSONDecodeError as CompatJSONDecodeError
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/requests/compat.py", line 13, in <module>
    import charset_normalizer as chardet
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/charset_normalizer/__init__.py", line 24, in <module>
    from .api import from_bytes, from_fp, from_path, is_binary
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/charset_normalizer/api.py", line 5, in <module>
    from .cd import (
  File "/home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/charset_normalizer/cd.py", line 14, in <module>
    from .md import is_suspiciously_successive_range
ImportError: /home/linkus/.pyenv/versions/3.12.0a3/lib/python3.12/site-packages/charset_normalizer/md__mypyc.cpython-312-x86_64-linux-gnu.so: undefined symbol: _PyErr_ChainExceptions1

Solution, pip install chardet

@L1nkus L1nkus added the bug Something isn't working label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant