I would like to try out the diagram-viewer app and the diagram pkg.[snip]
I am using Tcl/Tk 9.0b2 on Linux.
As you can see, diagram-viewer can't find the diagram package even
though it is there.
Nor can I find any other examples of the diagram language nor what file extension one should use.
$ 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
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...
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...
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 970 |
Nodes: | 10 (2 / 8) |
Uptime: | 104:07:00 |
Calls: | 12,740 |
Calls today: | 2 |
Files: | 186,574 |
Messages: | 3,171,647 |