Updates at end
After an extremely painful update process largely because PDF export uses XeLaTeX and I have always preferred LaTeX, so different packages needed)...
(Important aside: I think pandoc expects to find everyshi.sty in package MS, but as reported on CTAN it's no longer in that package)
PDF creation fails with this info from the server:
notebook.tex:1678: Unable to load picture or PDF file '
dvipdfmx:fatal: Image inclusion failed for "attachment:9e002d53-d7a5-42e1-8b51-0fdec8f4dad5.png".
No output PDF file written.
Sorry, but xelatex did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\usernamehere\AppData\Local\MiKTeX\2.9\miktex\log\xelatex.log
The xelatax.log shows:
2021-06-10 08:02:26,620+0100 INFO xelatex.core - start process: miktex-dvipdfmx.exe --miktex-enable-installer -q -E -o notebook.pdf
2021-06-10 08:02:28,594+0100 FATAL xelatex.core - Invalid argument
2021-06-10 08:02:28,594+0100 FATAL xelatex.core - Function: fwrite
2021-06-10 08:02:28,594+0100 FATAL xelatex.core - Result: 22
2021-06-10 08:02:28,594+0100 FATAL xelatex.core - Data: <no data>
2021-06-10 08:02:28,594+0100 FATAL xelatex.core - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:646
2021-06-10 08:02:28,594+0100 FATAL xelatex - Invalid argument
2021-06-10 08:02:28,594+0100 FATAL xelatex - Info:
2021-06-10 08:02:28,594+0100 FATAL xelatex - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h
2021-06-10 08:02:28,594+0100 FATAL xelatex - Line: 646
2021-06-10 08:02:28,596+0100 INFO xelatex - this process (37528) finishes with exit code 1
And if we then look in miktex-dvipdfmx.log we find the other end of the call...
2021-06-10 08:02:26,808+0100 INFO miktex-dvipdfmx - this process (4364) started by 'xelatex' with command line: miktex-dvipdfmx.exe --miktex-enable-installer -q -E -o notebook.pdf
2021-06-10 08:02:28,558+0100 ERROR miktex-dvipdfmx - Image inclusion failed for "attachment:9e002d53-d7a5-42e1-8b51-0fdec8f4dad5.png".
2021-06-10 08:02:28,559+0100 INFO miktex-dvipdfmx - this process (4364) finishes with exit code 1
So. Image inclusion failed for the png, which is is an attachment in a markdown cell (a screen grab of previous output so that long-running code doesn't always have to be re-run).
Can anyone confirm this should work (I have seen something, somewhere that there was an issue with images in markdown cells a long time ago) and if so, explain how to resolve this issue?
Update I 29/06/2021
From the xelatex log: there's an "invalid argument message" and the arguments "-q -E -o" just above are for miktex-dvipdfmx.exe, but referring to the dvipdfmx manual I can't find the -q, -o arguments...
Then checking the BASIC manual for dvipddf () and options there -o is the output filename (not a great surprise) but still no sign of a -q option.
That is at least consistent, but... what? How? etc. etc. etc.
Update II of 29/06/2021
Updated miktex; found a new item, miktex-dvipdfmx-bin-x64-2, has been installed! Re-ran notebook export. Different error:
nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex notebook.tex -quiet" command:
notebook.tex:561: Undefined control sequence
checking the miktex-dvipdfmx.log I find
2021-06-10 08:02:26,808+0100 INFO miktex-dvipdfmx - this process (4364) started by 'xelatex' with command line: miktex-dvipdfmx.exe --miktex-enable-installer -q -E -o notebook.pdf
2021-06-10 08:02:28,558+0100 ERROR miktex-dvipdfmx - Image inclusion failed for "attachment:9e002d53-d7a5-42e1-8b51-0fdec8f4dad5.png".
2021-06-10 08:02:28,559+0100 INFO miktex-dvipdfmx - this process (4364) finishes with exit code 1
So the argument error was (presumably) resolved by the use of miktex-dvipdfmx-bin-x64-2, and now there's some other issue in the tex itself
Unfortunately, a full search of C:\ and the separate documents drive fails to find notebook.tex so investigation dead-ends here.
However, note that PDF export works OK for a notebook without embedded "attachments" - I wonder whether it simply can't find the attachment "files"
Final error report from jupyter as 500 server error:
nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex notebook.tex -quiet" command:
notebook.tex:496: Undefined control sequence [17 times]
...
notebook.tex:2119: Unable to load picture or PDF file '
dvipdfmx:fatal: Image inclusion failed for "attachment:9e002d53-d7a5-42e1-8b51-0fdec8f4dad5.png".
No output PDF file written.
Sorry, but xelatex did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\Julian\AppData\Local\MiKTeX\2.9\miktex\log\xelatex.log
And the xelatex log says there was no data
2021-06-29 08:30:42,590+0100 INFO xelatex.core - start process: miktex-dvipdfmx.exe --miktex-enable-installer -q -E -o notebook.pdf
2021-06-29 08:30:43,984+0100 FATAL xelatex.core - Invalid argument
2021-06-29 08:30:43,984+0100 FATAL xelatex.core - Function: fwrite
2021-06-29 08:30:43,984+0100 FATAL xelatex.core - Result: 22
2021-06-29 08:30:43,984+0100 FATAL xelatex.core - Data: <no data>
2021-06-29 08:30:43,984+0100 FATAL xelatex.core - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:646
2021-06-29 08:30:43,984+0100 FATAL xelatex - Invalid argument
2021-06-29 08:30:43,984+0100 FATAL xelatex - Info:
2021-06-29 08:30:43,984+0100 FATAL xelatex - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h
2021-06-29 08:30:43,984+0100 FATAL xelatex - Line: 646
2021-06-29 08:30:43,986+0100 INFO xelatex - this process (38968) finishes with exit code 1
Possibly related: github nbconvert issues
I am having the freaking same problem here too. Now my temporary solution is just to use the Chrome browser feature of print (save as pdf), but then the header part and the footnote just looks so tasteless and annoying.
I was running into this issue as well.
My solution ... use the full path in your attachment definition to the image instead of the relative path. Although, it doesn't render in VS Code when I do that, it does allow nbconvert to now successfully find the file and create the PDF.
Problematic code: (test image)[test_image.jpg]
Working code: (test image)[C:\test_image.jpg]
I cannot say for sure, but I noticed in my error log that it was writing temp files into AppData. I suspected that it was not pulling the images in at that time, then failing to find them relative to that temp file.
Related
The bounty expires in 3 days. Answers to this question are eligible for a +50 reputation bounty.
BoomBoxBoy is looking for an answer from a reputable source:
A Simple or Complex will do, just looking for the reason why this occurred randomly overnight..
When I attempt to run a Jupiter notebook in VS Code with a simple print("hello world") command,I get the following error printout:
Failed to start the Kernel.
Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
optional arguments:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
View Jupyter log for further details.
With this info in the Jupyter log
error 15:07:35.321: Error in execution (get message for cell) Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
optional arguments:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:254981)
at t._complete (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:255541)
at t.n (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:701037)
at t.complete (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700930)
at t._complete (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699446)
at t.complete (/Users/user1/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/joshpurtell/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:1800927)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
However, when I run the command jupyter-notebook in the python terminal with the same environment activated, I have no issue and it runs as expected.
Hi please help me to solve this problem , thank you
I got stuck during installation of oracle 11g on CENTOS 7 and faced this error
"Error in invoking target 'client_sharedlib' of makefile
'/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See
'/u01/app/oraInventory/logs/installActions2017-10-17_03-27-55PM.log'
for details."
and this is my log file :
INFO: /u01/app/oracle/product/11.2.0/db_1/bin/genclntsh
INFO: /bin/ld: cannot find -lstdc++_nonshared
INFO: collect2: error: ld returned 1 exit status
INFO: genclntsh: Failed to link libclntsh.so.11.1
INFO: make: *** [client_sharedlib] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2017-10-17_03-27-55PM.log' for details.
Exception Severity: 1
Please try
# yum install make
# yum install gcc
The below text is copied from my terminal:
julia> Pkg.update()
INFO: Updating METADATA...
ERROR: METADATA cannot be updated. Resolve problems manually in /home/administrator/.julia/v0.6/METADATA.
GitError(Code:ERROR, Class:SSL, SSL error: ffffffff - UNKNOWN ERROR CODE (0001))
i'm trying to build an signed apk with visual studio /Cordova template. But i'm receiving this error: ERROR building one of the platforms 1
And : Error MDAVSCLI 1
I´m following this tutorial:
http://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/
and my Keystore is like image bellow:
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating MainActivity-release-unsigned.apk for release...
-post-package:
-release-prompt-for-password:
-release-nosign:
-release-sign:
[echo] Signing final apk...
BUILD FAILED
C:\Users\Leo\AppData\Local\Android\sdk1\tools\ant\build.xml:1135: The following error occurred while executing this line:
C:\Users\Leo\AppData\Local\Android\sdk1\tools\ant\build.xml:1147: C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\"my-release-key.Keystore" (The file name syntax, the name of the directory or volume label incorrect)
Total time: 52 seconds
Picked up _JAVA_OPTIONS: -Xmx512M
C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "ant release -f C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\build.xml -Dout.dir=ant-build -Dgen.absolute.dir=ant-gen"
Command finished with error code 1: C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\build.bat --release
ERROR building one of the platforms : error : C:\Users\Leo\Desktop\Mobile\Mobile\platforms\android\cordova\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
MDAVSCLI : error : C:\Users\Leo\Desktop\Mobile\Mooobile\platforms\android\c
I've found a way : removing the quotes in my ant.properties i can build.
I have an unrecoverable error, exit code 1 showing up when I try to convert my .ps files to pdf. It worked just about a half hour ago and now it wont. The file is there!
Error: /undefinedfilename in (10132012a.ps)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1161/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 9.04: Unrecoverable error, exit code 1
Here is my command:
ps2pdf 10132012a.ps 10132012b.pdf
The ps file was created using latex.
I am running Ubuntu 11.10.
You might try running Ghostscript directly, rather than using the script:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -o 10132012b.pdf 10132012a.ps
or even:
gs -sDEVICE=pdfwrite -o 10132012b.pdf - < 10132012a.ps
The "convenience" scripts (ps2pdf, pdf2ps, etc) use options which might get in the way (although they really shouldn't).
I just found a brilliant way to get this /undefinedfilename error. It took me about 15 minutes to figure it out.
First I did this.
user#host> dvips test1
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com)
' TeX output 2015.08.04:2315' -> test1.ps
</usr/lib/texmf/dvips/base/tex.pro></usr/lib/texmf/dvips/base/texps.pro>.
</usr/share/texmf/fonts/type1/public/amsfonts/cm/cmr10.pfb>[-1] [-2] [1] [2]
And then I did this.
user#host> ps2pdf text1.ps
Error: /undefinedfilename in (text1.ps)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1172/3371(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Then it finally hit me. It was a spelling error in the file name. So the command line argument for ps2pdf was a non-existent file.
In my opinion, a better error message would be Cannot find file test1.ps, instead of Error: /undefinedfilename in (text1.ps).
The error means that ps2pdf could not find the file 10132012a.ps.
latex does not create ps files: it creates dvi files which can be converted to ps with dvips.
Perhaps you forgot to run dvips?