streamrip icon indicating copy to clipboard operation
streamrip copied to clipboard

x not in list ERROR - Qobuz not working even on reinstall from Git

Open Graz0 opened this issue 10 months ago • 16 comments

Describe the bug

Did script update ...reinstalled, used pipx, updated python and still cant get a Qobux download to work

I dont have a token I enter my name / pw for Qobuz account

Command Used

rip url https://open.qobuz.com/album/hxo0pf3vy1cxa

Debug Traceback

rip url https://open.qobuz.com/album/hxo0pf3vy1cxa
[14:09:32] INFO     App id/secrets not found, fetching              qobuz.py:157
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /Library/Frameworks/Python.framework/Versions/3.10/bin/rip:8 in <module>     │
│                                                                              │
│   5 from streamrip.rip import rip                                            │
│   6 if __name__ == '__main__':                                               │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])     │
│ ❱ 8 │   sys.exit(rip())                                                      │
│   9                                                                          │
│                                                                              │
│ /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packa │
│ ges/click/core.py:1130 in __call__                                           │
│                                                                              │
│                           ... 12 frames hidden ...                           │
│                                                                              │
│ /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packa │
│ ges/streamrip/client/qobuz.py:383 in _get_app_id_and_secrets                 │
│                                                                              │
│   380 │                                                                      │
│   381 │   async def _get_app_id_and_secrets(self) -> tuple[str, list[str]]:  │
│   382 │   │   async with QobuzSpoofer() as spoofer:                          │
│ ❱ 383 │   │   │   return await spoofer.get_app_id_and_secrets()              │
│   384 │                                                                      │
│   385 │   async def _get_valid_secret(self, secrets: list[str]) -> str:      │
│   386 │   │   results = await asyncio.gather(                                │
│                                                                              │
│ /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packa │
│ ges/streamrip/client/qobuz.py:120 in get_app_id_and_secrets                  │
│                                                                              │
│   117 │   │   │   ).decode("utf-8")                                          │
│   118 │   │                                                                  │
│   119 │   │   vals: List[str] = list(secrets.values())                       │
│ ❱ 120 │   │   vals.remove("")                                                │
│   121 │   │                                                                  │
│   122 │   │   secrets_list = vals                                            │
│   123                                                                        │
╰──────────────────────────────────────────────────────────────────────────────╯
ValueError: list.remove(x): x not in list

Config File

standard as per new install latest version

Operating System

MacOS

streamrip version

2.02

Screenshots and recordings

No response

Additional context

No response

Graz0 avatar Feb 23 '25 14:02 Graz0

Having the same error, just thought i'd chime in.

bbaserdem avatar Feb 25 '25 06:02 bbaserdem

I have this error as well

lolrickgaal avatar Feb 25 '25 19:02 lolrickgaal

Try this PR, will fix it (works for me)

Louis2530 avatar Feb 26 '25 09:02 Louis2530

thanks for the info...went to the web player opened dev tools and got user Id and token, updated config to true, didnt work. Rest the config - repeated and failed, tried with all combinations or username, password, ID token - all give the result of x not in list any other ideas?

Graz0 avatar Feb 27 '25 16:02 Graz0

Anyone want to send a working config file minus their Qobuz details of course...could try that?

Graz0 avatar Feb 28 '25 17:02 Graz0

thanks for the info...went to the web player opened dev tools and got user Id and token, updated config to true, didnt work. Rest the config - repeated and failed, tried with all combinations or username, password, ID token - all give the result of x not in list any other ideas?

Did you change qobuz.py with new file by the PR I've send ? It normally works if you done that

Louis2530 avatar Mar 01 '25 16:03 Louis2530

no not yet - will try that next...

On Sat, 1 Mar 2025 at 16:01, Louis2530 @.***> wrote:

thanks for the info...went to the web player opened dev tools and got user Id and token, updated config to true, didnt work. Rest the config - repeated and failed, tried with all combinations or username, password, ID token - all give the result of x not in list any other ideas?

Did you change qobuz.py with new file by the PR I've send ? It normally works if you done that

— Reply to this email directly, view it on GitHub https://github.com/nathom/streamrip/issues/804#issuecomment-2692295910, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCLNCITHGYN27LJQD4Z7YT2SHKWBAVCNFSM6AAAAABXWK4SDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGI4TKOJRGA . You are receiving this because you authored the thread.Message ID: @.***> [image: Louis2530]Louis2530 left a comment (nathom/streamrip#804) https://github.com/nathom/streamrip/issues/804#issuecomment-2692295910

thanks for the info...went to the web player opened dev tools and got user Id and token, updated config to true, didnt work. Rest the config - repeated and failed, tried with all combinations or username, password, ID token - all give the result of x not in list any other ideas?

Did you change qobuz.py with new file by the PR I've send ? It normally works if you done that

— Reply to this email directly, view it on GitHub https://github.com/nathom/streamrip/issues/804#issuecomment-2692295910, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCLNCITHGYN27LJQD4Z7YT2SHKWBAVCNFSM6AAAAABXWK4SDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJSGI4TKOJRGA . You are receiving this because you authored the thread.Message ID: @.***>

Graz0 avatar Mar 01 '25 18:03 Graz0

thanks for the info...went to the web player opened dev tools and got user Id and token, updated config to true, didnt work. Rest the config - repeated and failed, tried with all combinations or username, password, ID token - all give the result of x not in list any other ideas?

Did you change qobuz.py with new file by the PR I've send ? It normally works if you done that

Hi can you send the exact command line inputs?

wheelien avatar Mar 02 '25 21:03 wheelien

PR #779 fix it, reinstall from dev pip3 install git+https://github.com/nathom/streamrip.git@dev Can close this issue

Louis2530 avatar Mar 09 '25 21:03 Louis2530

hey louis, hate to be annoying but i reinstalled from the dev you posted and still getting the “x not in list” error

wheelien avatar Mar 10 '25 06:03 wheelien

hey louis, hate to be annoying but i reinstalled from the dev you posted and still getting the “x not in list” error

Try pip3 install git+https://github.com/nathom/streamrip.git@dev --force-reinstall

Louis2530 avatar Mar 10 '25 06:03 Louis2530

hey louis, hate to be annoying but i reinstalled from the dev you posted and still getting the “x not in list” error

Try pip3 install git+https://github.com/nathom/streamrip.git@dev --force-reinstall

getting the same error unfortunately

wheelien avatar Mar 10 '25 07:03 wheelien

Maybe you have other version on other python in PATH that replacing that command ? Check it on all your python installs

Louis2530 avatar Mar 10 '25 07:03 Louis2530

Did you understand what I've say ? Sorry if I'm not clear

Louis2530 avatar Mar 10 '25 13:03 Louis2530

Did you understand what I've say ? Sorry if I'm not clear

as far as i can tell I only have one version of python installed. not sure what else I should try

wheelien avatar Mar 11 '25 05:03 wheelien

Did you understand what I've say ? Sorry if I'm not clear

as far as i can tell I only have one version of python installed. not sure what else I should try

Try the new update of yesterday

Louis2530 avatar Mar 11 '25 14:03 Louis2530