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

Missing directory cldoc/data #21

Closed
kylezh opened this issue Nov 2, 2013 · 2 comments
Closed

Missing directory cldoc/data #21

kylezh opened this issue Nov 2, 2013 · 2 comments

Comments

@kylezh
Copy link
Contributor

kylezh commented Nov 2, 2013

Hi

I have cloned cldoc to local.
But after I setup cldoc by python setup.py install, I failed to use it to generate docs with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/cldoc", line 5, in <module>
    pkg_resources.run_script('cldoc==1.4', 'cldoc')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 505, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1245, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/EGG-INFO/scripts/cldoc", line 5, in <module>
    cldoc.run()
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/__init__.py", line 57, in run
    run_generate(rest)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/__init__.py", line 27, in run_generate
    cmdgenerate.run(args)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/cmdgenerate.py", line 140, in run
    run_generate(t, opts)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/cmdgenerate.py", line 34, in run_generate
    generators.Html(t).generate(baseout, opts.static, opts.custom_js, opts.custom_css)
  File "/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/generators/html.py", line 40, in generate
    with open(index) as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/cldoc-1.4-py2.7.egg/cldoc/data/index.html'
make: *** [doc] Error 1

I noticed that the error was caused by the missing directory of 'cldoc/data'.

However, if I install cldoc by `pip``, it works fine.

I found 'cldoc/data' in the tar ball from pip, but not from the github repo.

Could you help me solve this problem?

@jessevdk
Copy link
Owner

jessevdk commented Nov 2, 2013

The problem is that you will have to run python setup.py generate first, because it will actually generate all the data files. This is documented at http://jessevdk.github.io/cldoc/gettingstarted.html

@jessevdk jessevdk closed this as completed Nov 2, 2013
@kylezh
Copy link
Contributor Author

kylezh commented Nov 3, 2013

Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants