Constant crashes in the importer

I’m not sure what I’m doing wrong here. Every 5-6 entries in a bone plain import command results in a crash that looks like the below. When I resume, and put the exact same option in - it accepts it and moves on. I do not know how to interpret this trace, and searches for the Attribute Error or other text from the trace on this forum did not reveal anything helpful.

Every crash has the following at the bottom:
AttributeError: module ‘re’ has no attribute ‘_pattern_type’

The traceback:
Artist: A-Team

Album:

Finding tags for album “A-Team - Intensity”.

Candidates:

  1. Exercise One - Intensity ( 50.0% ) (artist, tracks, missing tracks, …) (12" Vinyl, 2008, DE, Mobilee)

  2. Art Pepper - Intensity ( 31.2% ) (missing tracks, artist, tracks, …) (CD, 2006, JP, Contemporary)

  3. Art Pepper - Intensity ( 29.4% ) (missing tracks, artist, tracks, …) (CD, 1991, US, Original Jazz Classics)

  4. Art Pepper - Intensity ( 29.1% ) (missing tracks, artist, tracks, …) (CD, 1997, JP, Contemporary)

  5. The Bambi Molesters - Intensity! ( 21.4% ) (missing tracks, artist, tracks, …) (CD, 1999, HR, Dancing Bear)

selection (default 1 ), S kip, U se as-is, as T racks, G roup albums,

E nter search, enter I d, a B ort? u

Traceback (most recent call last):

File “/Library/Frameworks/Python.framework/Versions/3.7/bin/beet”, line 11, in <module>

load_entry_point(‘beets==1.4.7’, ‘console_scripts’, ‘beet’)()

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/init.py”, line 1256, in main

_raw_main(args)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/init.py”, line 1243, in _raw_main

subcommand.func(lib, suboptions, subargs)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/commands.py”, line 943, in import_func

import_files(lib, paths, query)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/commands.py”, line 913, in import_files

session.run()

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 329, in run

pl.run_parallel(QUEUE_SIZE)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 445, in run_parallel

six.reraise(exc_info[0], exc_info[1], exc_info[2])

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/six.py”, line 693, in reraise

raise value

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 312, in run

out = self.coro.send(msg)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 194, in coro

func(*(args + (task,)))

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 1351, in lookup_candidates

task.lookup_candidates()

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 641, in lookup_candidates

autotag.tag_album(self.items, search_ids=self.search_ids)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 461, in tag_album

_add_candidate(items, candidates, matched_candidate)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 377, in _add_candidate

dist = distance(items, info, mapping)

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 191, in distance

dist.add_equality(‘media’, album_info.media, likelies[‘media’])

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/hooks.py”, line 461, in add_equality

if self._eq(opt, value):

File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/hooks.py”, line 436, in _eq

if isinstance(value1, re._pattern_type):

AttributeError: module ‘re’ has no attribute ‘_pattern_type’

Okay now I can’t even resume. After I posted this I resumed 3-4 more times to try to slog through things, and it kept crashing more and more. Now - it won’t even let me resume, I get the same error every time I try to resume:

Michaels-MBP:Beets mike$ beet import /Volumes/BackupMania/Amazon\ Music\ Backup
Import of the directory:
/Volumes/BackupMania/Amazon Music Backup
was interrupted. Resume (Y/n)? y
Resuming interrupted import of /Volumes/BackupMania/Amazon Music Backup
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/bin/beet”, line 11, in
load_entry_point(‘beets==1.4.7’, ‘console_scripts’, ‘beet’)()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/init.py”, line 1256, in main
_raw_main(args)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/init.py”, line 1243, in _raw_main
subcommand.func(lib, suboptions, subargs)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/commands.py”, line 943, in import_func
import_files(lib, paths, query)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/ui/commands.py”, line 913, in import_files
session.run()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 329, in run
pl.run_parallel(QUEUE_SIZE)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 445, in run_parallel
six.reraise(exc_info[0], exc_info[1], exc_info[2])
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/six.py”, line 693, in reraise
raise value
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 312, in run
out = self.coro.send(msg)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/util/pipeline.py”, line 194, in coro
func(*(args + (task,)))
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 1351, in lookup_candidates
task.lookup_candidates()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/importer.py”, line 641, in lookup_candidates
autotag.tag_album(self.items, search_ids=self.search_ids)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 461, in tag_album
_add_candidate(items, candidates, matched_candidate)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 377, in _add_candidate
dist = distance(items, info, mapping)
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/match.py”, line 191, in distance
dist.add_equality(‘media’, album_info.media, likelies[‘media’])
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/hooks.py”, line 461, in add_equality
if self._eq(opt, value):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beets/autotag/hooks.py”, line 436, in _eq
if isinstance(value1, re._pattern_type):
AttributeError: module ‘re’ has no attribute ‘_pattern_type’

Sorry; this is a Python 3.7 problem we fixed recently:

The fix should be out posthaste; or you can try running the latest source if you like (which already has the fix).

Sweet! Latest source has me up and running again. Thanks!