Traceback (most recent call last):


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/execute.py", line 334, in <module>

train()


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/execute.py", line 151, in train

model = create_model(sess, False)


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/execute.py", line 113, in create_model

forward_only=forward_only)


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/seq2seq_model_tf.py", line 181, in __init__

softmax_loss_function=softmax_loss_function)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1206, in model_with_buckets

decoder_inputs[:bucket[1]])


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/seq2seq_model_tf.py", line 180, in <lambda>

lambda x, y: seq2seq_f(x, y, False),


 "/Users/<username>/PycharmProjects/tensorflow_chatbot/seq2seq_model_tf.py", line 144, in seq2seq_f

dtype=dtype)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 848, in embedding_attention_seq2seq

encoder_cell = copy.deepcopy(cell)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 174, in deepcopy

y = copier(memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 476, in __deepcopy__

setattr(result, k, copy.deepcopy(v, memo))


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 230, in _deepcopy_list

y.append(deepcopy(a, memo))


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 230, in _deepcopy_list

y.append(deepcopy(a, memo))


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 230, in _deepcopy_list

y.append(deepcopy(a, memo))


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 237, in _deepcopy_tuple

y.append(deepcopy(a, memo))


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 334, in _reconstruct

state = deepcopy(state, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 163, in deepcopy

y = copier(x, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 257, in _deepcopy_dict

y[deepcopy(key, memo)] = deepcopy(value, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 190, in deepcopy

y = _reconstruct(x, rv, 1, memo)


 "/Users/<username>/anaconda/envs/tensorflow_source_gpu/lib/python2.7/copy.py", line 343, in _reconstruct

y.__dict__.update(state)
AttributeError: 'NoneType' object has no attribute 'update'

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py", line 128, in handle_call_service

connection.context(msg),


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1235, in async_call

await asyncio.shield(self._execute_service(handler, service_call))


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1260, in _execute_service

await handler.func(service_call)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 210, in handle_service

self._platforms.values(), func, call, service_name, required_features


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 334, in entity_service_call

future.result()
# pop exception if have


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 356, in _handle_service_platform_call

await getattr(entity, func)(**data)


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/yeelight/light.py", line 598, in turn_off

self.device.turn_off(duration=duration, light_type=self.light_type)


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/yeelight/__init__.py", line 269, in turn_off

self.bulb.turn_off(duration=duration, light_type=light_type)


 "<decorator-gen-8>", line 2, in turn_off


 "/srv/homeassistant/lib/python3.6/site-packages/yeelight/main.py", line 114, in _command

result = self.send_command(method, params).get("result", [])


 "/srv/homeassistant/lib/python3.6/site-packages/yeelight/main.py", line 413, in send_command

self.__socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
