Bug 769258 - [abrt] picard-0.15.1-1.fc15: metadata.py:91:compare_to_release:ValueError: invalid literal for int() with base 10: 'www.MzHipHop.com'
Summary: [abrt] picard-0.15.1-1.fc15: metadata.py:91:compare_to_release:ValueError: in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: picard
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alex Lancaster
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b1655727ac40c1781e5b720ecd8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-20 11:49 UTC by Jim
Modified: 2012-06-20 19:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 19:28:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jim 2011-12-20 11:49:49 UTC
abrt version: 2.0.3
architecture:   x86_64
cmdline:        /usr/bin/python /usr/bin/picard
component:      picard
executable:     /usr/bin/picard
kernel:         2.6.41.4-1.fc15.x86_64
os_release:     Fedora release 15 (Lovelock)
package:        picard-0.15.1-1.fc15
reason:         metadata.py:91:compare_to_release:ValueError: invalid literal for int() with base 10: 'www.MzHipHop.com'
time:           Tue Dec 20 01:00:55 2011
uid:            500
username:       notjames

backtrace:
:metadata.py:91:compare_to_release:ValueError: invalid literal for int() with base 10: 'www.MzHipHop.com'
:
:Traceback (most recent call last):
:  File "/usr/lib64/python2.7/site-packages/picard/webservice.py", line 173, in _process_reply
:    handler(xml_handler.document, reply, error)
:  File "/usr/lib64/python2.7/site-packages/picard/file.py", line 518, in _lookup_finished
:    score, release = self._compare_to_track(track)
:  File "/usr/lib64/python2.7/site-packages/picard/file.py", line 485, in _compare_to_track
:    t, p = self.metadata.compare_to_release(release, w, self.config)
:  File "/usr/lib64/python2.7/site-packages/picard/metadata.py", line 91, in compare_to_release
:    a = int(self["totaltracks"])
:ValueError: invalid literal for int() with base 10: 'www.MzHipHop.com'
:
:Local variables in innermost frame:
:b: u'Bravo Black Hits, Volume 22'
:self: {'website': [u'www.hear-it-first.net'], 'album': [u'www.MzHipHop.com'], 'date': ['2009'], '~#bitrate': [160.0], 'lyrics': [u'www.MzHipHop.com', u'www.MzHipHop.com'], 'title': [u'Room Service (Hotel Room)'], 'artist': [u'Pitbull'], 'totaldiscs': [u'www.MzHipHop.com'], u'comment:': [u'www.MzHipHop.com', u'www.MzHipHop.com'], 'totaltracks': [u'www.MzHipHop.com'], 'albumartist': [u'Pitbull'], '~format': ['MPEG-1 Layer 3'], '~#sample_rate': [44100], 'composer': [u'www.MzHipHop.com'], 'encodedby': [u'www.MzHipHop.com'], 'tracknumber': [u'www.MzHipHop.com'], 'discnumber': [u'www.MzHipHop.com'], 'label': [u'www.MzHipHop.com'], 'genre': [u'Hip-Hop/Rap'], '~extension': [u'mp3'], 'grouping': [u'www.MzHipHop.com']}
:parts: [(0.11666666269302368, 5)]
:weights: {'album': 5, 'totaltracks': 4, 'length': 10, 'title': 13, 'format': 2, 'artist': 4, 'releasetype': 20, 'releasecountry': 2}
:release: {'attribs': {u'id': u'2a7557a2-6b6c-4d82-89df-c03ac7589e9b'}, 'text': u'', 'children': {u'status': [{'attribs': {}, 'text': u'Official', 'children': {}}], u'title': [{'attribs': {}, 'text': u'Bravo Black Hits, Volume 22', 'children': {}}], u'country': [{'attribs': {}, 'text': u'DE', 'children': {}}], u'medium_list': [{'attribs': {}, 'text': u'', 'children': {u'medium': [{'attribs': {}, 'text': u'', 'children': {u'position': [{'attribs': {}, 'text': u'1', 'children': {}}], u'track_list': [{'attribs': {u'count': u'21', u'offset': u'15'}, 'text': u'', 'children': {u'track': [{'attribs': {}, 'text': u'', 'children': {u'title': [{'attribs': {}, 'text': u'Hotel Room Service', 'children': {}}]}}]}}], u'format': [{'attribs': {}, 'text': u'CD', 'children': {}}]}}], u'track_count': [{'attribs': {}, 'text': u'42', 'children': {}}]}}], u'artist_credit': [{'attribs': {}, 'text': u'', 'children': {u'name_credit': [{'attribs': {}, 'text': u'', 'children': {u'artist': [{'attribs': {u'id': u'89ad4ac3-39f7-470e-963a-56509c546377'}, 'text': u'', 'children': {u'name': [{'attribs': {}, 'text': u'Various Artists', 'children': {}}]}}]}}]}}], u'date': [{'attribs': {}, 'text': u'2010-04-02', 'children': {}}], u'release_group': [{'attribs': {u'type': u'Compilation'}, 'text': u'', 'children': {}}]}}
:total: 5.0
:config: <picard.config.Config object at 0x2b4bf80>

comment:
:Performed a lookup on 5842 songs. It was taking a long time so I walked away. I came back approximately three
:hours to find it in an abrt state.

Comment 1 Alex Lancaster 2011-12-20 18:24:51 UTC
I would start by bisecting the list of songs to try to find the song(s) that triggered the original abrt.  Looking at that backtrace it seems to be one track "Room Server (Hotel Room)" might be causing the problem.  I'm guessing that the original mp3 had encoded non-integers in the "tracknumber" ID3 field and that picard (or python-mutagen that reads the tags) doesn't like that.  I would open up a bug upstream:

http://tickets.musicbrainz.org/browse/PICARD

report the information for the track in question and then post the link to that upstream tracker bug here (and link back to this bugzilla bug on the upstream bug tracker).

Comment 2 Jim 2011-12-21 06:47:30 UTC
Created ticket http://tickets.musicbrainz.org/browse/PICARD-112 and linked it back to this ticket. 

Here are the tags in the id3:


*** Tag information for Pitbull - Room Service (Hotel Room).mp3
=== TRCK (Track number/Position in set): www.MzHipHop.com/www.MzHipHop.com
=== WOAR (Official artist/performer webpage): www.hear-it-first.net
=== WOAS (Official audio source webpage): www.hear-it-first.net
=== TXXX (User defined text information): (Engineer): DJ SMOKEY
=== TXXX (User defined text information): (RCC): Burim  BraiNCrackeR  #Philipp  DJ SmokeY  M.Kay
=== TXXX (User defined text information): (EpisodeID): www.hear-it-first.net
=== GEOB (General encapsulated object): ()[]: ÿþS, 0 bytes
=== TIT2 (Title/songname/content description): Room Service (Hotel Room)
=== TPE1 (Lead performer(s)/Soloist(s)): Pitbull
=== TALB (Album/Movie/Show title): www.MzHipHop.com
=== TYER (Year): 2009
=== COMM (Comments): (ID3v1 Comment)[XXX]: www.MzHipHop.com
=== TCON (Content type): (12)
*** mp3 info
MPEG1/layer III
Bitrate: 160KBps
Frequency: 44KHz

Appreciate your assistance.

Comment 3 Alex Lancaster 2011-12-21 19:16:45 UTC
(In reply to comment #2)
> Created ticket http://tickets.musicbrainz.org/browse/PICARD-112 and linked it
> back to this ticket. 

Thanks, I'm watching the upstream ticket now.  Did you localize the problem to this particular file, by the way?

> Here are the tags in the id3:
> 
> 
> *** Tag information for Pitbull - Room Service (Hotel Room).mp3
> === TRCK (Track number/Position in set): www.MzHipHop.com/www.MzHipHop.com
> === WOAR (Official artist/performer webpage): www.hear-it-first.net
> === WOAS (Official audio source webpage): www.hear-it-first.net
> === TXXX (User defined text information): (Engineer): DJ SMOKEY
> === TXXX (User defined text information): (RCC): Burim  BraiNCrackeR  #Philipp 
> DJ SmokeY  M.Kay
> === TXXX (User defined text information): (EpisodeID): www.hear-it-first.net
> === GEOB (General encapsulated object): ()[]: ÿþS, 0 bytes
> === TIT2 (Title/songname/content description): Room Service (Hotel Room)
> === TPE1 (Lead performer(s)/Soloist(s)): Pitbull
> === TALB (Album/Movie/Show title): www.MzHipHop.com
> === TYER (Year): 2009
> === COMM (Comments): (ID3v1 Comment)[XXX]: www.MzHipHop.com
> === TCON (Content type): (12)
> *** mp3 info
> MPEG1/layer III
> Bitrate: 160KBps
> Frequency: 44KHz
> 
> Appreciate your assistance.

Comment 4 Alex Lancaster 2011-12-21 19:20:07 UTC
Also, I notice that you got this problem with version 0.15.1.  The new 0.16 version has just been pushed to stable on f15:

https://admin.fedoraproject.org/updates/FEDORA-2011-16948/picard-0.16-1.fc15

Could you test the update:

sudo yum install picard

to see if you can still reproduce the issue in 0.16?  Thanks.

Comment 5 Alex Lancaster 2012-05-08 18:57:58 UTC
Ping?

Comment 6 Fedora Update System 2012-06-04 19:23:38 UTC
picard-1.0-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/picard-1.0-1.fc17

Comment 7 Fedora Update System 2012-06-04 19:52:48 UTC
picard-1.0-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/picard-1.0-1.fc16

Comment 8 Fedora Update System 2012-06-07 02:37:51 UTC
Package picard-1.0-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing picard-1.0-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8916/picard-1.0-1.fc17
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-06-20 19:28:37 UTC
picard-1.0-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-06-20 19:30:13 UTC
picard-1.0-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.