Traceback (most recent call last):


 "/usr/bin/beet", line 11, in <module>

load_entry_point('beets==1.4.4', 'console_scripts', 'beet')()


 "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1209, in main

_raw_main(args)


 "/usr/lib/python3.6/site-packages/beets/ui/__init__.py", line 1196, in _raw_main

subcommand.func(lib, suboptions, subargs)


 "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 930, in import_func

import_files(lib, paths, query)


 "/usr/lib/python3.6/site-packages/beets/ui/commands.py", line 907, in import_files

session.run()


 "/usr/lib/python3.6/site-packages/beets/importer.py", line 325, in run

pl.run_parallel(QUEUE_SIZE)


 "/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])


 "/usr/lib/python3.6/site-packages/six.py", line 686, in reraise

raise value


 "/usr/lib/python3.6/site-packages/beets/util/pipeline.py", line 358, in run

self.coro.send(msg)


 "/usr/lib/python3.6/site-packages/beets/util/pipeline.py", line 171, in coro

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


 "/usr/lib/python3.6/site-packages/beets/importer.py", line 1422, in manipulate_files

session=session,


 "/usr/lib/python3.6/site-packages/beets/importer.py", line 692, in manipulate_files

plugins.send('import_task_files', session=session, task=self)


 "/usr/lib/python3.6/site-packages/beets/plugins.py", line 452, in send

result = handler(**arguments)


 "/usr/lib/python3.6/site-packages/beets/plugins.py", line 124, in wrapper

return func(*args, **kwargs)


 "/usr/lib/python3.6/site-packages/beetsplug/fetchart.py", line 814, in assign_art

self._set_art(task.album, candidate, not self.src_removed)


 "/usr/lib/python3.6/site-packages/beetsplug/fetchart.py", line 799, in _set_art

album.set_art(candidate.path, delete)


 "/usr/lib/python3.6/site-packages/beets/library.py", line 1133, in set_art

plugins.send('art_set', album=self)


 "/usr/lib/python3.6/site-packages/beets/plugins.py", line 452, in send

result = handler(**arguments)


 "/usr/lib/python3.6/site-packages/beets/plugins.py", line 124, in wrapper

return func(*args, **kwargs)


 "/usr/lib/python3.6/site-packages/beetsplug/thumbnails.py", line 132, in process_album

wrote &= self.make_cover_thumbnail(album, 256, LARGE_DIR)


 "/usr/lib/python3.6/site-packages/beetsplug/thumbnails.py", line 144, in make_cover_thumbnail

target = os.path.join(target_dir, self.thumbnail_file_name(album.path))


 "/usr/lib/python3.6/site-packages/beetsplug/thumbnails.py", line 166, in thumbnail_file_name

hash = md5(uri.encode('utf-8')).hexdigest()
AttributeError: 'bytes' object has no attribute 'encode'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 503, in handle_request

response = await response


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)


 "/src/apps/utils/log.py", line 34, in decorated_function

return await f(*args, **kwargs)


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)

...


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)


 "/usr/local/lib/python3.6/site-packages/gino/crud.py", line 184, in get

return await cls.__metadata__.first(clause, bind=bind)


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)


 "/usr/local/lib/python3.6/site-packages/gino/api.py", line 207, in first

conn, clause, *multiparams, **params)


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)


 "/usr/local/lib/python3.6/site-packages/gino/dialect.py", line 240, in do_first

connection, clause, multiparams, params)


 "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__

return self.gen.send(None)


 "/usr/local/lib/python3.6/site-packages/gino/dialect.py", line 226, in _execute_clauseelement

item = context.process_rows(rows, return_model=return_model)


 "/usr/local/lib/python3.6/site-packages/gino/dialect.py", line 107, in process_rows

rv = rows = self.get_result_proxy().process_rows(rows)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 877, in get_result_proxy

return result.ResultProxy(self)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 653, in __init__

self._init_metadata()


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 682, in _init_metadata

self._metadata = ResultMetaData(self, cursor_description)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 215, in __init__

num_ctx_cols, cols_are_ordered, textual_ordered)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 379, in _merge_cursor_description

in enumerate(result_columns)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 378, in <listcomp>

) for idx, (key, name, obj, type_)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 840, in get_result_processor

return type_._cached_result_processor(self.dialect, coltype)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 472, in _cached_result_processor

d[coltype] = rp = d['impl'].result_processor(dialect, coltype)


 "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/sqltypes.py", line 596, in result_processor

'storage.' % (dialect.name, dialect.driver))
AttributeError: 'AsyncpgDialect' object has no attribute 'driver'
