Please help newbee get started - Bash shell on Windows


I installed beets/Python on Windows. Installation seemed to go fine. Running in a Windows Cmd window displays a lot of garbage characters, so I am trying to run beets now in a Bash shell.
“beet --version” displays:

    beets version 1.4.7
    Python version 3.7.2
   plugins: fetchart 

My config is:

    directory: D:/tmp/MUSIC
    library: D:/tmp/MUSIC/musiclibrary.db
        copy: no
        log: beetslog.txt
    art_filename: cover
    plugins: fetchart

I put some sample music in D:/tmp/MUSIC
When I run: "beet import “/d/tmp/MUSIC” in the Bash shell, I get a Traceback displayed (see below).
If I run it in a Windows CMD, it appears to start working and correcting tags, but it displays too many garbage characters.

UPDATE: I installed ComEmu and it works now in it’s terminal window. I would still be interested in knowing why it doesn’t work in Bash and what the Traceback below means.

Traceback (most recent call last):
File “C:\Users\johnp\AppData\Local\Programs\Python\Python37-32\Scripts\”, line 11, in
load_entry_point(‘beets==1.4.7’, ‘console_scripts’, ‘beet’)()
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\”, line 1256, in main
File "c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\ui_init
.py", line 1243, in _raw_main
subcommand.func(lib, suboptions, subargs)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\ui\”, line 943, in import_func
import_files(lib, paths, query)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\ui\”, line 913, in import_files
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\”, line 329, in run
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\util\”, line 445, in run_parallel
six.reraise(exc_info[0], exc_info[1], exc_info[2])
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\”, line 693, in reraise
raise value
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\util\”, line 312, in run
out = self.coro.send(msg)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\util\”, line 194, in coro
func(*(args + (task,)))
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\”, line 1351, in lookup_candidates
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\”, line 641, in lookup_candidates
autotag.tag_album(self.items, search_ids=self.search_ids)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\autotag\”, line 432, in tag_album
_add_candidate(items, candidates, id_info)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\autotag\”, line 377, in _add_candidate
dist = distance(items, info, mapping)
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\autotag\”, line 246, in distance
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\autotag\”, line 461, in add_equality
if self._eq(opt, value):
File “c:\users\johnp\appdata\local\programs\python\python37-32\lib\site-packages\beets\autotag\”, line 436, in _eq
if isinstance(value1, re._pattern_type):
AttributeError: module ‘re’ has no attribute ‘_pattern_type’


Hi! We have an unreleased fix for this—if you can, please run from source (there are instructions in the FAQ) until the new version is out (which will, hopefully, be very soon).


Thanks adrian! This appears to be working OK now. Since I’m a newbee, I still need to learn HOW to use beets. But at least it is not giving a Traceback nor displaying garbage characters in Bash.