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] "Call" object has no attribute "id" #2038

Closed
1 task done
prakashjayy opened this issue Feb 14, 2020 · 2 comments · Fixed by #2041
Closed
1 task done

[AttributeError] "Call" object has no attribute "id" #2038

prakashjayy opened this issue Feb 14, 2020 · 2 comments · Fixed by #2041
Assignees
Labels
kind/bug Something isn't working as expected

Comments

@prakashjayy
Copy link

  • [x ] I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • [x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Ubuntu 16.04

  • Poetry version: 1.0.3

The following command is throwing error

pip add -vvv git+https://github.com/Prakashvanapalli/mmdetection.git 

error:

[AttributeError]
'Call' object has no attribute 'id'

In the debug mode, I see the following changes have been made from 1.0.2 to 1.0.3

  • previously it was
if not isinstance(func, ast.Name):
    continue 
if func.id != "setup":
    continue
  • Now it was
if not (isinstance(func, ast.Name) and func.id == "setup") and not (
    isinstance(func, ast.Attribute)
    and func.value.id == "setuptools"
    and func.attr == "setup"
):
    continue

when I changed the code to the old version. the installation is working fine. May I know why is this problem occurring?

@prakashjayy prakashjayy added the kind/bug Something isn't working as expected label Feb 14, 2020
@finswimmer
Copy link
Member

Thanks a lot for reporting. 👍

Fix is on the way: #2041

@finswimmer finswimmer self-assigned this Feb 14, 2020
Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants