Skip to content

Installation via pipenv fails with both github and file based methods #302

@mgaruccio

Description

@mgaruccio

Describe the bug

When attempting to install this package via pipenv I get an error AttributeError: 'Call' object has no attribute 's'. this occurs both with the file based pipenv install https://github.com/vmware/vsphere-automation-sdk-python/archive/refs/tags/v7.0.3.0.tar.gz and github based pipenv install git+https://github.com/vmware/vsphere-automation-sdk-python.git#egg=vSphere-Automation-SDK commands

Reproduction steps

1. run `pipenv install https://github.com/vmware/vsphere-automation-sdk-python/archive/refs/tags/v7.0.3.0.tar.gz`
2. output is  (most recent call last):
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/cli/command.py", line 194, in install
    do_install(
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/core.py", line 2037, in do_install
    pkg_requirement = Requirement.from_line(pkg_line)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2682, in from_line
    r = file_req_from_parsed_line(parsed_line)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 3089, in file_req_from_parsed_line
    "req": parsed_line.requirement,
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 474, in requirement
    self.parse_requirement()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1078, in parse_requirement
    if self.setup_info and self.setup_info.name:
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 806, in setup_info
    self.setup_info = self.get_setup_info()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 795, in get_setup_info
    setup_info = SetupInfo.from_ireq(self.ireq, subdir=self.subdirectory)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 772, in ireq
    self.parse_ireq()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 936, in parse_ireq
    if self.requirement is not None and self._ireq.req is None:
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 474, in requirement
    self.parse_requirement()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1078, in parse_requirement
    if self.setup_info and self.setup_info.name:
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 806, in setup_info
    self.setup_info = self.get_setup_info()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 795, in get_setup_info
    setup_info = SetupInfo.from_ireq(self.ireq, subdir=self.subdirectory)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1561, in from_ireq
    created = cls.create(
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1598, in create
    created.get_initial_info()
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1431, in get_initial_info
    parsed.update(self.parse_setup_py())
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1162, in parse_setup_py
    parsed = ast_parse_setup_py(self.setup_py.as_posix())
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 880, in ast_parse_setup_py
    return SetupReader.read_setup_py(Path(path), raising)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 205, in read_setup_py
    "install_requires": caller(cls._find_install_requires, setup_call, body),
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 197, in caller
    return func(*args, **kwargs)
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 360, in _find_install_requires
    return [el.s for el in value.elts]
  File "/opt/homebrew/Cellar/pipenv/2021.11.23/libexec/lib/python3.10/site-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 360, in <listcomp>
    return [el.s for el in value.elts]
AttributeError: 'Call' object has no attribute 's'. Did you mean: '_requirement'?
3.
...

Expected behavior

The package should install

Additional context

I am running on an apple silicon mac with python 3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions