cloudant-labs / cloudant-python

Asynchronous Cloudant / CouchDB interface for Python
http://cloudant-labs.github.io/cloudant-python/
37 stars 17 forks source link

$ python docs won't run #26

Closed davelab6 closed 10 years ago

davelab6 commented 10 years ago

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
garbados commented 10 years ago

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

garbados commented 10 years ago

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