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

  1. Cloned repo
  2. 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)

Most upvoted comments

i had the same problem today on my Linux :

command not found: spotdl

maybe thatโ€™s not the same problem/issue here but may help anybody else. let me explain! i had installed spotdl once before, using pip and it worked perfectly, recently i had switched to i3wm setup, and also changed my terminal emulator to xterm, when i tried to use spotdl, got this error, although the spotdl package was installed.

so the solution was:

  • uninstalling spotdl with both sudo and normal user:
pip3 uninstall spotdl
sudo pip3 uninstall spotdl

i donโ€™t know why, as they both use the same path but it was not actually uninstalled after using pip3 uninstall spotdl ( even though pip said that it is uninstalled successfully ) because it was still in pip3 list output. note that the right way to use sudo with pip is like sudo -H pip3 ...

  • clearing my pip cache folder, that in my case was in ~/.cache/pip/
  • reinstalling spotdl with --no-cache-dir option:
sudo -H pip3 install spotdl --no-cache-dir

and now it works perfectly again. ๐Ÿ˜ƒ note that i tried to use cached version sudo -H pip3 install spotdl but 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:

โžœ  site-packages echo $PATH
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages:/Users/AlexPark/.rbenv/shims:/Users/AlexPark/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/AlexPark/.rvm/bin

But when I tried running spotdl I am getting a

โžœ  ~ spotdl 
zsh: permission denied: spotdl

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

โžœ  ~ spotdl 
zsh: permission denied: spotdl

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:

chmod a+x /path/to/file