Sujet : Re: how to use diagram-viewer and the diagram pkg
De : avl (at) *nospam* logic.at (Andreas Leitgeb)
Groupes : comp.lang.tclDate : 19. Jul 2024, 13:26:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnv9kmsa.1l9n7.avl@logic.at>
References : 1 2 3 4
User-Agent : slrn/1.0.3 (Linux)
Harald Oehlmann <
wortkarg3@yahoo.com> wrote:
Am 17.07.2024 um 10:15 schrieb Andreas Leitgeb:
Mark Summerfield <mark@qtrac.eu> wrote:
$ wish9 ~/opt/tcl9/bin/diagram-viewer show /tmp/a.dia
Creating safe environment, please wait...
/home/mark/opt/tcl9/bin/diagram-viewer: can't find package diagram
$ wish9
% package require diagram
1
The "Creating safe environment, please wait..." might be the key here.
Check what the diagram viewer does after emitting that line, and see
if you can still "package require diagram" in that context.
If the "safe environment" is related to a safe interpreter,
you might need to add more code to the diagram-viewer to
allow the safe interp to load that particular package.
If I had it in my head, I'd write it - I hope someone else
can describe the extra "magic" needed to enable a package
in a safe interp.
>
May you identify the "pckIndex.tcl" file of the package and post it here?
It may contain code to exclude TCL9...
I think we can exclude that possibility, because the package apparently
does load successfully in an interactive wish9.
Mark, if you skipped a few post and just read the last one, consider
what I wrote about safe interpreters.