Traceback (most recent call last):


 "/home/bar/.virtualenvs/foo/lib/python3.7/site-packages/wand/image.py", line 8762, in save

repr(filename))
TypeError: filename must be a string, not PosixPath('/media/bar/Lake_town-home.jpg')

Traceback (most recent call last):


 "ddpg.py", line 162, in <module>

playGame()


 "ddpg.py", line 52, in playGame

actor = ActorNetwork(sess, state_dim, action_dim, BATCH_SIZE, TAU, LRA)


 "/home/learning/gym_torcs/ActorNetwork.py", line 25, in __init__

self.model , self.weights, self.state = self.create_actor_network(state_size, action_size)



 "/home/learning/gym_torcs/ActorNetwork.py", line 54, in create_actor_network

V = merge([Steering,Acceleration,Brake],mode='concat')



 "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1528, in merge

name=name)


 "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1188, in __init__

self.add_inbound_node(layers, node_indices, tensor_indices)


 "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 572, in add_inbound_node

Node.create_node(self, inbound_layers, node_indices, tensor_indices)


 "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 154, in create_node

output_tensors = to_list(outbound_layer.call(input_tensors, mask=input_masks))


 "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 1275, in call

return K.concatenate(inputs, axis=self.concat_axis)


 "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 716, in concatenate

return tf.concat(axis, [to_dense(x) for x in tensors])


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1029, in concat

dtype=dtypes.int32).get_shape(


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 637, in convert_to_tensor

as_ref=False)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 702, in internal_convert_to_tensor

ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 110, in _constant_tensor_conversion_function

return constant(v, dtype=dtype, name=name)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 99, in constant

tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 367, in make_tensor_proto

_AssertCompatible(values, dtype)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible

(dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
