Spotify-downloader: Traceback everytime I try to download

Created on 8 Oct 2020  路  25Comments  路  Source: spotDL/spotify-downloader

```
spotdl https://open.spotify.com/track/08mG3Y1vljYA6bvDt4Wqkj?si=SxezdxmlTx-CaVoucHmrUA
Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 11, in
load_entry_point('spotdl==3.1.0', 'console_scripts', 'spotdl')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "build/bdist.linux-x86_64/egg/spotdl/__main__.py", line 2, in
File "/usr/local/lib/python2.7/dist-packages/spotdl-3.1.0-py2.7.egg/spotdl/search/spotifyClient.py", line 23
def initialize(clientId: str, clientSecret: str):
^
SyntaxError: invalid syntax

Most helpful comment

Multiprocessing doesn't work on android. There is nothing much we can do. Additionally, did you get ffmpeg on Android, if so, how?

On termux simply run $ pkg install ffmpeg

All 25 comments

Could you share your python version and the version of the required modules?

@sathvikpurushotham apparently you try to install spotdl with python 2.7. However spotdl requires at least python 3.6.

Could you share your python version and the version of the required modules?

python --version
Python 2.7.17

python3 --version
Python 3.6.9

@sathvikpurushotham apparently you try to install spotdl with python 2.7. However spotdl requires at least python 3.6.

@maxbachmann
But I have installed python 3.6, I do not know why it's displaying python 2.7 in the terminal

Okay I figured it out to run on python 3.6
But I'm getting a new error

```
spotdl https://open.spotify.com/album/6mUdeDZCsExyJLMdAfDuwh?highlight=spotify:track:08mG3Y1vljYA6bvDt4Wqkj
Traceback (most recent call last):
File "/usr/local/bin/spotdl", line 11, in
load_entry_point('spotdl==3.1.0', 'console_scripts', 'spotdl')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.6/dist-packages/spotdl-3.1.0-py3.6.egg/spotdl/__main__.py", line 10, in
File "/usr/local/lib/python3.6/dist-packages/spotdl-3.1.0-py3.6.egg/spotdl/download/downloader.py", line 12, in
File "/usr/local/lib/python3.6/dist-packages/spotdl-3.1.0-py3.6.egg/spotdl/patches/pyTube.py", line 33, in
ImportError: cannot import name 'apply_signature'

are you on Linux?

are you on Linux?

Yes I'm on linux

okay, uninstall spotdl and make sure you install it with pip for python3

okay, uninstall spotdl and make sure you install it with pip for python3

hi,sir,I have the same problem.I did what you said, but it didn't work

hi,sir,I have the same problem.I did what you said, but it didn't work
alright let me try and reproduce the problem then I'll get back to you

I cannot reproduce this error, but I'll keep working on it

I cannot reproduce this error, but I'll keep working on it

Thx,sir.i can tell u something about me.My python version 3.90,spotdl version 2.2.2 and windows 10 1909.If you need any other information about me, just say it.

We are no longer working on spotdl version 2.x please install spotdl from this repo. Hope you have Git installed and everything, I can guide you through everything. Check out README.md for instructions.

@sathvikpurushotham , has the issue been resolved for you?

We are no longer working on spotdl version 2.x please install spotdl from this repo. Hope you have Git installed and everything, I can guide you through everything. Check out README.md for instructions.

yes, sir. i have git, i can use v3. I just want to use V2 so that I can convert the format when I download songs ,because v3 doesn't seem to be able to do it. or maybe i don't know how to use v3 to do this

v3 doesn't do it. If you wish I'll write up a script to convert your v3 music.

I'm kind of busy rn, so that'll take a while.

You can install v2 using pip.

v3 doesn't do it. If you wish I'll write up a script to convert your v3 music.

I'm kind of busy rn, so that'll take a while.

You can install v2 using pip.

Really? Thank you so much! sir!

@sathvikpurushotham , has the issue been resolved for you?

Nope not yet

I forgot to say that my V2 and V3 are work, but I don't know why

can you try uninstalling spotDL with pip-autoremove and then reinstalling it from the master branch?

I am facing similar issue on Termux app on my phone.
https://pastebin.com/iWq11hZk
Python version: 3.9.0

@TuxKruger , v2 or v3?

@TuxKruger , v2 or v3?

v3

Multiprocessing doesn't work on android. There is nothing much we can do. Additionally, did you get ffmpeg on Android, if so, how?

Multiprocessing ensures that things dont get messed up by using semaphores, Android doesn't implement semaphores hence the problem.

Multiprocessing doesn't work on android. There is nothing much we can do. Additionally, did you get ffmpeg on Android, if so, how?

On termux simply run $ pkg install ffmpeg

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ritiek picture ritiek  路  5Comments

mvrck19 picture mvrck19  路  5Comments

iateadonut picture iateadonut  路  4Comments

noahball picture noahball  路  3Comments

EsmailELBoBDev2 picture EsmailELBoBDev2  路  5Comments