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

pdf file vs TEX #3282

Closed
srerasmo opened this issue Apr 2, 2018 · 17 comments
Closed

pdf file vs TEX #3282

srerasmo opened this issue Apr 2, 2018 · 17 comments

Comments

@srerasmo
Copy link

srerasmo commented Apr 2, 2018

Hello,
I have a question, when trying to generate a pdf file. You send me the following error:
Something went wrong,
"LaTeXRuntimeException: Impossible to compile '/opt/indico/tmp/indico-texgen-3GiWlj/report.tpl.tex'. Read '/opt/indico/tmp/indico-texgen-3GiWlj/output.log' for details"

The file "output.log" is empty
Has anyone happened to you or do you know how to solve it?

Regards

@ThiefMaster
Copy link
Member

Is xelatex installed?

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

yes, it is installed

@ThiefMaster
Copy link
Member

Any other log files in that directory? I think LaTeX creates one as well...

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

Possibly I have to restart indico, after installing tex?

@ThiefMaster
Copy link
Member

If you edited indico.conf then yes, you need to restart uWSGI (and ideally celery as well so it also has the latest config).

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

Yes, I restart:
systemctl restart uwsgi.service httpd.service indico-celery.service

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

This is Traceback:

Traceback
---------
Traceback (most recent call last):
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/indico/.venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/flask/util.py", line 114, in wrapper
    return obj().process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 270, in process
    res = self._do_process()
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/controllers/base.py", line 63,
in _do_process
    return RHEventBase._do_process(self)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/web/rh.py", line 249, in _do_process
    return self._process()
  File
"/opt/indico/.venv/lib/python2.7/site-packages/indico/modules/events/contributions/controllers/display.py",
line 191, in _process
    return send_file('contributions.pdf', pdf.generate(), 'application/pdf')
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/legacy/pdfinterface/base.py", line 683, in
generate
    pdffile = latex.run(self._tpl_filename, **self._args)
  File "/opt/indico/.venv/lib/python2.7/site-packages/indico/legacy/pdfinterface/base.py", line 749, in run
    raise LaTeXRuntimeException(source_filename, log_filename)
LaTeXRuntimeException: LaTeX compilation of /opt/indico/tmp/indico-texgen-3GiWlj/report.tpl.tex failed

@ThiefMaster
Copy link
Member

The traceback is not really useful in this particular case.

Any other log files in that directory? I think LaTeX creates one as well...

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

in report.tpl.tex:

fancyfoot[L]{\small \rmfamily \color{gray} \today}
        \fancyfoot[C]{}
        \fancyfoot[R]{\small \rmfamily \color{gray} Página \thepage}
        \newpage
        \fancyhead[L]{\small \rmfamily \color{gray} \truncateellipses{EAV 2018, CINVESTAV Advanced Summer School}{80pt} / Informe de contribuciones}
        \fancyhead[R]{\small \rmfamily \color{gray} \truncateellipses{Name of Plenary Talk 1}{150pt}}
        \phantomsection
        \addcontentsline{toc}{section}{Name of Plenary Talk 1}

@ThiefMaster
Copy link
Member

ThiefMaster commented Apr 2, 2018

Is the latex snipped you posted above everything in report.tpl.tex or just a part of it?


Try running xelatex manually on the shell, using the following command. Maybe this provides more useful output.

/path/to/xelatex -no-shell-escape -interaction nonstopmode -output-directory /opt/indico/tmp/indico-texgen-3GiWlj/ /opt/indico/tmp/indico-texgen-3GiWlj/report.tpl.tex

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

Agree, his is the message:

[root@indico indico]# /opt/texlive/bin/x86_64-linux/xelatex -no-shell-escape -interaction nonstopmode -output-directory /opt/indico/tmp/indico-texgen-3GiWlj/ /opt/indico/tmp/indico-texgen-3GiWlj/report.tpl.tex
/opt/texlive/bin/x86_64-linux/xelatex: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

"/opt/texlive/bin/x86_64-linux/xelatex: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory"

@ThiefMaster
Copy link
Member

Try running /opt/texlive/bin/x86_64-linux/fmtutil-sys --all (probably as root). According to another user this helps.

PS: For future questions like this, our forum is actually the better place to ask.

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

this does not works :(

@ThiefMaster
Copy link
Member

ThiefMaster commented Apr 2, 2018

Did you also install libfontconfig1 as mentioned in the forum post?

Which Linux distribution are you using btw? We should probably add this to our docs...

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

I have Centos 7

@srerasmo
Copy link
Author

srerasmo commented Apr 2, 2018

Thank you very much! It works now! :-)

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