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

AttributeError: module 'functools' has no attribute 'cache' #33

Open
TheSupraLife opened this issue Mar 19, 2023 · 4 comments
Open

AttributeError: module 'functools' has no attribute 'cache' #33

TheSupraLife opened this issue Mar 19, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@TheSupraLife
Copy link

When I run:
audiobook-dl --username <username> --password <password> <url of storytel audiobook>

I get:

Traceback (most recent call last):
  File "/usr/local/bin/audiobook-dl", line 5, in <module>
    from audiobookdl.__main__ import run
  File "/usr/local/lib/python3.8/dist-packages/audiobookdl/__init__.py", line 1, in <module>
    from .utils.audiobook import AudiobookFile, Chapter
  File "/usr/local/lib/python3.8/dist-packages/audiobookdl/utils/__init__.py", line 4, in <module>
    @functools.cache
AttributeError: module 'functools' has no attribute 'cache'

What am I doing wrong?

@jo1gi
Copy link
Owner

jo1gi commented Mar 19, 2023

Nothing. I was using a function that was first introduced in python 3.9. I have removed it now on the Github version.

@jo1gi jo1gi added the bug Something isn't working label Mar 19, 2023
@jo1gi
Copy link
Owner

jo1gi commented Mar 24, 2023

@TheSupraLife Did it work?

@TheSupraLife
Copy link
Author

@jo1gi Can you provide me a example of a query to get it to work with storytel?

My input:
audiobook-dl --username <username> --password <password> <url of storytel audiobook>

Thanks in advance!

@jo1gi
Copy link
Owner

jo1gi commented Mar 25, 2023

That should work if the url looks like https://www.storytel.com/<lang>/books/<book-id> and the book is in your bookshelf. If it doesn't please send me the command output with the --debug argument.

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

2 participants