04-08-2021, 09:30 AM
I often getting errors in my custom scripts, but the stacktrace from it seems to be useless. Exmple:
invalid syntax (memory:0x7fb72f3bb190, line 19)
Is there a way to get any info about the place of custom script code where error apears?
invalid syntax (memory:0x7fb72f3bb190, line 19)
Code:
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 281, in execute
self2.results = exec_meth(self, ticket, meth, args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 315, in exec_meth
results = meth(self, ticket, *args)
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5691, in execute_python_script
Command.execute_cmd(cmd)
File "/opt/tactic/tactic/src/pyasm/command/command.py", line 267, in execute_cmd
ret_val = cmd.execute()
File "/opt/tactic/tactic/src/tactic/command/python_cmd.py", line 106, in execute
results = self.get_results()
File "/opt/tactic/tactic/src/tactic/command/python_cmd.py", line 88, in get_results
print(exceptions.text_error_template().render())
File "/opt/tactic/tactic/3rd_party/common/site-packages/mako/exceptions.py", line 236, in text_error_template
return mako.template.Template(r"""
File "/opt/tactic/tactic/3rd_party/common/site-packages/mako/template.py", line 320, in __init__
(code, module) = _compile_text(self, text, filename)
File "/opt/tactic/tactic/3rd_party/common/site-packages/mako/template.py", line 711, in _compile_text
code = compile(source, cid, 'exec')