Thank you very much. Everything worked after specifying the path to the pdflatex.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Thu, Jun 18, 2020 at 12:07 PM Kasper Laudrup <laud...@stacktrace.dk> wrote: > Hej Lejaha > > On 18/06/2020 11.42, lejaha...@gmail.com wrote: > > Created a an application that generates pdf-files from latex templates > > saved on the project, using the subprocess('pdflatex nameofTemplate' ) > > method. > > The application works fine, locally. But does not work on the server and > > returns "[Errno 2] No such file or directory: 'pdflatex mytexfile.tex': > > 'pdflatex mytexfile.tex'", everytime I call the method to generate the > > latex files. > > > > Please kindly advise on how I can make the pdflatex and latex files > > accessible to my subprocess.call() method. > > > > By installing pdflatex on the server and ensuring its in the path of the > user running the application or giving the full path to the pdflatex > executable in the call to subprocess. > > How to install software on the server depends on the OS of the server > and how its maintained and you'll most likely have better luck getting > answers if you ask whoever is maintaining the server. > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3b5e415d-4893-4abc-d892-bacd99c9fba2%40stacktrace.dk > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACjM_BcD7kgK4YHYi8XNb024SOT3QQasM2ZApNhm%2BYafe%3D2hOQ%40mail.gmail.com.