balanced/balanced-docs

build error

Closed this issue · 2 comments

Hello,

Can I build the doc without an API key. Looks like it is trying to do an api call, and fails. I just followed the instruction in the Readme.

BALANCED_REV=rev1 sphinx-build -b dirhtml -c api/rev1 api/rev1 api/rev1/html
Running Sphinx v1.1.3
loading pickled environment... not yet created
building [dirhtml]: targets for 16 source files that are out of date
updating environment: 16 added, 0 changed, 0 removed
scripts/lang-scenario.py -d clients/rev1/curl -c scenario.cache callback_show --lang=ruby --lang=python --lang=node --lang=java --lang=php - failed with exit code 1
stderr:
2014-05-20 23:33:58,764 : requests.packages.urllib3.connectionpool : Starting new HTTPS connection (1): api.balancedpayments.com
Traceback (most recent call last):
  File "scripts/lang-scenario.py", line 688, in <module>
    main()
  File "scripts/lang-scenario.py", line 683, in main
    blocks, response = scenario()
  File "scripts/lang-scenario.py", line 408, in __call__
    block = self.block(lang)
  File "scripts/lang-scenario.py", line 427, in block
    block = self._render(template_path)
  File "scripts/lang-scenario.py", line 453, in _render
    context.update(request=self.metadata)
  File "scripts/lang-scenario.py", line 398, in metadata
    execfile(metadata, context, context)
  File "/Users/bsr/balanced-docs/clients/rev1/curl/callback_show/metadata.py", line 3, in <module>
    )['callbacks'][0]
KeyError: 'callbacks'

stdout:


Exception occurred:
  File "/Users/bsr/balanced-docs/balanced_docs/dcode.py", line 218, in _execute
    raise Exception('{0} - failed with exit code {1}'.format(sh_cmd, proc.returncode))
Exception: scripts/lang-scenario.py -d clients/rev1/curl -c scenario.cache callback_show --lang=ruby --lang=python --lang=node --lang=java --lang=php - failed with exit code 1
The full traceback has been saved in /var/folders/fc/k8b9ds214nv4lqv2x4395khc0000gn/T/sphinx-err-NAivkW.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make[1]: *** [api] Error 1
make: *** [rev1] Error 2

last part of the log file mentioned above

 File "/Users/bsr/.virtualenvs/balanced-docs/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2083, in run_directive
    result = directive_instance.run()
  File "/Users/bsr/balanced-docs/balanced_docs/dcode.py", line 514, in run
    '\n'.join(self.content)
  File "/Users/bsr/balanced-docs/balanced_docs/dcode.py", line 482, in expand
    content=content,
  File "/Users/bsr/balanced-docs/balanced_docs/dcode.py", line 274, in _generate
    result = _execute(script, args, kwargs, content, record)
  File "/Users/bsr/balanced-docs/balanced_docs/dcode.py", line 218, in _execute
    raise Exception('{0} - failed with exit code {1}'.format(sh_cmd, proc.returncode))
Exception: scripts/lang-scenario.py -d clients/rev1/curl -c scenario.cache callback_show --lang=ruby --lang=python --lang=node --lang=java --lang=php - failed with exit code 1

Yes, you can generate the documentation without an API key. During the documentation generation, API keys and Marketplaces are automatically generated.

The error you're getting looks to be caused by some kind of timeout. Can you try running make clean && make all

indeed. it worked after cleaning the previous build. thanks for the help.