I keep getting
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1076, in _escape_attrib
if "&" in text:
TypeError: argument of type 'int' is not iterable
when I'm trying to write an XML file with some attributes I need to edit.
Here's my code:
import xml.etree.ElementTree as ET
tree = ET.parse('TM_GeneralSettings.xml')
root = tree.getroot()
for item in root.iter('Control'):
numX = int(((720/1080)*float(item.attrib.get('LocationX'))))
numY = int(((720 / 1080) * float(item.attrib.get('LocationY'))))
numW = int(((720 / 1080) * float(item.attrib.get('SizeW'))))
numH = int(((720 / 1080) * float(item.attrib.get('SizeH'))))
print(numX, ':', numY, ':', numW, ':', numH)
item.set('LocationX', numX)
item.set('LocationY', numY)
item.set('LocationW', numW)
item.set('LocationH', numH)
tree.write('TM_GeneralSettings2.xml')
I also get this errors when I run my code:
Traceback (most recent call last):
File "/Users/alessandrochiodo/PycharmProjects/pythonProject/main.py", line 17, in <module>
tree.write('TM_GeneralSettings2.xml')
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 772, in write
serialize(write, self._root, qnames, namespaces,
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 937, in _serialize_xml
_serialize_xml(write, e, qnames, None,
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 930, in _serialize_xml
v = _escape_attrib(v)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1099, in _escape_attrib
_raise_serialization_error(text)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1053, in _raise_serialization_error
raise TypeError(
TypeError: cannot serialize 0 (type int)
Can someone help me? I can't find a solution.
I am new to odoo, while generating an invoice an error occurred like Failed to render template %r using values %r. And I have added the full trace of the error below.
Traceback (most recent call last):
File "/opt/odoo13/addons/payment/controllers/portal.py", line 104, in payment_status_poll
tx_to_process._post_process_after_done()
File "/opt/odoo13/addons/payment/models/payment_acquirer.py", line 872, in _post_process_after_done
self._reconcile_after_transaction_done()
File "/opt/odoo13/addons/sale/models/payment.py", line 112, in _reconcile_after_transaction_done
sales_orders._send_order_confirmation_mail()
File "/opt/odoo13/addons/sale/models/sale.py", line 817, in _send_order_confirmation_mail
order.with_context(force_send=True).message_post_with_template(template_id, composition_mode='comment', email_layout_xmlid="mail.mail_notification_paynow")
File "/opt/odoo13/addons/mass_mailing/models/mail_thread.py", line 37, in message_post_with_template
return super(MailThread, no_massmail).message_post_with_template(template_id, **kwargs)
File "/opt/odoo13/addons/mail/models/mail_thread.py", line 1998, in message_post_with_template
update_values = composer.onchange_template_id(template_id, kwargs['composition_mode'], self._name, res_id)['value']
File "/opt/odoo13/addons/mail/wizard/mail_compose_message.py", line 405, in onchange_template_id
values = self.generate_email_for_composer(template_id, [res_id])[res_id]
File "/opt/odoo13/addons/mail/wizard/mail_compose_message.py", line 538, in generate_email_for_composer
template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields=fields)
File "/opt/odoo13/addons/mail/models/mail_template.py", line 401, in generate_email
generated_field_values = Template._render_template(
File "/opt/odoo13/addons/mail/models/mail_template.py", line 290, in _render_template
raise UserError(_("Failed to render template %r using values %r") % (template, variables)
I run:
from nltk.corpus import framenet as fn
fn.frames()
And get the following error:
Traceback (most recent call last):
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/framenet.py", line 1308, in frame_by_name
elt = XMLCorpusView(locpath, 'frame')[0]
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/xmldocs.py", line 155, in __init__
encoding = self._detect_encoding(fileid)
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/xmldocs.py", line 166, in _detect_encoding
with open(fileid, 'rb') as infile:
NotADirectoryError: [Errno 20] Not a directory: '/Users/me/nltk_data/corpora/framenet_v17.zip/framenet_v17/frame/Abandonment.xml'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/framenet.py", line 876, in __repr__
for elt in self:
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/collections.py", line 406, in iterate_from
try: yield self._func(self._lists[0][index])
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/framenet.py", line 1407, in frame
f = self.frame_by_id(fn_fid_or_fname, ignorekeys)
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/framenet.py", line 1268, in frame_by_id
return self.frame_by_name(name, ignorekeys, check_cache=False)
File "/Users/me/anaconda3/envs/nlp/lib/python3.6/site-packages/nltk/corpus/reader/framenet.py", line 1310, in frame_by_name
raise FramenetError('Unknown frame: {0}'.format(fn_fname))
nltk.corpus.reader.framenet.FramenetError: Unknown frame: Abandonment
Both the Framenet 1.5 and 1.7 corpora are installed, according to nltk.download()
I have these "json" files that I like to insert into my mongodb database.
An example of one is:
http://s.live.ksmobile.net/cheetahlive/de/ff/15201023827214369775/15201023827214369775.json
The problem is, that it is formated like this:
{ "channelType":"TEMPGROUP", ... } # line 1
{ "channelType":"TEMPGROUP", ... } # line 2
So instead of inserting it as 1 document in the DB, it insert every single line as 1 entry. That ends up with what should be 3 documents from 3 "json" files in the database become 1189 documents in the database instead.
How can I insert the whole content of the ".json" into one document?
My code is:
replay_url = "http://live.ksmobile.net/live/getreplayvideos?"
userid = 969730808384462848
url2 = replay_url + urllib.parse.urlencode({'userid': userid}) + '&page_size=1000'
raw_replay_data = requests.get(url2).json()
for i in raw_replay_data['data']['video_info']:
url3 = i['msgfile']
raw_message_data = urllib.request.urlopen(url3)
for line in raw_message_data:
json_data = json.loads(line)
messages.insert_one(json_data)
print(json_data)
Update to give more information to answer
messages.insert(json_data) gives this error:
Traceback (most recent call last):
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/collection.py", line 633, in _insert
blk.execute(concern, session=session)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/bulk.py", line 432, in execute
return self.execute_command(generator, write_concern, session)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/bulk.py", line 329, in execute_command
raise BulkWriteError(full_result)
pymongo.errors.BulkWriteError: batch op errors occurred
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/import_messages_dev.py", line 43, in <module>
messages.insert(json_data)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/collection.py", line 2941, in insert
check_keys, manipulate, write_concern)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/collection.py", line 635, in _insert
_raise_last_error(bwe.details)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/helpers.py", line 220, in _raise_last_error
_raise_last_write_error(write_errors)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/helpers.py", line 188, in _raise_last_write_error
raise DuplicateKeyError(error.get("errmsg"), 11000, error)
pymongo.errors.DuplicateKeyError: E11000 duplicate key error index: liveme.messages.$_id_ dup key: { : ObjectId('5aa2fc6f5d60126499060949') }
messages.insert_one(json_data) gives me this error:
Traceback (most recent call last):
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/import_messages_dev.py", line 43, in <module>
messages.insert_one(json_data)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/collection.py", line 676, in insert_one
common.validate_is_document_type("document", document)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/common.py", line 434, in validate_is_document_type
"collections.MutableMapping" % (option,))
TypeError: document must be an instance of dict, bson.son.SON, bson.raw_bson.RawBSONDocument, or a type that inherits from collections.MutableMapping
messages.insert_many(json_data) gives me this error:
Traceback (most recent call last):
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/import_messages_dev.py", line 43, in <module>
messages.insert_many(json_data)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/collection.py", line 742, in insert_many
blk.execute(self.write_concern.document, session=session)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/bulk.py", line 432, in execute
return self.execute_command(generator, write_concern, session)
File "/media/anon/06bcf743-8b4d-409f-addc-520fc4e19299/PycharmProjects/LiveMe/venv1/lib/python3.6/site-packages/pymongo/bulk.py", line 329, in execute_command
raise BulkWriteError(full_result)
pymongo.errors.BulkWriteError: batch op errors occurred
messages.insert and messages.insert_many both insert 1 line and throw the error.
These files obviously do not contain properly formatted json - rather they contain a separate object on each line.
To turn them into valid json, you probably want a list of objects, i.e.:
[{ "channelType":"TEMPGROUP", ... },
{ "channelType":"TEMPGROUP", ... }]
You can achieve this by doing:
for i in raw_replay_data['data']['video_info']:
url3 = i['msgfile']
raw_message_data = urllib.request.urlopen(url3)
json_data = []
for line in raw_message_data:
json_data.append(json.loads(line))
messages.insert_one(json_data)
print(json_data)
I have a simple matrix called timeseries:
[1,2,3,4,5]
[6,7,8,9,10]
[1,3,5,7,9]
[2,4,6,8,10]
I wanna perform RNN model.train_on_batch(timeseries[:,0:1], timeseries[:, 1]),
but it gave me the error list index out of range
The network I build is like this
model = Sequential()
if args.layers == 1:
model.add(LSTM(args.neurons, batch_input_shape=(num_timeseries, 1, num_dims), return_sequences=False, stateful=True))
else:
model.add(LSTM(args.neurons, batch_input_shape=(num_timeseries, 1, num_dims), return_sequences=True, stateful=True))
for i in range(args.layers - 2):
model.add(LSTM(args.neurons, return_sequences=True, stateful=True))
model.add(LSTM(args.neurons, return_sequences=False, stateful=True))
num_mixture_components = args.mixture_components
model.add(Dense((num_dims + 2) * num_mixture_components))
model.add(GMMActivation(num_mixture_components))
model.compile(loss=gmm_loss, optimizer=RMSprop(lr=args.learning_rate))
The error log is
ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(use_c_ger,use_c_gemv)
ERROR (theano.gof.opt): node: Gemv{no_inplace}(AllocEmpty{dtype='float32'}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{0.0})
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1922, in process_node
replacements = lopt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1309, in transform
new_repl = opt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas_c.py", line 674, in use_c_gemv
if not config.blas.ldflags:
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: list index out of range
ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(use_c_ger,use_c_gemv)
ERROR (theano.gof.opt): node: Gemv{no_inplace}(AllocEmpty{dtype='float32'}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{0.0})
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1922, in process_node
replacements = lopt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1309, in transform
new_repl = opt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas_c.py", line 674, in use_c_gemv
if not config.blas.ldflags:
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: list index out of range
ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(use_c_ger,use_c_gemv)
ERROR (theano.gof.opt): node: Gemv{no_inplace}(AllocEmpty{dtype='float32'}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{0.0})
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1922, in process_node
replacements = lopt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1309, in transform
new_repl = opt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas_c.py", line 674, in use_c_gemv
if not config.blas.ldflags:
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: list index out of range
ERROR (theano.gof.opt): Optimization failure due to: LocalOptGroup(use_c_ger,use_c_gemv)
ERROR (theano.gof.opt): node: Gemv{no_inplace}(AllocEmpty{dtype='float32'}.0, TensorConstant{1.0}, InplaceDimShuffle{1,0}.0, Reshape{1}.0, TensorConstant{0.0})
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1922, in process_node
replacements = lopt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1309, in transform
new_repl = opt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas_c.py", line 674, in use_c_gemv
if not config.blas.ldflags:
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: list index out of range
ERROR (theano.gof.opt): Optimization failure due to: Elemwise{sub,no_inplace}(z, Elemwise{mul,no_inplace}(alpha subject to <function <lambda> at 0x10afdb5f0>, SparseDot(x, y))) -> Usmm{no_inplace}(Elemwise{neg,no_inplace}(alpha), x, y, z)
ERROR (theano.gof.opt): node: Elemwise{sub,no_inplace}(Elemwise{add,no_inplace}.0, Elemwise{mul,no_inplace}.0)
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1922, in process_node
replacements = lopt.transform(node)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1673, in transform
self.pdb)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1631, in match
u = match(p, v, u, self.allow_multiple_clients)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1631, in match
u = match(p, v, u, self.allow_multiple_clients)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/opt.py", line 1642, in match
if constraint(expr):
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/sparse/opt.py", line 883, in <lambda>
theano.config.blas.ldflags)},
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: list index out of range
Traceback (most recent call last):
File "RNN_test.py", line 101, in <module>
results = model.train_on_batch(timeseries[:,i:i+1], timeseries[:, i])
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/keras/models.py", line 712, in train_on_batch
class_weight=class_weight)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/keras/engine/training.py", line 1220, in train_on_batch
self._make_train_function()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/keras/engine/training.py", line 703, in _make_train_function
**self._function_kwargs)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 727, in function
return Function(inputs, outputs, updates=updates, **kwargs)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/keras/backend/theano_backend.py", line 713, in __init__
**kwargs)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/compile/function.py", line 326, in function
output_keys=output_keys)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/compile/pfunc.py", line 486, in pfunc
output_keys=output_keys)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/compile/function_module.py", line 1784, in orig_function
defaults)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/compile/function_module.py", line 1651, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/link.py", line 699, in make_thunk
storage_map=storage_map)[:3]
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/vm.py", line 1057, in make_all
impl=impl))
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/op.py", line 924, in make_thunk
no_recycling)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/op.py", line 828, in make_c_thunk
output_storage=node_output_storage)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/cc.py", line 1190, in make_thunk
keep_lock=keep_lock)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/cc.py", line 1131, in __compile__
keep_lock=keep_lock)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/cc.py", line 1578, in cthunk_factory
key = self.cmodule_key()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/cc.py", line 1268, in cmodule_key
compile_args=self.compile_args(),
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/gof/cc.py", line 944, in compile_args
ret += x.c_compile_args()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas.py", line 501, in c_compile_args
return ldflags(libs=False, flags=True)
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/tensor/blas.py", line 381, in ldflags
ldflags_str = theano.config.blas.ldflags
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configparser.py", line 328, in __get__
val_str = self.default()
File "/Users/LaurenceLuo/anaconda/lib/python2.7/site-packages/theano/configdefaults.py", line 1258, in default_blas_ldflags
lib_path = blas_info.get('library_dirs', [])[0]
IndexError: ('The following error happened while compiling the node', Dot22(InplaceDimShuffle{0,x}.0, lstm_1_W_o), '\n', 'list index out of range')
Thank you!