Package: abcde
Version: 2.8.1-1
Severity: normal

Dear Maintainer,


abcde-musicbrainz-tool does not work with the error message 'Can't call method
"count" on an undefined value at ./abcde-musicbrainz-tool line 99'

Actually, this error has been reported in upstream
https://abcde.einval.com/bugzilla/show_bug.cgi?id=62#c0 .


What I did is the following:


hiroo@viriya:~/music/mp3/tmp% abcde
[10640]
dasd: 1 16  150 220521 0
12652
24280
35782
48544
58366
70708
86522
106822
121964
139047
156272
169265
182845
195705
211098
Grabbing entire CD - tracks: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
Can't call method "count" on an undefined value at /usr/bin/abcde-musicbrainz-
tool line 99.
No Musicbrainz match.
---- Unknown Artist / Unknown Album ----
1: Track 1
2: Track 2
3: Track 3
4: Track 4
5: Track 5
6: Track 6
7: Track 7
8: Track 8
9: Track 9
10: Track 10
11: Track 11
12: Track 12
13: Track 13
14: Track 14
15: Track 15
16: Track 16

Edit selected CDDB data [Y/n]?


Here is a patch for abcde-musicbrainz-tool (This is the same with the attached
one to the above upstream bug report, and this patch works fine for me):

--- /usr/bin/abcde-musicbrainz-tool     2016-01-18 23:06:40.000000000 +0900
+++ abcde-musicbrainz-tool      2017-06-02 20:15:16.345075351 +0900
@@ -96,7 +96,8 @@
         if ($a_artist =~ /Various Artists/) {
             $va = 1;
         }
-       if ($release->release_event_list()->count() > 0) {
+       if ($release->release_event_list() and
+            $release->release_event_list()->count() > 0) {
            my @events = @{$release->release_event_list()->events()};
            $rel_year =  substr($events[0]->date(),0,4);
        }




The below is my system information:

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages abcde depends on:
ii  cd-discid     1.4-1+b1
ii  cdparanoia    3.10.2+debian-11
ii  flac          1.3.2-1
ii  lame          1:3.99.5-dmo6
ii  vorbis-tools  1.4.0-10+b1
ii  wget          1.19.1-3

Versions of packages abcde recommends:
ii  bsd-mailx                         8.1.2-0.20160123cvs-4
ii  glyrc                             1.0.9-1
ii  imagemagick                       8:6.9.7.4+dfsg-6
ii  imagemagick-6.q16 [imagemagick]   8:6.9.7.4+dfsg-6
ii  libmusicbrainz-discid-perl        0.03-6+b2
ii  libperl5.22 [libdigest-sha-perl]  5.22.2-5
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-2
ii  libwebservice-musicbrainz-perl    0.93-1.1
ii  vorbis-tools                      1.4.0-10+b1

Versions of packages abcde suggests:
pn  atomicparsley    <none>
pn  distmp3          <none>
ii  eject            2.1.5+deb1+cvs20081104-13.2
ii  eyed3            0.7.10-1
pn  id3              <none>
ii  id3v2            0.1.12-2.1+b2
pn  mkcue            <none>
pn  mp3gain          <none>
ii  normalize-audio  0.7.7-14+b1
pn  vorbisgain       <none>

-- no debconf information

Thank you for your maintenance work on this useful package.



-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages abcde depends on:
ii  cd-discid     1.4-1+b1
ii  cdparanoia    3.10.2+debian-11
ii  flac          1.3.2-1
ii  lame          1:3.99.5-dmo6
ii  vorbis-tools  1.4.0-10+b1
ii  wget          1.19.1-3

Versions of packages abcde recommends:
ii  bsd-mailx                         8.1.2-0.20160123cvs-4
ii  glyrc                             1.0.9-1
ii  imagemagick                       8:6.9.7.4+dfsg-6
ii  imagemagick-6.q16 [imagemagick]   8:6.9.7.4+dfsg-6
ii  libmusicbrainz-discid-perl        0.03-6+b2
ii  libperl5.22 [libdigest-sha-perl]  5.22.2-5
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-2
ii  libwebservice-musicbrainz-perl    0.93-1.1
ii  vorbis-tools                      1.4.0-10+b1

Versions of packages abcde suggests:
pn  atomicparsley    <none>
pn  distmp3          <none>
ii  eject            2.1.5+deb1+cvs20081104-13.2
ii  eyed3            0.7.10-1
pn  id3              <none>
ii  id3v2            0.1.12-2.1+b2
pn  mkcue            <none>
pn  mp3gain          <none>
ii  normalize-audio  0.7.7-14+b1
pn  vorbisgain       <none>

-- no debconf information

Reply via email to