Spotify-downloader: Can't figure out how to run it...

Created on 20 Oct 2018  ยท  16Comments  ยท  Source: spotDL/spotify-downloader

  • [X] Using latest version as provided on the master branch
  • [X] [Searched](https://github.com/ritiek/spotify-downloader/issues?utf8=%E2%9C%93&q=is%3Aissue) for similar issues including closed ones

What is the purpose of your issue?

  • [ ] Bug
  • [ ] Feature Request
  • [X] 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'

Most helpful comment

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. :smiley:
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.

All 16 comments

Deleted repo and tried fresh again:

โžœ DJING git clone https://github.com/ritiek/spotify-downloader.git
Cloning into 'spotify-downloader'...
remote: Enumerating objects: 82, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 2601 (delta 45), reused 58 (delta 36), pack-reused 2519
Receiving objects: 100% (2601/2601), 562.01 KiB | 1.72 MiB/s, done.
Resolving deltas: 100% (1587/1587), done.

โžœ DJING ls
spotify-downloader

โžœ DJING cd spotify-downloader

โžœ spotify-downloader git:(master) spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
Traceback (most recent call last): File "/usr/local/bin/spotdl", line 7, in <module> from spotdl import main File "/usr/local/lib/python2.7/site-packages/spotdl.py", line 5, in <module> from core import metadata File "/usr/local/lib/python2.7/site-packages/core/metadata.py", line 7, in <module> import urllib.request ImportError: No module named request

โžœ spotify-downloader git:(master) ls
CHANGES.md CONTRIBUTING.md ISSUE_TEMPLATE.md README.md spotdl
CODE_OF_CONDUCT.md Dockerfile LICENSE setup.py test

โžœ spotify-downloader git:(master) cd spotdl

โžœ spotdl git:(master) spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
Traceback (most recent call last): File "/usr/local/bin/spotdl", line 7, in <module> from spotdl import main File "/usr/local/lib/python2.7/site-packages/spotdl.py", line 5, in <module> from core import metadata File "/usr/local/lib/python2.7/site-packages/core/metadata.py", line 7, in <module> import urllib.request ImportError: No module named request

โžœ spotdl git:(master) ls
__init__.py convert.py internals.py spotdl.py youtube_tools.py
const.py handle.py metadata.py spotify_tools.py

โžœ spotdl git:(master) python3 spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'spotdl': [Errno 2] No such file or directory

โžœ spotdl git:(master) python3 spotdl.py --song
https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ Traceback (most recent call last): File "spotdl.py", line 3, in <module> from spotdl import __version__ File "/Users/AlexPark/Desktop/Music/DJING/spotify-downloader/spotdl/spotdl.py", line 3, in <module> from spotdl import __version__ ImportError: cannot import name '__version__'

โžœ spotdl git:(master) cd ..

โžœ spotify-downloader git:(master) spotdl --song
https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ Traceback (most recent call last): File "/usr/local/bin/spotdl", line 7, in <module> from spotdl import main File "/usr/local/lib/python2.7/site-packages/spotdl.py", line 5, in <module> from core import metadata File "/usr/local/lib/python2.7/site-packages/core/metadata.py", line 7, in <module> import urllib.request ImportError: No module named request

โžœ spotify-downloader git:(master) python3 spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ /usr/local/bin/python3: can't find '__main__' module in 'spotdl'

Install it for Python 3 (check pip -V, you may or may not need to use pip3) and run it with spotdl -p https://open.spotify.com/xxxxx.

The tool won't work with Python 2 and is not supposed to be started by invoking the Python interpreter manually (i.e. python[3] ...), even for development use pip install -e . and use the spotdl command.

Edit: DO NOT install it from the repo unless you want to do development, use PyPI version instead.

@linusg Thanks for quick reply.

Yes, I made sure to try that first.

โžœ DJING pip3 install spotdl
Requirement already satisfied: spotdl in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (1.0.0)
Requirement already satisfied: PyYAML>=3.12 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (3.13)
Requirement already satisfied: lyricwikia>=0.1.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.9)
Requirement already satisfied: youtube-dl>=2017.9.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2017.10.12)
Requirement already satisfied: beautifulsoup4>=4.6.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (4.6.0)
Requirement already satisfied: mutagen>=1.37 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.38)
Requirement already satisfied: titlecase>=0.10.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.12.0)
Requirement already satisfied: appdirs>=1.4.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.4.3)
Requirement already satisfied: spotipy>=2.4.4 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2.4.4)
Requirement already satisfied: pathlib>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.0.1)
Requirement already satisfied: unicode-slugify>=0.1.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.3)
Requirement already satisfied: pafy>=0.5.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.5.3.1)
Requirement already satisfied: logzero>=1.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.5.0)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from lyricwikia>=0.1.8->spotdl) (2.18.4)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from lyricwikia>=0.1.8->spotdl) (1.11.0)
Requirement already satisfied: unidecode in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from unicode-slugify>=0.1.3->spotdl) (0.4.21)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (2017.7.27.1)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (1.22)
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Please use

Code blocks

for terminal output, increases readability a lot. Thanks.


Ok, let's do it step by step:

  • Get rid of everything related you've downloaded before (GH repo clone, pip uninstall spotdl)
  • pip install spotdl, use your pip for Python 3!
  • spotdl -p <playlist url>
  • spotdl -l <generated text file>

Paste the output of all these.

Thanks @linusg

Still no dice :\

โžœ  DJING pip3 uninstall spotdl
Uninstalling spotdl-1.0.0:
  Would remove:
    /Library/Frameworks/Python.framework/Versions/3.6/bin/spotdl
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/core/*
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotdl-1.0.0.dist-info/*
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotdl.py
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotdl/*
Proceed (y/n)? y
  Successfully uninstalled spotdl-1.0.0
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

โžœ  DJING pip3 install spotdl                                                
Collecting spotdl
  Using cached https://files.pythonhosted.org/packages/59/5d/8dd42d4c27ec469630b962389db45566c86fc1eaab5c0ff1d214e607e40c/spotdl-1.0.0-py3-none-any.whl
Requirement already satisfied: youtube-dl>=2017.9.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2017.10.12)
Requirement already satisfied: unicode-slugify>=0.1.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.3)
Requirement already satisfied: beautifulsoup4>=4.6.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (4.6.0)
Requirement already satisfied: appdirs>=1.4.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.4.3)
Requirement already satisfied: lyricwikia>=0.1.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.9)
Requirement already satisfied: pafy>=0.5.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.5.3.1)
Requirement already satisfied: pathlib>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.0.1)
Requirement already satisfied: PyYAML>=3.12 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (3.13)
Requirement already satisfied: logzero>=1.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.5.0)
Requirement already satisfied: titlecase>=0.10.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.12.0)
Requirement already satisfied: mutagen>=1.37 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.38)
Requirement already satisfied: spotipy>=2.4.4 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2.4.4)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from unicode-slugify>=0.1.3->spotdl) (1.11.0)
Requirement already satisfied: unidecode in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from unicode-slugify>=0.1.3->spotdl) (0.4.21)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from lyricwikia>=0.1.8->spotdl) (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (2017.7.27.1)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (1.22)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests->lyricwikia>=0.1.8->spotdl) (2.6)
Installing collected packages: spotdl
Successfully installed spotdl-1.0.0
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

โžœ  DJING spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
Traceback (most recent call last):
  File "/usr/local/bin/spotdl", line 7, in <module>
    from spotdl import main
  File "/usr/local/lib/python2.7/site-packages/spotdl.py", line 5, in <module>
    from core import metadata
  File "/usr/local/lib/python2.7/site-packages/core/metadata.py", line 7, in <module>
    import urllib.request
ImportError: No module named request

Is it possible that you still have installed it with pip for Python 2 from your previous attempts? IMO now doing a pip2 uninstall spotdl (or pip if that's the one for Python 2) should make it work, since after that only the Python 3 version you've just installed will be left.

@linusg You were right about the other instances. I uninstalled and cleared everything to my knowledge but now getting this error:

โžœ  DJING pip3 install spotdl
Collecting spotdl
  Using cached https://files.pythonhosted.org/packages/59/5d/8dd42d4c27ec469630b962389db45566c86fc1eaab5c0ff1d214e607e40c/spotdl-1.0.0-py3-none-any.whl
Requirement already satisfied: logzero>=1.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.5.0)
Requirement already satisfied: PyYAML>=3.12 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (3.13)
Requirement already satisfied: unicode-slugify>=0.1.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.3)
Requirement already satisfied: pathlib>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.0.1)
Requirement already satisfied: spotipy>=2.4.4 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2.4.4)
Requirement already satisfied: titlecase>=0.10.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.12.0)
Requirement already satisfied: lyricwikia>=0.1.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.1.9)
Requirement already satisfied: appdirs>=1.4.3 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.4.3)
Requirement already satisfied: youtube-dl>=2017.9.8 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (2017.10.12)
Requirement already satisfied: pafy>=0.5.3.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (0.5.3.1)
Requirement already satisfied: beautifulsoup4>=4.6.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (4.6.0)
Requirement already satisfied: mutagen>=1.37 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotdl) (1.38)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from unicode-slugify>=0.1.3->spotdl) (1.11.0)
Requirement already satisfied: unidecode in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from unicode-slugify>=0.1.3->spotdl) (0.4.21)
Requirement already satisfied: requests>=1.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from spotipy>=2.4.4->spotdl) (2.18.4)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests>=1.0->spotipy>=2.4.4->spotdl) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests>=1.0->spotipy>=2.4.4->spotdl) (2.6)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests>=1.0->spotipy>=2.4.4->spotdl) (2017.7.27.1)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from requests>=1.0->spotipy>=2.4.4->spotdl) (1.22)
Installing collected packages: spotdl
Successfully installed spotdl-1.0.0
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

โžœ  DJING spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
zsh: command not found: spotdl

โžœ  DJING pip3  spotdl --song https://open.spotify.com/track/2DGa7iaidT5s0qnINlwMjJ
ERROR: unknown command "spotdl"

Is the the directory where pip writes scripts to in your $PATH?

tr ':' '\n' <<< "$PATH"

For me that's /home/linus/.local/bin/ (Linux) and /home/linus/.pyenv/versions/<venv name>/bin/ for pyenv, respectively.

Unless it's in PATH you shell won't be able to find the spotdl executable (script).

Also, first insert your output here, then select it, then press the <> button. Otherwise you'll get inline code :wink:

Thanks for being so patient and helpful heh

โžœ  DJING tr ':' '\n' <<< "$PATH"
/Users/AlexPark/.rbenv/shims
/Users/AlexPark/.rbenv/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/AlexPark/.rvm/bin

I am not sure what this means though or how to fix - sorry, I'm still learning ๐Ÿ˜…

Thanks for being so patient and helpful heh

No worries!

I'm not aware if there's any way to "ask" pip where it stores the script files and libraries. You may check /Users/AlexPark/.local/bin or even /bin (something would be f*cked up IMO), also see https://github.com/pypa/pip/issues/3813. Or do a short online search for macOS specific information. Just look out for a file with the name "spotdl".

Once you find the right directory, you add a line to either your .profile or .zshrc (I use Bash and .bashrc, and again, Google and others are your frined):

export PATH="/path/you/just/found/out:$PATH"

That should be it. Open a new terminal for it to take effect (or source the file).

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 ๐Ÿ˜ฉ

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

Good to know, I wouldn't have expected this as the location for executable files :+1:

I realize this is way out of scope for spotdl

...I closed the issue because it's not an issue with the project itself, but that doesn't mean there'll be no help. Let me install virtualbox really quick, I think I have an macOS image around somewhere... :wink:

I think I have an macOS image around somewhere...

Bummer, it doesn't boot.

Regarding the link posted by @ritiek, are you completely sure the path isn't something like

/Library/Frameworks/Python.framework/Versions/3.6/bin

Also, have you tried using the absolute path to the file, e.g.

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spotdl -p <url>

or, if the above is true

/Library/Frameworks/Python.framework/Versions/3.6/bin/spotdl -p <url>

?

_Edit: I'm tempted to add the hard label to this issue ๐Ÿ˜ฌ_

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. :smiley:
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.

@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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

linusg picture linusg  ยท  6Comments

RowanSkie picture RowanSkie  ยท  5Comments

GUI
adrcotfas picture adrcotfas  ยท  5Comments

marinabar picture marinabar  ยท  4Comments

loftwah picture loftwah  ยท  5Comments