Mostly Iikely I'm just doing something st00pid, because I'm only a technical writer, not a real programmer, so I apologize in advance, but I am at a complete loss with this:
I have that script that pretty much starts out with
and Freewrap 6.75 does notlike it - terminates with "script error: can't find package tcllib".
That's both when I try to wrap or when I do the wishrun thing.
Looks to me it auto-loads Tktable? Yet, if I trim down my script to "package require tkTable", it does give me the error "can't find tkTable" ... oh, wait.
Is this a problem with capitalisation? It's called "tkTable" in freeWrapDocs.pdf and on its manpage ... but with freewrap, only one spelling works:
Mostly Iikely I'm just doing something st00pid, because I'm only a technical writer, not a real programmer, so I apologize in advance, but I am at a complete loss with this:
I have that script that pretty much starts out with
and Freewrap 6.75 does notlike it - terminates with "script error: can't find package tcllib".
That's both when I try to wrap or when I do the wishrun thing.
If I change the first line to
it terminates with "script error: can't find package tklib", and presumably loads the CSV module just fine?
But I can't load all modules seperatly ...
Here's what it tells me on the console if I try that "by hand":
Here's an output from the freshly started console:
Looks to me it auto-loads Tktable? Yet, if I trim down my script to "package require tkTable", it does give me the error "can't find tkTable" ... oh, wait.
Is this a problem with capitalisation? It's called "tkTable" in freeWrapDocs.pdf and on its manpage ... but with freewrap, only one spelling works:
No, can't get tcllib and tklib to work no matter what.
At this point, I have no idea what to do ...
You don't require the whole library for either tcllib or tklib. You have to require individual packages.
In general the info at https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/toc.md will give the "require" for a particular package.
Last edit: Ted Nolan 2024-10-03
What? But it worked some time ago?!
Oh. That script is at least 10 years old ... . Sigh
Thanks!
btw., this does not explain the tkTable oddity, right?
Last edit: Arralen 2024-10-03
I don't use Tk, so I don't know anything specific about Tktable, but the man page suggests that you do need
"package require Tktable"
https://wiki.tcl-lang.org/page/Tktable