| Deutsch English Français Italiano |
|
<slrnv9kmsa.1l9n7.avl@logic.at> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb <avl@logic.at> Newsgroups: comp.lang.tcl Subject: Re: how to use diagram-viewer and the diagram pkg Date: Fri, 19 Jul 2024 12:26:50 -0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: <slrnv9kmsa.1l9n7.avl@logic.at> References: <N12dnfwNvY5f7gr7nZ2dnZfqnPadnZ2d@brightview.co.uk> <N12dnf8NvY7H6Qr7nZ2dnZfqnPYAAAAA@brightview.co.uk> <slrnv9evd8.1l9n7.avl@logic.at> <v7895k$1nju1$1@dont-email.me> Reply-To: avl@logic.at Injection-Date: Fri, 19 Jul 2024 14:26:50 +0200 (CEST) Injection-Info: dont-email.me; posting-host="39a8c58c182f8f217037911c33ead0a7"; logging-data="3141450"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9RPnJ3kfgvQvg6NEaMqXS" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:zTE6P0c7idZYNmR/IHQaCkSjUPM= Bytes: 2300 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.