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

No preview after fresh install #114

Open
Brett-Plemons opened this issue Apr 18, 2019 · 4 comments
Open

No preview after fresh install #114

Brett-Plemons opened this issue Apr 18, 2019 · 4 comments
Labels

Comments

@Brett-Plemons
Copy link

When i click latex preview i get an error
this one is in the console:

{"message": "Unhandled error", "reason": null, "traceback": "Traceback (most recent call last):\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/web.py\", line 1699, in _execute\n    result = await result\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/gen.py\", line 736, in run\n    yielded = self.gen.throw(*exc_info)  # type: ignore\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/jupyterlab_latex/build.py\", line 194, in get\n    out = yield self.run_latex(cmd_sequence)\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/gen.py\", line 729, in run\n    value = future.result()\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/gen.py\", line 736, in run\n    yielded = self.gen.throw(*exc_info)  # type: ignore\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/jupyterlab_latex/build.py\", line 158, in run_latex\n    code, output = yield run_command(cmd)\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/gen.py\", line 729, in run\n    value = future.result()\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/gen.py\", line 209, in wrapper\n    yielded = next(result)\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/jupyterlab_latex/util.py\", line 48, in run_command_async\n    stderr=Subprocess.STREAM)\n  File \"/home/brett/anaconda3/lib/python3.7/site-packages/tornado/process.py\", line 248, in __init__\n    self.proc = subprocess.Popen(*args, **kwargs)\n  File \"/home/brett/anaconda3/lib/python3.7/subprocess.py\", line 775, in __init__\n    restore_signals, start_new_session)\n  File \"/home/brett/anaconda3/lib/python3.7/subprocess.py\", line 1522, in _execute_child\n    raise child_exception_type(errno_num, err_msg, err_filename)\nFileNotFoundError: [Errno 2] No such file or directory: 'xelatex': 'xelatex'\n"}

this one is in terminal

{
      "Host": "localhost:8888",
      "Connection": "keep-alive",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/73.0.3683.86 Chrome/73.0.3683.86 Safari/537.36",
      "Authorization": "token ac94a47fe54c37a002e45a585d9fd6805d12a9dbac24b305",
      "Content-Type": "application/json",
      "Accept": "*/*",
      "Referer": "http://localhost:8888/lab",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-US,en;q=0.9",
      "Cookie": "_xsrf=2|8d87f430|6916c753a69b835ef917aa860a353bbc|1553539238; username-localhost-8888=\"2|1:0|10:1555597900|23:username-localhost-8888|44:MTdhNDFhNWFhY2YzNGZhZTk1Mzc4NzE2M2QyZDY2NzQ=|e3b512f35f78761d688662e19d36d37d1a4cd420236254023186db7dc90c9ee7\""
    }
[E 09:31:40.580 LabApp] 500 GET /latex/build/Documents/Programming%20Classes/Modern%20Python%203%20BootCamp/sample.tex?synctex=1&1555597900571 (127.0.0.1) 4.87ms referer=http://localhost:8888/lab

I just installed and loaded it into jupyter with the commands in the readme. Not sure what I am missing

@BrianChevalier
Copy link

BrianChevalier commented May 4, 2019

Do you have XeLaTeX installed on your system? Open a terminal and type xelatex --version to see if it's installed. Also, are you running on Mac, Linux or Windows?

@mnancel
Copy link

mnancel commented Aug 2, 2019

I'm having the same issue, with pdflatex

pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)

on Mac OSX 10.14.

If I fully fill and restart my Lab, and close the previous Latex Preview tab, and right-click+"Show Latex Preview" once more, then the preview appears correctly, with no error, and saving+compiling will work for a while. I don't know what triggers it, but after a while I start getting this error again, and am not be able to compile my pdf file.

@dmarienburg
Copy link

I had a the same issue on Windows 10. I uninstalled the extension after disabling it, created a conda package then reinstalled and reactivated. Now there is no option for previewing.

Here is the output from running xelatex --version (if that is helpful):

MiKTeX-XeTeX 2.9.6942 (0.999991) (MiKTeX 2.9.7050 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.61.1; using libcurl/7.61.1 WinSSL
compiled with expat version 2.2.6; using expat_2.2.6
compiled with fontconfig version 2.13.1; using 2.13.1
compiled with freetype2 version 2.9.1; using 2.9.1
compiled with graphite2 version 1.3.12; using 1.3.12
compiled with harfbuzz version 2.0.2; using 2.0.2
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.3
compiled with liblzma version 50020042; using 50020042
compiled with libpng version 1.6.35; using 1.6.35
compiled with libressl version LibreSSL 2.8.2; using LibreSSL 2.8.2
compiled with MiKTeX Application Framework version 4.6961; using 4.6961
compiled with MiKTeX Core version 14.7079; using 14.7079
compiled with MiKTeX Archive Extractor version 1.6882; using 1.6882
compiled with MiKTeX Package Manager version 6.7100; using 6.7100
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.9.2
compiled with zlib version 1.2.11; using 1.2.11

@michelfei
Copy link

I had a the same issue on Windows 10. I uninstalled the extension after disabling it, created a conda package then reinstalled and reactivated. Now there is no option for previewing.

Here is the output from running xelatex --version (if that is helpful):

MiKTeX-XeTeX 2.9.6942 (0.999991) (MiKTeX 2.9.7050 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.61.1; using libcurl/7.61.1 WinSSL
compiled with expat version 2.2.6; using expat_2.2.6
compiled with fontconfig version 2.13.1; using 2.13.1
compiled with freetype2 version 2.9.1; using 2.9.1
compiled with graphite2 version 1.3.12; using 1.3.12
compiled with harfbuzz version 2.0.2; using 2.0.2
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.3
compiled with liblzma version 50020042; using 50020042
compiled with libpng version 1.6.35; using 1.6.35
compiled with libressl version LibreSSL 2.8.2; using LibreSSL 2.8.2
compiled with MiKTeX Application Framework version 4.6961; using 4.6961
compiled with MiKTeX Core version 14.7079; using 14.7079
compiled with MiKTeX Archive Extractor version 1.6882; using 1.6882
compiled with MiKTeX Package Manager version 6.7100; using 6.7100
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.9.2
compiled with zlib version 1.2.11; using 1.2.11

I have the same issue on win10. I install the plugin , but there's no option for preview after right click. I use the texlive 2020.

@ktaletsk ktaletsk added the bug label Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants