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: 'FullArgSpec' object has no attribute 'keywords' #1

Closed
jacebrowning opened this issue Aug 31, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@jacebrowning
Copy link

commented Aug 31, 2013

I just installed version 0.1.5 and ran:

mkdir apidocs ; cd apidocs ; pdoc --html ../doorstop --overwrite

I get the following trackback (but index.html was generated):

Traceback (most recent call last):
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 487, in <module>
    html_out(module)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 336, in html_out
    html_out(submodule)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 336, in html_out
    html_out(submodule)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 336, in html_out
    html_out(submodule)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 334, in html_out
    raise e
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/bin/pdoc", line 327, in html_out
    source=not args.html_no_source)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/pdoc.py", line 652, in html
    **kwargs)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/mako/runtime.py", line 807, in _render
    **_kwargs_for_callable(callable_, data))
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/mako/runtime.py", line 839, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/mako/runtime.py", line 865, in _exec_template
    callable_(context, *args, **kwargs)
  File "_html_mako", line 262, in render_body
  File "_html_mako", line 32, in show_module
  File "_html_mako", line 637, in render_show_module
  File "_html_mako", line 406, in show_func
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/pdoc.py", line 1056, in spec
    return ', '.join(self.params())
  File "/Users/Browning/Drive/Programs/Libraries/Doorstop/lib/python3.3/site-packages/pdoc.py", line 1088, in params
    keywords = getattr(s, 'varkw', s.keywords)
AttributeError: 'FullArgSpec' object has no attribute 'keywords'
@BurntSushi

This comment has been minimized.

Copy link
Contributor

commented Aug 31, 2013

Thanks for the bug report. Hopefully it's fixed. (I recreated it by running python3 ./pdoc pdoc and commit ced33a1 fixed that.)

@jacebrowning

This comment has been minimized.

Copy link
Author

commented Aug 31, 2013

No exception with pdoc-0.1.6. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.