sherlock.py
sherlock.py copied to clipboard
AttributeError: 'Attribute' object has no attribute 'id'
sherlock gimp2curves.py
Traceback (most recent call last):
File "/usr/local/bin/sherlock", line 8, in <module>
sys.exit(execute_from_command_line())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sherlock/__init__.py", line 57, in execute_from_command_line
code = compile_script(script)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sherlock/__init__.py", line 41, in compile_script
generator = analyzer.analysis()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sherlock/codelib/analyzer/__init__.py", line 22, in analysis
self.analysis_assign_node(self.variables, node)
File "/usr/local/lib/python3.11/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 "/usr/local/lib/python3.11/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'
pip3 show sherlock.py
Location: /usr/local/lib/python3.11/site-packages
Requires: pytest
Required-by:
sherlock.py
pytest Version: 3.0.5
py Version: 1.11.0
macOS Ventura 13.3.1 Python 3.11.5
"Sherlock.py supports python version over 2.6 or 3.3. and support linux and macOS." Does this mean 3.3. or greater or only up to 3.3?