Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pdflatex path issue #1

Open
marknewlyn opened this issue Aug 8, 2014 · 1 comment
Open

pdflatex path issue #1

marknewlyn opened this issue Aug 8, 2014 · 1 comment
Assignees

Comments

@marknewlyn
Copy link
Member

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
Copy link
Contributor

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

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

No branches or pull requests

2 participants