"::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4" caused by replacing Tcl 8.4.1 with 8.5.7In the blog
http://planet.larrythecow.org/archives/2009-07-26.html
"The Twouble with Tcl" Iain Buchanan
shows that redefining OPEN proc leads to the
errors similar to what I am getting - when I replaced Tcl 8.4.1 with
Tcl
8.5.7.
In my case I don't know the exact root cause though ...
Any ideas how I should proceed with debugging this issue ?
Thanks,
Alex
tclsh c:/Tornado/host/resource/hutils/tcl/makeSymTbl.tcl ppc tmp.o
symTbl.c
invalid command name "::tcl::tm::UnknownHandler"
while executing
"::tcl::tm::UnknownHandler ::tclPkgUnknown msg...
not equal? "5".to_i+ "6".to_i and "5".to_i +"6".to_iruby 1.8.5 (2006-12-25 patchlevel 12) [i686-linux]
>> "5".to_i+ "6".to_i
=> 11
>> "5".to_i +"6".to_i
=> 5
maybe it's a mistak?
> >> "5".to_i+ "6".to_i
> => 11
> >> "5".to_i +"6".to_i
> => 5
The second case +"6".to_i is treated as an argument for to_i method.
This will make it more obvious:
>> "111".to_i +"2".to_i
=> 7
"111".to_i +"2".to_i is equivalent to "111".to_i(2), hence the result....
is the value of "clock scan today" correct (tcl 8.6)Hi,
I was surprised that the clock value of "now" and "today" are equal:
% expr {[clock scan now] == [clock scan today]}
1
I expected the "today"s value to be:
% clock format [clock scan today]
Mon Jan 21 18:52:47 CET 2013
% clock format [clock scan {last day + 24 hours}]
Mon Jan 21 00:00:00 CET 2013
Why behaves the clock value "today" this way?
Is it a bug or intention?
Best regards,
Martin
BTW: where is the word "this" for free form times/dates valid?
At 2013-01-21 12:53PM, "MartinLemburg@Siemens-PLM" wrote:
> BTW: where is the word "this" for free form times/dates valid?
Probably a bug. I imagine it is supposed to be used like the relative
modifiers "next" and "last":
% clock format [clock scan "12:01 monday"]
Mon Jan 28 12:01:00 EST 2013
% clock format [clock scan "12:01 next monday"]
Mon Feb 04 12:01:00 EST 2013
% clock format [clock scan "12:01 last monday"]
Mon Jan 21 12:01:00 EST 2013
% clock format [clock scan "12:01 this monday"]
unable to convert date-time string "12:01 this monday": syntax error (characters 5-9)
--
Glenn Jackman
Write a wise saying and your name will live forever. -- Anonymous
Yes, it seems so!
The "today" keyword seems to be for relative time movements, too:
% clock format [clock scan {0:00:00 today}]...
tclhttpd "invalid command name "::isaac::isaac""I'm mainly posting this because the instructions seem so cut-n-dried
that I would not expect a failure. I acquired tclhttpd3.5.1.tar.gz,
untar'd it in /usr/lib, ran through some checks and, according to the
README, I should have no trouble starting the server. Here are my
steps and the error obtained:
% package require cmdline
1.3
% package require base64
2.3.2
% package require ncgi
1.3.2
% package require html
1.4
% package require counter
2.0.4
tclsh bin/httpd.tcl -debug 1
auto_path:
/usr/lib/tclhttpd3.5.1/bin/../lib
/usr/share/tcl8.4
/usr/share
/usr/lib
/usr/lib/tklib0.4
/usr/lib/tcllib1.10
/usr/share/tcl8.4/tklib0.4
/usr/share/tcl8.4/tcllib-1.9
/usr/lib/tclhttpd3.5.1/bin/../custom
Running with 256 file descriptor limit
Running as user 50 group 50
Error processing main startup script "/usr/lib/tclhttpd3.5.1/bin/
httpdthread.tcl".
invalid command name "::isaac::isaac"
The only tcllib I have installed is tcllib1.10 (the README references
potential trouble is more than one tcllib exists). I don't find any
references to this install error - any thoughts?
Thanks,
-Kevin
On Aug 11, 11:10 am, jkj <ke...@vexona.com> wrote:
> I'm mainly posting this because the instructions seem so cut-n-dried
> that I would not expect a failure. I acquired tclhttpd3.5.1.tar.gz,
> untar'd it in /usr/lib, ran through some checks and, according to the
> README, I should have no trouble starting the server. Here are my
> steps and ...
What's wrong with "fconfigure stdout -encoding utf-8" on windows in Tcl 8.5.10With my built 8.5.10 I tried to issue command "fconfigure stdout -
encoding utf-8" to tclsh on WinXP, the tcl prompt then was shown as
two dots instead of percentage sign,
C:\>tclsh85t.exe
% fconfigure stdout -encoding utf-8
=E2=80=A5date
The current date is: 11/29/2011 Tue
Enter the new date: (mm-dd-yy) time
The system cannot accept the date entered.
Enter the new date: (mm-dd-yy)
=E2=80=A5
=E2=80=A5
So wonder what's wrong with fconfigure on stdout? Is that the issue?
On Nov 29, 7:46=C2=A0am, "wrena...@gmail.com" <wrena...@gmail.com> wrote:
> With my built 8.5.10 I tried to issue command "fconfigure stdout -
> encoding utf-8" to tclsh on WinXP, the tcl prompt then was shown as
> two dots instead of percentage sign,
>
> C:\>tclsh85t.exe
> % fconfigure stdout -encoding utf-8
> =E2=80=A5date
> The current date is: 11/29/2011 Tue
> Enter the new date: (mm-dd-yy) time
> The system cannot accept the date entered.
> Enter the new date: (mm-dd-yy)
> =E2=80=A5
> =E2=80=A5
>
> So wonder what's wrong with fconfigure on stdout? Is that the issue?
Short answer: Yes.
Longer answer: The encoding in Windows is not UTF-8 but one of cp....
flavors.
Question: what did you expect that to do?
Mark
On 29/11/2011 06:59, Mark Janssen wrote:
> Short answer: Yes.
> Longer answer: The encoding in Windows is not UTF-8 but one of cp....
> flavors.
Also, the code that writes to the (genuine) ...
http::geturl returns "data error" with tcl 8.6I have troubles using the http::geturl with RIPE's REST API.
With TCL 8.5 it works:
% puts $tcl_version
8.5
% package require http
2.7.5
% http::geturl http://www.hp.com/index.html
::http::1
% http::geturl http://rest.db.ripe.net/search
::http::2
%
With 8.6 it doesn't:
% puts $tcl_version
8.6
% package require http
2.8.7
% http::geturl http://www.hp.com/index.html
::http::1
% http::geturl http://rest.db.ripe.net/search
data error
%
Why am I getting this "data error" back ?
What specific Tcl 8.6 version ([info patchlevel]) ? 8.6.2 had some ...
problem with "file executable" on windows, tcl 8.5.2ActiveState TCL 8.5.2, Windows XP SP2
'file executable' always returns 0, even on .exe and .bat when asked
for a file on a network share:
% info patchlevel
8.5.2
% set file L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe
L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe
% file exists $file
1
% file readable $file
1
% file executable $file
0
% file executable {L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat}
0
However, when copying the files to local disk, the files are qualified
as executable:
% cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat d:/temp
% file executable d:/temp/simenu.bat
1
% cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe d:/temp
% file executable d:/temp/gen.exe
1
Also:
% set argv0
D:/Programme/tcl/bin/tclsh85.exe
% file executable $argv0
1
The L:/ Network Share is an Samba share mounted from a linux box.
Are there any special requirements for the smb options?
Thanks
R'
Ralf Fassel said on 24/04/2008 21:21:
> ActiveState TCL 8.5.2, Windows XP SP2
>
> 'file executable' always returns 0, even on .exe and .bat when asked
> for a file on a network share:
> The L:/ Network Share is an Samba share mounted from a linux box.
I have opened a similar report some time ago for file readable on a
Samba share. Still open. See:
http://sourceforge.net/tracker/index.php?func=detail&aid=1613456&group_id=10894&...
_tkinter.TclError: can't set "PY_VAR0": invalid command name "-1210125972check"Hi,
I searched the web and docs but cannot figure out whats wrong with this
code:
#!/usr/bin/python
import Tkinter as Tk
class testtk(Tk.Frame):
def __init__(self):
self.root = Tk.Tk()
Tk.Frame.__init__(self,self.root)
self.frame = Tk.Frame(self.root)
self.var = Tk.StringVar()
self.var.trace_variable('w',self.check)
Tk.Entry(self.frame, textvariable = self.var).pack()
self.frame.pack()
Tk.mainloop()
def check():
pass
if __name__ == "__main__":
t = testtk()
t.var.set("TEST")
Result:
Traceback (most re...
Tcl 8,5 tutorial errata on page "More Examples Of Regular Expressions"Hi,
In the Tcl 8.5 tutorial, a page titled "More Examples Of Regular Expressions" may contain errata in the following Tcl code:
"
set string "Again and again and again ..."
if { [regexp {(\y\w+\y).+\1} $string => word] } {
puts "The word $word occurs at least twice"
}
"
You can see that the command 'regexp' sets a value into a variable called '=>'.
This can be proved by executing the following code:
"
set string "Again and again and again ..."
if { [regexp {(\y\w+\y).+\1} $string => word] } {
puts "The word $word occurs at least twice"
}
upvar #0 "=>" x
puts "$x"
"
I guess that the author meant to write something else?
It doesn't make sense to have a variable named "=>".
Here's a link to the relevant page in the tutorial:
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl20a.html
Thank you.
On Tuesday, 12 November 2013 08:43:08 UTC+11, dor...@gmail.com wrote:
> Hi,
>=20
>=20
>=20
> In the Tcl 8.5 tutorial, a page titled "More Examples Of Regular Expressi=
ons" may contain errata in the following Tcl code:
>=20
>=20
>=20
> "
>=20
>=20
>=20
> set string "Again and again and again ..."
>=20
> if { [regexp {(\y\w+\y).+\1} $string =3D> word] } {
>=20
> puts "The word $word occurs at least twic...
"Tcl/Tk 8.5 tutorial"All the documentation at http://tcl.tk/man/ is available as
*html.tar.gz except "Tcl/Tk 8.5 tutorial". Is there a reason or
just an accident of history.
I have ActiveTcl installed and its associated
ActiveTclHelp8.6.chm . This trifocal wearing senior citizen finds
it impossible to read comfortably. I prefer HTML as I have my
browser configured for legibility. I wish to have the tutorial
available on my machine.
>=20
> I have ActiveTcl installed and its associated=20
> ActiveTclHelp8.6.chm . This trifocal wearing senior citizen finds=20
> it impossible to read comfortably. I prefer HTML as I have my=20
> browser configured for legibility. I wish to have the tutorial=20
> available on my machine.
A solution is to put the pages on your PC using httrack : http://www.httrac=
k.com/page/1/en/index.html. After installation and having given a "project =
name" and the path of a directory of your choice ( ex : xyz ) just then po=
int the address to http://tcl.tk/man/tcl8.5/tutorial/tcltutorial.html . Lau=
nch it . At the end, it will last a few minutes, you will see a file "index=
..html" in "xyz" directory . And... just doubleclick and here you are...
It is web copier that you can use for a set of pages. The default settings =
are such that you will download the necessary pages, not all the website, w=
hich is not legal I think.=20
Olivier.
On 3/11/2016 9:18 AM, Olivier wrote:
>>...
tcl 8.5.2 gives error on runtime arg "-c"Hi. I'm getting this error when launching a tcl script from a shell
with "-c some_argument" with tcl 8.5.2
Application initialization failed: bad window path name
"some_argument"
I've searched the manpage and several documentation sources and have
not found any restrictions over supplying runtime flag/arguments. Is
this a bug or a hidden feature?
dewuf wrote:
> Hi. I'm getting this error when launching a tcl script from a shell
> with "-c some_argument" with tcl 8.5.2
>
> Application initialization failed: bad window path name
> "some_argument"
>
> I've searched the manpage and several documentation sources and have
> not found any restrictions over supplying runtime flag/arguments. Is
> this a bug or a hidden feature?
see
http://www.tcl.tk/man/tcl8.5/UserCmd/wish.htm
use a -- to prevent the interp from even looking at the options
Bruce
On Feb 9, 2:36=A0pm, Bruce Hartweg <Bruce-DoNot...@example.com> wrote:
> dewuf wrote:
> > Hi. =A0I'm getting this error when launching a tcl script from a shell
> > with "-c some_argument" with tcl 8.5.2
>
> > Application initialization failed: bad window path name
> > "some_argument"
>
> > I've searched the manpage and several documentation sources and have
> > not found any restrictions over supplying runtime flag/arguments. =A0Is
> > this a bug or a hidden featu...
Problem with TDBC in Tcl 8.6.0: version conflict for package "TclOO"Hi,
I've got a problem with Tcl 8.6.0. I tried to run my tcls-script, but received the following error:
version conflict for package "TclOO": have 0.7, need 1.0.1
while executing
"load c:/tcl_x86/lib/teapot/package/win32-ix86/lib/tdbc_mysql1.0.0/tdbcmysql100.dll tdbcmysql"
("package ifneeded tdbc::mysql 1.0.0" script)
invoked from within
"package require tdbc::mysql "
(file "myscript.tcl" line 4)
Looks like the problem is in tdbc. I have already tried to install another version of tdbc, but it didn't help. This problem occures only in 8.6.0 Tcl version.
Can anybody help me?
Am Montag, 21. Oktober 2013 15:38:51 UTC+2 schrieb gama...@gmail.com:
> Hi,
>
> I've got a problem with Tcl 8.6.0. I tried to run my tcls-script, but received the following error:
>
>
>
> version conflict for package "TclOO": have 0.7, need 1.0.1
>
> while executing
>
> "load c:/tcl_x86/lib/teapot/package/win32-ix86/lib/tdbc_mysql1.0.0/tdbcmysql100.dll tdbcmysql"
>
> ("package ifneeded tdbc::mysql 1.0.0" script)
>
> invoked from within
>
> "package require tdbc::mysql "
>
> (file "myscript.tcl" line 4)
>
>
>
> Looks like the problem is in tdbc. I have already tried to install another version of tdbc, but it didn't help. This problem occures o...
Tcl "source" commandI'm trying to have two programs interact. One is a compiled FOrtran
code and the other is a Tcl/Tk script. I have the Fortran code write a
snip of Tcl I wish the script to "source" to effectively do what the
code is saying to do. I think I am getting hung up with WHEN the
"source" is happening. If I have, as I do, other instances of a file
being sourced that occurs when a button is pressed, that "source" is
apparently hidden from being done as the program starts. The "source" I
am trying to do in an "if" block (determining whether the file to be
sourced exists or not) happens "right now" and, as the file that needs
to be sourced does not exist, the script fails.
I need a way to "conditionally" execute the "source" command without the
"source .." having to be associated with a button. There must be a way
to do this.
Bruce Graham wrote:
> I'm trying to have two programs interact. One is a compiled FOrtran
> code and the other is a Tcl/Tk script. I have the Fortran code write a
> snip of Tcl I wish the script to "source" to effectively do what the
> code is saying to do. I think I am getting hung up with WHEN the
> "source" is happening. If I have, as I do, other instances of a file
> being sourced that occurs when a button is pressed, that "source" is
> apparently hidden from being done as the progra...
[Tcl] How to do "command with timeout"?
Ok, an example:
set fail [catch {gets stdin} result]
if { $fail } {
if { $result == "interrupted" } {
...
}
}
It passed thru the condition, because in 10 seconds the used did not enter
anything. How to program such a behavior?
I tried with enclosing it in a procedure (should be level #1 then) and I used
"after 10000 uplevel #1 return". However this script was invalid - despite
that the code actually executed was level #1, the "after" command (after 10000
ms of course) reported that #1 is invalid level.
Does anyone know any other way to program &quo...
"""""""""ADD ME""""""""""Hi ,
Hope you are doing great.
Please let me take this opportunity to introduce myself, Iam Karthik
working with BhanInfoi Inc, a NY based company. We have consultants
on our bench on various technologies, my request is to add me to your
distribution list and kindly do send me the requirements. i have the
below list available
1. Mainframe
2. Java
3.. Financial Analyst
4. Data Architect
If there is any vendor ship agreement which has to be signed then I
would like to take an opportunity to represent my company and expect
your cooperation...
...
3 problems with "A small editor in 8.5.0" ( http://wiki.tcl.tk/20542)I'm using Tcl/Tk 8.6.4 under WinXP Pro.
Problem 1. I don't see any where to specify desired font.
There is a code fragment saying
-----------
proc textfenster {mframe {master {}}} {
if {$master eq {}} {
text [set mframe].t -bg white -xscrollcommand [
----------------------------
which I edited to be
-----------
proc textfenster {mframe {master {}}} {
if {$master eq {}} {
text [set mframe].t -font "Courier 20" -bg white
-xscrollcommand [
----------------------------
It made no difference.
Problem 2. Although moving the butto...
BWidget tree can't be "packed" in latest tcl/tk (8.6.b1.1)With windows (2k/xp) and 8.6b1 tcl/tk in a tclkit my code works. I
just found a newer tclkit, 8.6b1.1 and the below test code is now
suddenly broken. It gets an error on the second pack statement:
"cannot use geometry manager pack inside .wtree_top.sw which already
has slaves managed by grid"
Is there a new restriction (or one that is now enforced) that has
recently been added that causes this to break?
It would be a rather sad development if I could no longer use BWidget
trees with the pack manager.
--------------------------------------
I built my own tclk...
checkbuttons in tcl 8.4.12 and 8.5a4 with -offvalue == ""?Hello,
I just realized some differences between the checkbuttons visualisation
in tcl 8.4 and 8.5.
If the offvalue of a checkbutton is set to "" (empty string) and the
checkbutton is not "checked", than ...
- in tcl 8.4.12 the background is white
- in tcl 8.5a4 the background is grey and the "check" is still
visible
That's a bug, isn't it?
If the offvalue is " " (one blank), than every thing works.
Best regards,
Martin Lemburg
UGS - Transforming the Process of Innovation
MartinLemburg@UGS wrote:
> Hello,
>
> I just reali...
Bug789040 came back in Tcl 8.4.6 and Tcl 8.5.Dear All,
Bug 789040 caused exec error in Windows 9x and was fixed in 10/04/03.
But it came back in Tcl 8.4.6 and Tcl 8.5. Tcl Windows 9x users
should be alerted to the possible failure of exec in the current Tcl
8.4.6 and 8.5 releases due to this bug.
Chengye Mao
http://www.geocities.com/~chengye
Chengye Mao wrote:
> Bug 789040 caused exec error in Windows 9x and was fixed in 10/04/03.
> But it came back in Tcl 8.4.6 and Tcl 8.5. Tcl Windows 9x users
> should be alerted to the possible failure of exec in the current Tcl
> 8.4.6 and 8.5 releases due to this bug.
Have you i...
"pipe" in Tcl 8.5ffHi,
I am looking for a replacement of the "pipe" command of tclx. This
command creates a FIFO and returns one fd for reading and one for
writing. A similar command in C is
#include <unistd.h>
int pipe(int pipefd[2]);
How do I do that with plain Tcl (version >= 8.5)?
Best regards
Ole
Στις 8/8/2013 2:38 μμ, ο/η Olе Streicher έγραψε:
> Hi,
>
> I am looking for a replacement of the "pipe" command of tclx. This
> command creates a FIFO and returns one fd for reading and one for
> writing. A similar command in C is
>
> #include <unistd.h>
> int pipe(int pipefd[2]);
>
> How do I do that with plain Tcl (version >= 8.5)?
>
> Best regards
>
> Ole
>
In tcl 8.6, with the "chan pipe" command. In tcl 8.5, with the tclpipe
extension:
http://wiki.tcl.tk/21637
If you need this for executing commands, see the man page for "open" and
possibly "exec".
George
Hi George,
George Petasis <petasisg@yahoo.gr> writes:
> Στις 8/8/2013 2:38 μμ, ο/η Olе Streicher έγραψε:
>> I am looking for a replacement of the "pipe" command of tclx.
> In tcl 8.6, with the "chan pipe" command. In tcl 8.5, with the tclpipe
> extension:
>
> http://wiki.tcl.tk/21637
Is there a way to do it in plain tcl, without the need to compile an
external package?
> If you need this for executing commands, ...
"my" and "our"Hi,
while testing a program, I erroneously declared the same variable twice
within a block, the first time with "my", the second time with "our":
{
my $fz = 'VTX_Link';
.... ( around 200 lines of code, all in the same block)
our $fz = 'VTX_Linkset';
...
}
So the initial contents of the $fz declared with "my" is lost, because
"our" creates a lexical alias for the global $fz, thus overwriting the
previous "my" declaration.
It was my error, no question. But I wonder why Perl doesn't mention
this - even with "use s...
about "++" and "--"why this program snippet display "8,7,7,8,-7,-8"
the program is:
main()
{
int i=8;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",++i,--i,i++,i--,-i++,-i--);
}
> why this program snippet display "8,7,7,8,-7,-8"
Ask your compiler-vendor because this result is IMHO implementation-defined.
Check this out:
http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.15
http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.16
Regards,
Irina Marudina
fxc123@gmail.com wrote:
> why this program snippet display "8,7,7,8,-7,-8&q...
"out" and "in out"Hi i found the following explaination:
In Ada, "in" parameters are similar to C++ const parameters. They are
effectively read-only within the scope of the called subprogram.
Ada "in out" parameters have a reliable initial value (that passed
in from the calling subprogram) and may be modified within the scope
of the called procedure. Ada "out" parameters have no reliable
initial value, but are expected to be assigned a value within the
called procedure.
What does "have no reliable initial value" mean when considering the "out"
parameter?
By c...
invalid command name "fork"Can anyone help me to recitfy this error.
while trying to use fork it is showing error invalid command name "fork"
....
code is as follows.
for {set i 0} {$i < 100} {incr i} {
set pid [fork]
switch $pid {
-1 {
puts "Fork attempt #$i failed."
}
0 {
puts "I am child process #$i."
exit
}
default {
puts "The parent just spawned child process #$i."
}
}
}
Am 05.01.15 um 13:1...