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

Must use getfullargspec() on Py3.5 with annotations #287

Closed
arcivanov opened this Issue Dec 4, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@arcivanov
Contributor

arcivanov commented Dec 4, 2015

[DEBUG] Found action install_self
Traceback (most recent call last):
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/my-venv/lib/python3.5/site-packages/pybuilder/cli.py", line 395, in main
    exclude_all_optional=options.exclude_all_optional
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/my-venv/lib/python3.5/site-packages/pybuilder/reactor.py", line 116, in prepare_build
    self.collect_tasks_and_actions_and_initializers(self.project_module)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/my-venv/lib/python3.5/site-packages/pybuilder/reactor.py", line 282, in collect_tasks_and_actions_and_initializers
    Action(name, candidate, before, after, description, only_once, teardown))
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/my-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 102, in __init__
    super(Action, self).__init__(name, callable, description)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/my-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 82, in __init__
    self.parameters = inspect.getargspec(self.callable).args
  File "/Users/arcivanov/.pyenv/versions/3.5.0/lib/python3.5/inspect.py", line 1044, in getargspec
    raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

@arcivanov arcivanov added the bug label Dec 4, 2015

@arcivanov arcivanov self-assigned this Dec 4, 2015

@arcivanov arcivanov added this to the v0.11.3 milestone Dec 4, 2015

arcivanov added a commit to arcivanov/pybuilder that referenced this issue Dec 4, 2015

arcivanov added a commit to arcivanov/pybuilder that referenced this issue Dec 4, 2015

@arcivanov arcivanov closed this in #289 Dec 4, 2015

@arcivanov arcivanov removed the in progress label Dec 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment