RoonCommandLine icon indicating copy to clipboard operation
RoonCommandLine copied to clipboard

List playlists error

Open tangos opened this issue 1 year ago • 4 comments

#roon -l playlists

Traceback (most recent call last): File "/usr/local/Roon/api/list_playlists.py", line 90, in playlists = roonapi.list_media(output_id, ["Playlists", playlistsearch]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/Roon/venv/lib/python3.11/site-packages/roonapi/roonapi.py", line 512, in list_media total_count = self.browse_browse(opts)["list"]["count"]

TypeError: 'NoneType' object is not subscriptable

somebody help!
thanks!

tangos avatar Jan 24 '25 12:01 tangos

I am unable to reproduce this error so I will need a little more information. What platform are you on, Mac or Linux? What version of RoonCommandLine are your running (cat /usr/local/Roon/etc/VERSION)?

Often problems arise when the system Python is upgraded but the RoonCommandLine Python virtual environment still points to an older Python version. Does ls -l /usr/local/Roon/venv/bin/python3 point to a valid current system Python executable?

Sorry, it is hard to debug an issue I cannot reproduce. These details may help me reproduce your runtime environment and issue.

doctorfree avatar Jan 24 '25 16:01 doctorfree

platform linux (dietpi)

root@DietPi:/# cat /usr/local/Roon/etc/VERSION VERSION=2.1.4 RELEASE=1

root@DietPi:/# whereis python3 python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz

root@DietPi:/# /usr/bin/python3 --version Python 3.11.2

root@DietPi:/# ls -l /usr/local/Roon/venv/bin/python3 lrwxrwxrwx 1 root root 16 Jan 23 15:11 /usr/local/Roon/venv/bin/python3 -> /usr/bin/python3 root@DietPi:/#

thx

tangos avatar Jan 24 '25 20:01 tangos

Thanks for providing system details. It looks like you are current and Python is linked correctly in your virtual environment.

Do you have any playlists? Are they smart playlists or normal playlists?

doctorfree avatar Jan 24 '25 20:01 doctorfree

have two playlists

Image

tangos avatar Jan 25 '25 01:01 tangos