{"action":"created","issue":{"url":"https://api.github.com/repos/sampsyo/beets/issues/1232","labels_url":"https://api.github.com/repos/sampsyo/beets/issues/1232/labels{/name}","comments_url":"https://api.github.com/repos/sampsyo/beets/issues/1232/comments","events_url":"https://api.github.com/repos/sampsyo/beets/issues/1232/events","html_url":"https://github.com/sampsyo/beets/issues/1232","id":54654309,"number":1232,"title":"ZeroDivisionError: integer division or modulo by zero","user":{"login":"arogl","id":1115472,"avatar_url":"https://avatars.githubusercontent.com/u/1115472?v=3","gravatar_id":"","url":"https://api.github.com/users/arogl","html_url":"https://github.com/arogl","followers_url":"https://api.github.com/users/arogl/followers","following_url":"https://api.github.com/users/arogl/following{/other_user}","gists_url":"https://api.github.com/users/arogl/gists{/gist_id}","starred_url":"https://api.github.com/users/arogl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogl/subscriptions","organizations_url":"https://api.github.com/users/arogl/orgs","repos_url":"https://api.github.com/users/arogl/repos","events_url":"https://api.github.com/users/arogl/events{/privacy}","received_events_url":"https://api.github.com/users/arogl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sampsyo/beets/labels/needinfo","name":"needinfo","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-17T07:30:34Z","updated_at":"2015-01-17T21:52:27Z","closed_at":null,"body":"With threaded set to yes I get the following error:\r\n\r\nplugins: chroma discogs lastgenre mbsync fetchart embedart replaygain duplicates missing info scrub zero fromfilename amazon\r\n\r\n```\r\nC:\\>beet -v import \\\\?\\F:\\Music\r\nuser configuration: C:\\Users\\Andrew\\AppData\\Roaming\\beets\\config.yaml\r\ndata directory: C:\\Users\\Andrew\\AppData\\Roaming\\beets\r\nSending event: pluginload\r\nin init Searching amazon\r\nlibrary database: C:\\Users\\Andrew\\AppData\\Roaming\\beets\\library.db\r\nlibrary directory: F:\\Music\\\r\nSending event: library_opened\r\nSending event: import_begin\r\nImport of the directory:\r\nF:\\Music\r\nwas interrupted. Resume (Y/n)?\r\nSkipping previously-imported path:\r\n```\r\n\r\nAbove about 4000 dirs\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"D:\\Python27\\Scripts\\beet-script.py\", line 9, in <module>\r\n    load_entry_point('beets==1.3.10', 'console_scripts', 'beet')()\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\__init__.py\", line 945, in main\r\n    _raw_main(args)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\__init__.py\", line 935, in _raw_main\r\n    subcommand.func(lib, suboptions, subargs)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\commands.py\", line 873, in import_func\r\n    import_files(lib, paths, query)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\commands.py\", line 845, in import_files\r\n    session.run()\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\importer.py\", line 305, in run\r\n    pl.run_parallel(QUEUE_SIZE)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\util\\pipeline.py\", line 299, in run\r\n    out = self.coro.send(msg)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\util\\pipeline.py\", line 158, in coro\r\n    task = func(*(args + (task,)))\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\importer.py\", line 1212, in user_query\r\n    resolve_duplicates(session, task)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\importer.py\", line 1224, in resolve_duplicates\r\n    session.resolve_duplicate(task, found_duplicates)\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\commands.py\", line 781, in resolve_duplicate\r\n    not task.is_album,\r\n  File \"D:\\python27\\lib\\site-packages\\beets\\ui\\commands.py\", line 439, in summarize_items\r\n    average_bitrate = sum([item.bitrate for item in items]) / len(items)\r\nZeroDivisionError: integer division or modulo by zero\r\n```\r\n\r\nWhn I clean up the log it is difficult to determine which album is causing the error.\r\n\r\nSetting threaded to no, I do not get the error. \r\n\r\nI can post/email cleaned up logs if required."},"comment":{"url":"https://api.github.com/repos/sampsyo/beets/issues/comments/70385955","html_url":"https://github.com/sampsyo/beets/issues/1232#issuecomment-70385955","issue_url":"https://api.github.com/repos/sampsyo/beets/issues/1232","id":70385955,"user":{"login":"arogl","id":1115472,"avatar_url":"https://avatars.githubusercontent.com/u/1115472?v=3","gravatar_id":"","url":"https://api.github.com/users/arogl","html_url":"https://github.com/arogl","followers_url":"https://api.github.com/users/arogl/followers","following_url":"https://api.github.com/users/arogl/following{/other_user}","gists_url":"https://api.github.com/users/arogl/gists{/gist_id}","starred_url":"https://api.github.com/users/arogl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogl/subscriptions","organizations_url":"https://api.github.com/users/arogl/orgs","repos_url":"https://api.github.com/users/arogl/repos","events_url":"https://api.github.com/users/arogl/events{/privacy}","received_events_url":"https://api.github.com/users/arogl/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T21:52:27Z","updated_at":"2015-01-17T21:52:27Z","body":"Gist for failing run:\r\nhttps://gist.github.com/arogl/e73041f17302bb28eb2e\r\n\r\nGist for successful single threaded run:\r\nhttps://gist.github.com/arogl/f636d9570ecd3c7c0c2f\r\n\r\nI think the album is Lily & Madeline."}}