dmunozv04 / iSponsorBlockTV

SponsorBlock client for all YouTube TV clients.
GNU General Public License v3.0
2.35k stars 96 forks source link

Error with cache import #2

Closed PencilNotPen closed 2 years ago

PencilNotPen commented 2 years ago

Traceback (most recent call last): File "/Users/test/Downloads/iSponsorBlockTV-main/main.py", line 5, in from cache import AsyncTTL ModuleNotFoundError: No module named 'cache'

Any ideas? I think dependencies are installed correctly from requirements.txt and API key is saved in .json file.

EDIT: requirements.txt still lists async_lru as dependency instead of async-ttl. I installed async-ttl manually with "pip install async-ttl", but I get the same error still. All other dependencies seem to be installed. No idea what the module cache error is. Thanks

dmunozv04 commented 2 years ago

Hello, could you try installing the async-cache module? Did you clone the repo with git or did you just download a zip file?

iamsinghrajat commented 2 years ago

Try installing async-cache with pip3 install async-cache

dmunozv04 commented 2 years ago

Can you confirm that after the PR from @HaltCatchFire it works?

PencilNotPen commented 2 years ago

Hi guys, thanks for the replies. I haven't been near my ATV recently to test again.

I downloaded the .zip, didn't clone the repo with git.

I have now installed async-cache, and I think the error is resolved, although as I said, I am not with my ATV so I can only check by running main.py and seeing if it shows my original error or not, I can't actually see if the tool is working overall.

It now errors at:

InvalidCredentialsError: invalid credentials:

But that's a matter for another time probably need to do the YT API credentials section again for that error. At least no mention is made of Async cache.

Perhaps the requirements.txt could be updated to drop async_lru, add async-ttl, and add async-cache?

Thanks for your help!