[bug #68033] mkoctfile does not work using version 11.0.92 on Windows 11
Markus Mützel <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #6, bug #68033 (group octave):
One of the tests fails after the changes from comment #2:
>>>>> processing
>>>>> D:\repo\Octave\octave-2\test\jupyter-notebook\jupyter-notebook.tst
***** testif HAVE_RAPIDJSON
visibility = get (0, "defaultfigurevisible");
toolkit = graphics_toolkit ();
unwind_protect
if (! strcmp (graphics_toolkit (), "qt"))
try
graphics_toolkit ("gnuplot");
catch
## The system doesn't support gnuplot for drawing hidden
## figures. Just return and have test marked as passing.
return;
end_try_catch
endif
set (0, "defaultfigurevisible", "off");
n = jupyter_notebook (fullfile ("octave-kernel.ipynb"));
n.run_all ();
## Test embedding images
assert (n.notebook.cells{3}.outputs{1}.output_type, "display_data");
assert (isfield (n.notebook.cells{3}.outputs{1}.data, "image/png"));
assert (getfield (n.notebook.cells{3}.outputs{1}.data, "text/plain"),
{"<IPython.core.display.Image object>"});
## Test running non-code cells
markdown_cell = n.notebook.cells{1};
n.run (1);
assert (markdown_cell, n.notebook.cells{1});
## Test embedding textual output
assert (n.notebook.cells{6}.outputs{1}.output_type, "stream");
assert (n.notebook.cells{6}.outputs{1}.name, "stdout");
unwind_protect_cleanup
set (0, "defaultfigurevisible", visibility);
graphics_toolkit (toolkit);
end_unwind_protect
!!!!! test failed
fileread: cannot open file
These `jupyter_notebook` tests are a bit obscure to me. I find it hard to tell
which commands are actually run in Octave by these tests.
If I try to manually run the part which I think is relevant, I see the
following:
octave:2> n = jupyter_notebook (fullfile ("octave-kernel.ipynb"));
octave:3> n.run_all ();
error: fileread: cannot open file
error: called from
fileread at line 81 column 5
embed_svg_image at line 667 column 7
embedImage at line 623 column 11
run at line 432 column 13
run_all at line 473 column 9
octave:4> error: gl2ps_renderer::draw: internal pipe error
error: called from
__opengl_print__ at line 207 column 7
print at line 790 column 11
embed_svg_image at line 662 column 7
embedImage at line 623 column 11
run at line 432 column 13
run_all at line 473 column 9
octave:4> error: gl2ps_renderer::draw: internal pipe error
error: called from
__opengl_print__ at line 207 column 7
print at line 790 column 11
embed_svg_image at line 662 column 7
embedImage at line 623 column 11
run at line 432 column 13
run_all at line 473 column 9
octave:4>
An "internal pipe error" looks very much related to the change from comment
#2.
I'll try to find out which commands are actually causing this.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68033>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaYmgegAKCRCqLAuaBUf3 TutJAQDVL3ahZJwGe0dVv70ctse045n1Kvk1ytil1saJYofnkwEAy5KaMaMTD1ef yN2HTo08HIm6JLKdQLpDm+hs8pf+YwQ= =l8uz -----END PGP SIGNATURE-----