Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Attribute' object has no attribute 'id' #5

Open
PacoH opened this issue Oct 21, 2023 · 0 comments
Open

AttributeError: 'Attribute' object has no attribute 'id' #5

PacoH opened this issue Oct 21, 2023 · 0 comments

Comments

@PacoH
Copy link

PacoH commented Oct 21, 2023

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

gimp2curves.py.zip

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant