Luavis / sherlock.py

Sherlock is transpiler that translate python to shell script language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error When Running

MrBrain295 opened this issue · comments

commented

I get this error when trying to use it: Traceback (most recent call last): File "/home/gabriel/.local/bin/sherlock", line 8, in <module> sys.exit(execute_from_command_line()) File "/home/gabriel/.local/lib/python3.9/site-packages/sherlock/__init__.py", line 57, in execute_from_command_line code = compile_script(script) File "/home/gabriel/.local/lib/python3.9/site-packages/sherlock/__init__.py", line 41, in compile_script generator = analyzer.analysis() File "/home/gabriel/.local/lib/python3.9/site-packages/sherlock/codelib/analyzer/__init__.py", line 22, in analysis self.analysis_assign_node(self.variables, node) File "/home/gabriel/.local/lib/python3.9/site-packages/sherlock/codelib/analyzer/__init__.py", line 49, in analysis_assign_node variables.append(Variable(name=target.id, var_type=self.get_type(node.value))) File "/home/gabriel/.local/lib/python3.9/site-packages/sherlock/codelib/analyzer/__init__.py", line 97, in get_type return self.get_function_return_type(node.func.id, args_type) AttributeError: 'Attribute' object has no attribute 'id'.