cloudant-labs/cloudant-python

$ python docs won't run

davelab6 opened this issue · 2 comments

Hmm

$ python docs
WARNING: Index.iter has no documentation!
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/dcrossland/src/cloudant-python/docs/__main__.py", line 20, in <module>
    util.generate_docs(ORDER, TEMPLATE, OUTPUT, README)
  File "docs/util.py", line 77, in generate_docs
    sections = get_sections(order)
  File "docs/util.py", line 70, in get_sections
    method_docs = get_docs(method)
  File "docs/util.py", line 25, in get_docs
    source = inspect.getsource(method).replace(method.__doc__, '').replace('""""""', '')
TypeError: expected a character buffer object

Can you tell me more about what steps you took to generate this stacktrace? I'm unable to reproduce it on my machine.

Found the issue. Fixed it. Let me know if you're still having problems.