spotify-downloader: Can't figure out how to run it...
- Using latest version as provided on the master branch
- Searched for similar issues including closed ones
What is the purpose of your issue?
- Bug
- Feature Request
- Question
- Other
Description
Can someone give me the exact steps required to get this running? I used to be able to run it, but not anymore.
Am I supposed to run the commands from a specific location in directory?
Here is what I tried at first: https://streamable.com/oafqa
- Cloned repo
- Ran commands in readme - various errors depending on where I was in directory
Then I went into the /Users/AlexPark/Desktop/Music/DJING/spotify-downloader/spotdl directory and renamed spotdl.py to main.py hoping maybe that would work (https://github.com/ritiek/spotify-downloader/pull/381).
Ran python3 main.py --playlist https://open.spotify.com/user/mralexpark/playlist/3xeI8x8V8sivqo5PPTy53q\?si\=Swd5foZeTjiVejIi1kTIlw
That successfully generated a .txt file but when I ran the --list command on it I got:
Traceback (most recent call last): File "main.py", line 246, in <module> main() File "main.py", line 224, in main skip_file=const.args.skip, AttributeError: 'Namespace' object has no attribute 'skip'
Was so easy to use before, now running into walls everywhere.
Simple set of step by step instructions please? I have tried so many things to make it work to no avail ๐ฆ
Log
python3 spotdl --playlist https://open.spotify.com/user/nocopyrightsounds/playlist/7sZbq8QGyMnhKPcLJvCUFD --log-level=DEBUG
/usr/local/bin/python3: can't find '__main__' module in 'spotdl'
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (10 by maintainers)
i had the same problem today on my Linux :
maybe thatโs not the same problem/issue here but may help anybody else. let me explain! i had installed
spotdlonce before, usingpipand it worked perfectly, recently i had switched to i3wm setup, and also changed my terminal emulator to xterm, when i tried to usespotdl, got this error, although thespotdlpackage was installed.so the solution was:
spotdlwith bothsudoand normal user:i donโt know why, as they both use the same path but it was not actually uninstalled after using
pip3 uninstall spotdl( even thoughpipsaid that it is uninstalled successfully ) because it was still inpip3 listoutput. note that the right way to usesudowithpipis likesudo -H pip3 ...cachefolder, that in my case was in~/.cache/pip/spotdlwith--no-cache-diroption:and now it works perfectly again. ๐ note that i tried to use cached version
sudo -H pip3 install spotdlbut that not worked for me, guess that the problem is with pip cache system maybe.Thank you so much I never would have even known what the problem was on my own.
I was able to find the spotdl script eventually (/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages)
and also added it to $PATH:
But when I tried running spotdl I am getting a
which no amount of googling has helped with sadly.
Adding sudo made no difference either.
I realize this is way out of scope for spotdl, but if any kind soul out there has been down this path and has a solution, please throw a brother a lifeline ๐ฉ
@alexgpark in case of
you may change the file permissions and give the executable flag to it. you can use a command like this to make a file executable for all users: