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

Can't figure out how to run it... #403

Closed
3 of 6 tasks
alexgpark opened this issue Oct 20, 2018 · 16 comments
Closed
3 of 6 tasks

Can't figure out how to run it... #403

alexgpark opened this issue Oct 20, 2018 · 16 comments

Comments

@alexgpark
Copy link

alexgpark commented Oct 20, 2018

  • 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'
@alexgpark
Copy link
Author

alexgpark commented Oct 20, 2018

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'

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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.

@alexgpark
Copy link
Author

alexgpark commented Oct 20, 2018

@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.

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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.

@alexgpark
Copy link
Author

alexgpark commented Oct 20, 2018

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

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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.

@alexgpark
Copy link
Author

alexgpark commented Oct 20, 2018

@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"

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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 😉

@alexgpark
Copy link
Author

alexgpark commented Oct 20, 2018

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 😅

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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 pypa/pip#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).

@alexgpark
Copy link
Author

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 😩

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

/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 👍

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... 😉

@linusg
Copy link
Contributor

linusg commented Oct 20, 2018

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 😬

@aasmpro
Copy link
Member

aasmpro commented Jan 11, 2019

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.

@aasmpro
Copy link
Member

aasmpro commented Jan 11, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants