| Deutsch English Français Italiano |
|
<slrnv9evd8.1l9n7.avl@logic.at> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!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: Wed, 17 Jul 2024 08:15:36 -0000 (UTC) Organization: A noiseless patient Spider Lines: 20 Message-ID: <slrnv9evd8.1l9n7.avl@logic.at> References: <N12dnfwNvY5f7gr7nZ2dnZfqnPadnZ2d@brightview.co.uk> <N12dnf8NvY7H6Qr7nZ2dnZfqnPYAAAAA@brightview.co.uk> Reply-To: avl@logic.at Injection-Date: Wed, 17 Jul 2024 10:15:36 +0200 (CEST) Injection-Info: dont-email.me; posting-host="27f5daf1c0338e6034a2765519da7d32"; logging-data="1841433"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Nl33uzKhbe5usTSequAP9" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:eM2gHhN7NeqnxxekXwT7k8zE1r8= Bytes: 1695 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.