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

.cache error #366

Open
nelwa opened this issue Oct 4, 2023 · 4 comments
Open

.cache error #366

nelwa opened this issue Oct 4, 2023 · 4 comments

Comments

@nelwa
Copy link

nelwa commented Oct 4, 2023

Hi,

Firstly, thank you for this amazing script!

When running the program it gives these error messages:

Couldn't read cache at: .cache                               cache_handler.py:87
Couldn't write token to cache at: .cache                     cache_handler.py:97

The script still works, but it means that if a large playlist download is interrupted, and started again, it does not resume at the next song in the playlist, and tries to download everything again.

I could not find any information anywhere on how to configure the .cache directory, but I've tried setting permissions of my ~/.cache folder which had no effect.

Any thoughts?

@nelwa nelwa added the bug label Oct 4, 2023
@nelwa
Copy link
Author

nelwa commented Oct 4, 2023

Further, is there a way to permanently set the client_id & client_secret variables? I have to re-enter them on any new terminal opened.

@SathyaBhat
Copy link
Owner

SathyaBhat commented Oct 8, 2023

Hey @nelwa

the "couldn't write to cache" message is about the authentication tokens, not the downloads. This has been a long standing bug that comes up on specific machines but I haven't been able to figure out which ones, especially since it comes from the underlying library.

The playlist resume behaviour certainly can be improved - I haven't had the time to look into rewriting it, to be honest. But I understand the pain.

For client_id and client secret to be set permanently, update your shell's profile files to set it. See this question for example: https://unix.stackexchange.com/questions/117467/how-to-permanently-set-environmental-variables

@SathyaBhat SathyaBhat added enhancement and removed bug labels Oct 8, 2023
@Maritsu
Copy link

Maritsu commented Feb 6, 2024

[...] This has been a long standing bug that comes up on specific machines but I haven't been able to figure out which ones, [...].

If it's of any help, I'm getting the same caching error on a Lenovo Legion 5-15IMH05, running EndeavourOS x86_64; Python v3.11.6.

@Maritsu
Copy link

Maritsu commented Feb 6, 2024

[...] This has been a long standing bug that comes up on specific machines but I haven't been able to figure out which ones, [...].

If it's of any help, I'm getting the same caching error on a Lenovo Legion 5-15IMH05, running EndeavourOS x86_64; Python v3.11.6.

Update: the issue has been resolved for me when running the command again, this time in the output directory.

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

No branches or pull requests

3 participants