anime-dl / anime-downloader

A simple but powerful anime downloader and streamer.
The Unlicense
1.93k stars 221 forks source link

Install Error #714

Closed lisbonjoker closed 2 years ago

lisbonjoker commented 2 years ago

I installed via both pip or AUR and they give the same error:

No module named 'url_normalize'
Traceback (most recent call last):
  File "/home/<username>/.local/bin/anime", line 33, in <module>
    sys.exit(load_entry_point('anime-downloader==5.0.14', 'console_scripts', 'anime')())
  File "/home/<username>/.local/bin/anime", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/__init__.py", line 1, in <module>
    from anime_downloader.sites import get_anime_class
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/sites/__init__.py", line 2, in <module>
    from .anime import Anime
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/sites/anime.py", line 13, in <module>
    from anime_downloader.downloader import get_downloader
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/downloader/__init__.py", line 1, in <module>
    from anime_downloader.downloader.http_downloader import HTTPDownloader
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/downloader/http_downloader.py", line 10, in <module>
    session = session.get_session()
  File "/home/<username>/.local/lib/python3.9/site-packages/anime_downloader/session.py", line 37, in get_session
    _session = requests_cache.CachedSession(cachefile, backend='sqlite', expire_after=expire_time)
AttributeError: module 'requests_cache' has no attribute 'CachedSession'
ArjixWasTaken commented 2 years ago

you can run pip3 install --force-reinstall -U requests-cache==0.7.0.dev334 to fix that

lisbonjoker commented 2 years ago

you can run pip3 install --force-reinstall -U requests-cache==0.7.0.dev334 to fix that

That was it, thank you!