Traceback (most recent call last):


 "/usr/lib/python3.5/site-packages/mock/mock.py", line 1305, in patched

return func(*args, **keywargs)


 "/home/abuild/beets/test/test_mbsync.py", line 64, in test_update_library

self.run_command('mbsync')


 "/home/abuild/beets/test/helper.py", line 445, in run_command

beets.ui._raw_main(_convert_args(list(args)), lib)


 "../beets/ui/__init__.py", line 1196, in _raw_main

subcommand.func(lib, suboptions, subargs)


 "/home/abuild/beets/beetsplug/mbsync.py", line 72, in func

self.albums(lib, query, move, pretend, write)


 "/home/abuild/beets/beetsplug/mbsync.py", line 149, in albums

item_changed = ui.show_model_changes(item)


 "../beets/ui/__init__.py", line 714, in show_model_changes

print_(format(old))


 "../beets/ui/__init__.py", line 143, in print_

sys.stdout.write(txt)
ValueError: underlying buffer has been detached

Traceback (most recent call last):


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1994, in __call__

return self.wsgi_app(environ, start_response)


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app

response = self.handle_exception(e)


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception

reraise(exc_type, exc_value, tb)


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/mnt/betago/.betago/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/mnt/betago/betago/betago/model.py", line 54, in next_move

bot_row, bot_col = self.bot.select_move('b')


 "/mnt/betago/betago/betago/model.py", line 110, in select_move

self._move_generator(bot_color))


 "/mnt/betago/betago/betago/model.py", line 219, in get_first_valid_move

for move in move_generator:


 "/mnt/betago/betago/betago/model.py", line 134, in _model_moves

pred = np.squeeze(self.model.predict(X))


 "/mnt/betago/.betago/lib/python2.7/site-packages/keras/models.py", line 724, in predict

return self.model.predict(x, batch_size=batch_size, verbose=verbose)


 "/mnt/betago/.betago/lib/python2.7/site-packages/keras/engine/training.py", line 1265, in predict

self._make_predict_function()


 "/mnt/betago/.betago/lib/python2.7/site-packages/keras/engine/training.py", line 799, in _make_predict_function

**kwargs)


 "/mnt/betago/.betago/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1918, in function

return Function(inputs, outputs, updates=updates)


 "/mnt/betago/.betago/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1876, in __init__

with tf.control_dependencies(self.outputs):


 "/mnt/betago/.betago/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3487, in control_dependencies

return get_default_graph().control_dependencies(control_inputs)


 "/mnt/betago/.betago/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3218, in control_dependencies

c = self.as_graph_element(c)


 "/mnt/betago/.betago/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2318, in as_graph_element

return self._as_graph_element_locked(obj, allow_tensor, allow_operation)


 "/mnt/betago/.betago/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2397, in _as_graph_element_locked

raise ValueError("Tensor %s is not an element of this graph." % obj)
ValueError: Tensor Tensor("Softmax:0", shape=(?, 361), dtype=float32) is not an element of this graph.
