Skip to content

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

@prakashjayy

Description

@prakashjayy
  • [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?

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions