Siyavula / bookbuilder

Bookbuilder: A Tool for generating output formats from cnxmlplus source.
MIT License
1 stars 1 forks source link

pdflatex path issue #1

Open marknewlyn opened 10 years ago

marknewlyn commented 10 years ago

Traceback (most recent call last): File "/usr/local/bin/bookbuilder", line 5, in pkg_resources.run_script('Bookbuilder==0.1', 'bookbuilder') File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/EGG-INFO/scripts/bookbuilder", line 61, in Book.convert(formats) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/Bookbuilder/libbookbuilder.py", line 580, in convert chapter.convert(self.build_folder, formats) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/Bookbuilder/libbookbuilder.py", line 451, in convert self.render_pstikz(output_path) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/Bookbuilder/libbookbuilder.py", line 295, in render_pstikz figpath = pstikz2png.pspicture2png(pre, iDpi=150) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/Bookbuilder/pstikz2png.py", line 257, in pspicture2png return pstikz2png(iPspictureElement, pstricksTex, _args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/Bookbuilder-0.1-py2.7.egg/Bookbuilder/pstikz2png.py", line 228, in pstikz2png texlivepath = [p for p in os.getenv('PATH').split(':') if 'texlive' in p][0] IndexError: list index out of range mark@mark-E530:~/Documents/SiyavulaEducation/Repos/test/mathematics-10$ which texlive mark@mark-E530:~/Documents/SiyavulaEducation/Repos/test/mathematics-10$ which pdflatex /usr/bin/pdflatex

ezietsman commented 10 years ago

Added a fallback to /usr/bin/pdflatex if texlive is not specified in the PATH.