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

[BUG] AttributeError: 'NoneType' object has no attribute 'get_temp_dir' #76

Open
farhad-Evil opened this issue Dec 16, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@farhad-Evil
Copy link

Hi, Everything Seems to be fine but i get this error:

=================
s = Savify(api_credentials=(".","."), quality=Quality.BEST, download_format=Format.MP3)
File "C:\Python310\lib\site-packages\savify\savify.py", line 75, in init
clean(self.path_holder.get_temp_dir())
AttributeError: 'NoneType' object has no attribute 'get_temp_dir'

My Code:
from savify import Savify
from savify.types import Format, Quality

s = Savify(api_credentials=(".","."), quality=Quality.BEST, download_format=Format.MP3)

Spotify URL

s.download(".")

@farhad-Evil farhad-Evil added the bug Something isn't working label Dec 16, 2022
@sainishwanth
Copy link

sainishwanth commented Dec 18, 2022

Import the following library
from savify.utils import PathHolder
import logging

Mention this in your arguments list for Savify
path_holder=PathHolder(downloads_path='path/to/download')

@mattsegura
Copy link

what exact download are you specifying? @sainishwanth the download path for FFMpeg???

@mattsegura
Copy link

Kind of figured it out, you would manually pass the patholder parameter within Savify.
image

Here's a picture of it working,
image
but I'm having SSL issues which is something completely different but slowly getting there.

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

4 participants