-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
-
None
-
> pacman -Qi picard-git|grep -i version
Version : 1.4.1.r414.g9b0b3dba-1
If I right-click on an item in the right-hand pane, Picard crashes. The traceback suggests that this is related to ratings:
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/picard/ui/itemviews.py", line 373, in contextMenuEvent action.setDefaultWidget(RatingWidget(menu, obj)) File "/usr/lib/python3.6/site-packages/picard/ui/ratingwidget.py", line 30, in __init__ self._rating = int(track.metadata["~rating"] or 0) ValueError: invalid literal for int() with base 10: "{'value': None}"
I tried to rate https://musicbrainz.org/recording/4b6767eb-7890-4ba9-9d36-88959a09cb3c and then load it up in Picard and right-clicking it, but I still get a traceback:
Unable to find source-code formatter for language: python traceback. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/picard/ui/itemviews.py", line 373, in contextMenuEvent action.setDefaultWidget(RatingWidget(menu, obj)) File "/usr/lib/python3.6/site-packages/picard/ui/ratingwidget.py", line 30, in __init__ self._rating = int(track.metadata["~rating"] or 0) ValueError: invalid literal for int() with base 10: "{'value': 4}"
This happens whether or not the item has been associated with a file.