-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running beets import #2437
Comments
Thanks! It looks like the Google backend didn't move to Requests, which made errors leak through. Can you please give the above change a try to see if it fixes the problem? For future reference, the first couple of gray boxes in the template up there are meant to hold the command you ran and the output you got. You've pasted the traceback at the bottom, which is fine for this particular report, but in the future, please include all the details—including the command you ran and the full output. |
Made the fixes as suggested to the relevant files. Everything seems to be in order now. |
Actually wait, something is coming up. Tagging:
A Tribe Called Quest - The Low End Theory
URL:
https://musicbrainz.org/release/e2b51264-ab8f-4168-849d-738e703ac24e
(Similarity: 98.2%) (unmatched tracks, tracks) (CD, 1991, XE, Jive)
* Buggin' Out -> Buggin’ Out
* Verses From The Abstract -> Verses From the Abstract
* Vibes Anf Stuff -> Vibes and Stuff (title)
* Check The Rhime -> Check the Rhime
* Jazz (We've Got) -> Jazz (We’ve Got)
Unmatched tracks (1):
! Check The Rhime (Mr. Muhammad's Mix) (Bonus Track Only Japan Edition) (#15) (3:39)
[A]pply, More candidates, Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort, eDit, edit Candidates? A
This album is already in the library!
Old: 14 items, MP3, 320kbps, 48:05, 110.3 MiB
New: 14 items, MP3, 320kbps, 48:05, 110.3 MiB
[S]kip new, Keep both, Remove old? R
Traceback (most recent call last):
File "/usr/bin/beet", line 11, in <module>
load_entry_point('beets==1.4.4', 'console_scripts', 'beet')()
File "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1209, in main
_raw_main(args)
File "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1196, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 930, in import_func
import_files(lib, paths, query)
File "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 907, in import_files
session.run()
File "/usr/lib/python3.6/site-packages/beets/importer.py", line 319, in run
pl.run_parallel(QUEUE_SIZE)
File "/usr/lib/python3.6/site-packages/beets/util/pipeline.py", line 445, in run_parallel
six.reraise(exc_info[0], exc_info[1], exc_info[2])
File "/usr/lib/python3.6/site-packages/six.py", line 686, in reraise
raise value
File "/usr/lib/python3.6/site-packages/beets/util/pipeline.py", line 312, in run
out = self.coro.send(msg)
File "/usr/lib/python3.6/site-packages/beets/util/pipeline.py", line 194, in coro
func(*(args + (task,)))
File "/usr/lib/python3.6/site-packages/beets/importer.py", line 1392, in plugin_stage
func(session, task)
File "/usr/lib/python3.6/site-packages/beets/plugins.py", line 124, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 706, in imported
False, self.config['force'])
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 718, in fetch_item_lyrics
lyrics = [self.get_lyrics(artist, title) for title in titles]
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 718, in <listcomp>
lyrics = [self.get_lyrics(artist, title) for title in titles]
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 751, in get_lyrics
lyrics = backend.fetch(artist, title)
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 567, in fetch
data = json.loads(data)
File "/usr/lib/python3.6/json/__init__.py", line 348, in loads
'not {!r}'.format(s.__class__.__name__))
TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' |
(while running |
@sampsyo looks like the issue is right here: File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 751, in get_lyrics
lyrics = backend.fetch(artist, title)
File "/usr/lib/python3.6/site-packages/beetsplug/lyrics.py", line 567, in fetch
data = json.loads(data)
File "/usr/lib/python3.6/json/__init__.py", line 348, in loads
'not {!r}'.format(s.__class__.__name__))
TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' |
Oops; thanks for trying this! I've just pushed one more change. If you like, you can try running the latest source using instructions that can be found in the FAQ. |
Seems to work fine now! |
Great! Thanks again for reporting. |
Problem
(Describe your problem, feature request, or discussion topic here. If you're reporting a bug, please fill out this and the "Setup" section below. Otherwise, you can delete them.)
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is:This is the bug encountered:
The text was updated successfully, but these errors were encountered: