That error is from a dynamic loader (pkg_resources) that can't find sphinx. It probably means that the python interpreter trying to do the loading doesn't actually have sphinx installed. James On Apr 19, 2013, at 3:58 PM, Richard Gildea wrote:
Hi Jan,
This change doesn't work for me:
../bin/cctbx.python /opt/local/bin/sphinx-build -b coverage -d _build/doctrees -D latex_paper_size=a4 . _build/coverage Traceback (most recent call last): File "/opt/local/bin/sphinx-build", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: Sphinx==1.1.3 make: *** [coverage] Error 1
Cheers,
Richard
On 19 April 2013 14:11, Jan Marten Simons
wrote: Am Freitag 19 April 2013 22:37:06 schrieb James Stroud: On Apr 19, 2013, at 2:09 PM, Richard Gildea wrote:
Hi Jan,
I think the cause of the incomplete documentation is down to the fact that when I run build_docs.sh I get a whole bunch of import errors for every compiled module that it tries to import. I am at a bit of a loss as to why this should be the case, as running the tests or importing modules at the command line works just fine. I have built cctbx using the system python (2.7.2) on mac os x (mountain lion).
It looks like sphinx-build is not using cctbx.python, so it has no idea from where to import the python modules. Try this
I've modified the Makefile for sphinx so it should try to use cctbx.python as interpreter.
Hopefully this also works on macosX.
Cheers, Jan _______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
_______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb