Hi,,
I am calling Sphinx 1.4.1 from a Python3 script
try:
sphinx.main(['-E',
'-b',BUILDER,
'-w',LOGFILE,
'-j %d'%THREADS,
'-t',MODULE,
'-t',LANGNAME,
'-t mskver'+ MSKVER,
'-t prjname'+ TITLE,
'-d ./blddoc/%s/doctrees/%s'%(MODULE,LANGNAME),\
FOLDER,\
'blddoc/%s/%s/%s'%(MODULE,BUILDER,DOCNAME)])
except sphinx.errors.SphinxError as e:
print('sphinx')
return False
except sphinx.errors.ConfigError as e:
print('config')
return False
except sphinx.errors.ExtensionError as e:
print('ext')
return False
except sphinx.errors.ThemeError as e:
print('theme')
return False
except sphinx.errors.VersionRequirementError as e:
print('version')
return False
except Exception as e:
print("Something went wrong in Sphinx!!")
return False
except BaseException as e:
print("Something basic went wrong in Sphinx!!")
print(str(e))
return False
except:
print("Something unknown went wrong in Sphinx!!")
return False
Now all the process goes well and the output shows me Sphinx declares the
build to be successful
Running Sphinx v1.4.1
making output directory...
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 709 source files that are out of date
updating environment: [extensions changed] 708 added, 0 changed, 1 removed
checking for
/home/andrea/mosekprj/dev/blddoc/fusion/dotnetfusion/source/biblio.bib in
bibtex cache... out of date
parsing bibtex file
/home/andrea/mosekprj/dev/blddoc/fusion/dotnetfusion/source/biblio.bib...
parsed 556 entries
checking for
/home/andrea/mosekprj/dev/blddoc/fusion/dotnetfusion/source/fusion.bib in
bibtex cache... out of date
parsing bibtex file
/home/andrea/mosekprj/dev/blddoc/fusion/dotnetfusion/source/fusion.bib...
parsed 4 entries
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] zbiblio
generating indices...
writing additional pages... search
copying images... [100%] stacking-2.png
copying downloadable files... [100%] qo1.opf
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.
But to my surprise an exception is risen and I have no idea where it comes
from. I have tried to catch standard Sphinx exceptions, but it seems it is
of type BaseException and it has no message! Any clue?
Notice there are no warning whatsoever and the output is actually OK. All
files have been written to disk.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.