Quantcast
Channel: ActiveState Community Site - Installation Support for ActiveTcl
Viewing all 76 articles
Browse latest View live

TCLSH application has stopped working error observed when run telnet in windows 7 machine

$
0
0

Hi,
I am observing error as "tclsh application has stopped working" in windows 7 machine when i execute telnet with expect. However it is working in windows XP machine.

It says "Tclsh Application has stopped working - Windows is checking for a solution to the problem..." After few seconds "Tclsh Application has stopped working - A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available".

Can anyone help me on this issue.

proc telnetAccess {IP Port} {
puts "\nConnecting to Com Port :$IP $Port"
set temp [exp_spawn telnet $IP $Port]
puts " temp: $temp\n"
set send_slow {1 .05}
set timeout 10
set device $spawn_id
puts "spawn id : $spawn_id "
exp_send -i $device -s -- "\r"
puts "after exp_send "
expect {
-i $device -re "Command Error(.*)CRS-A>" {
puts " command Output2:start $expect_out(buffer) \n"
break
}
-i $device -re "CRS-A>" {
puts " command Output3:start $expect_out(buffer) \n"
break
}
timeout {
puts "timeout occurs\n"
break
}
}
}

set ip 10.55.158.189
set port 2016

telnetAccess $ip $port

tclsh Version is 8.4.14.0
expect version is 5.43

Thanks,
Kirankumar Naidu K


When is Thread pkg version 2.7 going to be available?

$
0
0

Installed ActiveTCL v 8.6b8 and it is still using Thread 2.6.7.
Thanks,
chris

ActiveTcl Windows Installation not allowing "all users" install

$
0
0

Windows 7 Install of ActiveTicl 64-bit not allowing all users
komodingo | Fri, 2012-11-16 05:08
I am installing the lastest Windows version of ActiveTcl 64-bit. I get to a dialog box that asks me to "Please specify installation directory and mode.

Installation mode

( ) Install for current user only

( ) Install for all users (requires Administrative privileges)

I have admin privileges for my user ID so I don't understand why it isn't allowing the 2nd option to be selected.

tclsh8.5 uninstall binary fails to uninstall over ssh

$
0
0

I was able to install the ActiveState tcl package over ssh, but now I cannot uninstall it.

-bash-3.00$ sudo ./uninstall
no display name and no $DISPLAY environment variable
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

So, I set DISPLAY=localhost:0

-bash-3.00$ ls
install_data.tcl  install_lib.tcl  install.tcl  install_welcome.txt  license-at8.5-thread.terms  payload  README-8.5-thread.txt
install_images    install.sh       install.tk   lib                  MANIFEST_at8.5.txt          pdemos   uninstall
-bash-3.00$ sudo ./uninstall
couldn't connect to display "localhost:0"
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

Any ideas?

Thanks,

Ed

ActiveTcl 8.6 release does not correspond to Tcl/Tk 8.6...

$
0
0

Hi all,

I have just updated to ActiveTcl 8.6 (not beta release), but I have troubles with it.
The release does not seem to correspond to Tcl/Tk 8.6, as it contains obsolete packages in it (i.e. beta versions of tdbc and its drivers, itcl, etc.).

And this happens for all OS I have tried (windows, linux 64, OS X).
In addition, it seems all tdbc drivers are missing for both the distribution, and the teapot repositories.

I am also facing problems with the teapot repository, it is awfully slow. "teacup update" runs for many many hours, under both windows & OS X. Under Linux seems a little faster.

I need to package an application with TDK, and I am out of options, I need the tdbc drivers.

George

Incomplete Linux install ?

$
0
0

Hi!

I just installed ActiveTcl and TDK, but can not run the BWidget TclApp demo. The TDK demo project file contains :

Path                   {Relativeto {/home/renaud/activestate/tcl8.6/demos/BWidgets}}
Path                   {File {/home/renaud/activestate/tcl8.6/demos/BWidgets/demo.tcl}}
Path                   {File {/home/renaud/activestate/tcl8.6/demos/BWidgets/*.tcl}}
Path                   {File {/home/renaud/activestate/tcl8.6/demos/BWidgets/*.xbm}}

The installation path is correct, but there is no /demos/BWidgets directory there : the demos directory contain only a Tk8.6 subdirectory.

Thanks for your help.

Renaud

teacup does not work with UNC path

$
0
0

I am using teacup to install a missing package. However, the "teacup list" generated the following error message on Windows 7:

0 entities found

Problems which occurred during the operation:
* http://teapot.activestate.com :
Error in constructor: Not a repository: Index database
"//agth.xgh.net/ag102$/Teapot/D%3a%2fProgramme%2fTcl.win32-x86_64/indexcache/teapot.activestate.com/INDEX":
Read access is denied

The home directory is H:, which synchronizes with a network driver.

Any one can help me? Thanks.

Expect. The request is not supported.

$
0
0

Hello, ActiveState community.
When I try to run my application with spawn method:
spawn ctatest.exe
I get the following error:

The request is not supported.
while executing
"spawn ctatest.exe"
(file "ctatest_5.tcl" line 9)

Could You please tell me, what can cause this error?
And what can I do for execution my application with "spawn" method?
Such error occured when I try to run, for example, "spawn dir".
My test script in attachment.
I use x86 version of ActiveTcl.

Thanks for the help, in advance.
P.S. Sorry for my english, I still learning.

AttachmentSize
ctatest_5.tcl_.tar_.gz268 bytes

Expect Demos

$
0
0

Having just installed TCL 8.5.9, and using Teacup to install the Expect Pakage successfully, I can't find the Expect Demo. The documentatio indicates:

"Expect for Windows includes a number of demonstration applications to help you get started. These demos are installed in the demos\Expect directory beneath the Tcl installation directory (by default, C:\Tcl\demos\Expect)."

HOwever, the demos are not present here.

Having a problem? Check here first:

mysqltcl.dll not found

$
0
0

Dears,
I'm new to TCL
I'm Using Windows 7 and TCL8.6
I tried to connect MySQL Database using mysqltcl
downloaded mysqltcl package from http://www.xdobry.de/mysqltcl/windows.html and placed the folder inside the Tcl/lib

when run the below code
package require mysqltcl

error: couldn't load library "mysqltcl.dll": invalid argument

Please help to resolve this issue

TCLSH application has stopped working error observed when run telnet in windows 7 machine

$
0
0

Hi,
I am observing error as "tclsh application has stopped working" in windows 7 machine when i execute telnet with expect. However it is working in windows XP machine.

It says "Tclsh Application has stopped working - Windows is checking for a solution to the problem..." After few seconds "Tclsh Application has stopped working - A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available".

Can anyone help me on this issue.

proc telnetAccess {IP Port} {
puts "\nConnecting to Com Port :$IP $Port"
set temp [exp_spawn telnet $IP $Port]
puts " temp: $temp\n"
set send_slow {1 .05}
set timeout 10
set device $spawn_id
puts "spawn id : $spawn_id "
exp_send -i $device -s -- "\r"
puts "after exp_send "
expect {
-i $device -re "Command Error(.*)CRS-A>" {
puts " command Output2:start $expect_out(buffer) \n"
break
}
-i $device -re "CRS-A>" {
puts " command Output3:start $expect_out(buffer) \n"
break
}
timeout {
puts "timeout occurs\n"
break
}
}
}

set ip 10.55.158.189
set port 2016

telnetAccess $ip $port

tclsh Version is 8.4.14.0
expect version is 5.43

Thanks,
Kirankumar Naidu K

Expect support for Windows 7

$
0
0

I regularly develop standalone utilities to simplify, make more efficient and mitigate the chance for errors during my customer support activities. These utilities make heavy use of the TclDev kit libs and Expect. Its my understanding Expect is not supported on Windows 7 which is becoming more and more restrictive. Are there any plans to support a Windows 7 native Expect lib?

A bug found in Plotchart package in the currently published ActiveTCL Linux 64 bit community edition.

$
0
0

A bug found in Plotchart package in the published ActiveTCL Linux 64 bit community edition (file name in the downloads page is ActiveTcl8.6.0.0.296563-linux-x86_64-threaded.tar.gz).

when you issue:

% package require Plotchart

you get : conflicting versions 2.1.0 and 2.0.1 . and it cannot include Plotchart package.

I consulted #tcl channel of freenode. Thanks to "Johannes13" he solved it.

Open this file "plotchart.tcl" in your installation of ActiveTcl 8.6 directory. I have my directory in Linux as /opt/ActiveTCL8.6/. so I open:

/opt/ActiveTcl-8.6/lib/teapot/package/tcl/lib/Plotchart2.1.0/plotchart.tcl

and go to the very last line in the file "plotchart.tcl" and change the line from:
package provide Plotchart 2.0.1

to be :
package provide Plotchart 2.1.0

that's all.. it was just a silly typo! :)

teacup' install' problem installing cwind; can't overwrite file

$
0
0

Fresh tcl 8.6 32bit installation.

Package require cwind1.4 works. package is in tcl/lib

run cmd as administrator (already tried running from tkcon and wish) results in;

(bin) 1 % teacup install c:/tcl/lib/cwind1.4
INTERNAL ERROR ______________________
INTERNAL ERROR can't overwrite file "C:/Users/RickH/AppData/Local/Temp/tpmrOorCZnoSg" with directory "c:/tcl/lib/cwind1.4"
INTERNAL ERROR while executing
INTERNAL ERROR "# Compiled -- no source code available
INTERNAL ERROR error "called a copy of a compiled script""
INTERNAL ERROR (procedure "GetUrl" line 1)
INTERNAL ERROR invoked from within
INTERNAL ERROR "# Compiled -- no source code available
INTERNAL ERROR error "called a copy of a compiled script""
INTERNAL ERROR (procedure "::repository::client::Snit_methodinstallUrl" line 1)
INTERNAL ERROR invoked from within
INTERNAL ERROR "# Compiled -- no source code available
INTERNAL ERROR error "called a copy of a compiled script""
INTERNAL ERROR (procedure "::repository::capp::Snit_methodinstall" line 1)
INTERNAL ERROR invoked from within
INTERNAL ERROR "::capp1 install c:/tcl/lib/cwind1.4"
INTERNAL ERROR ("eval" body line 1)
INTERNAL ERROR invoked from within
INTERNAL ERROR "# Compiled -- no source code available
INTERNAL ERROR error "called a copy of a compiled script""
INTERNAL ERROR ______________________
(bin) 2 % package require cwind
1.4.0
(bin) 3 %

Please advise on process/fix...

Thanks,

Rick


expr returning invalid value

$
0
0

I was doing some simple floating point math, and came across this anamoly.
Have verified on Windows 7 and 8, both in tclsh and wish.

(C:/Tcl/bin) % set m 1
1
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.1
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.2000000000000002
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.3000000000000003
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.4000000000000004
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.5000000000000004
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.6000000000000005
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.7000000000000006
(C:/Tcl/bin) % set m [expr {$m + 0.1}]
1.8000000000000007
(C:/Tcl/bin) %

unable to alloc 4114 bytes

$
0
0

hi

I got this error massage in middle of my program "unable to alloc 4114 bytes"

I will be pleased if someone guide me that what is it and how to solve it.

Thanx

StarPack auto_path seems wrong in threads (Can't find packages inside the StarPack) - using TclApp

$
0
0

Hi,

I am creating a StarPack for an application that uses several packages. The application creates several threads as it runs. When the threads tries to use one of the packages it can not find them. I use the VFS Explorer and I see the packages included in the Starpack.
Under $starkit::topdir/lib I can see directories for my custom TCL packages and other sub directories. Something as shown below.

$starkit::topdir/lib/
$starkit::topdir/lib/P-tcl
$starkit::topdir/lib/P-win32-x86_64
$starkit::topdir/lib/tcl8
$starkit::topdir/lib/tcl8/8.4
$starkit::topdir/lib/tcl8/8.4/
$starkit::topdir/lib/tcl8/8.5
$starkit::topdir/lib/tcl8/8.5/
$starkit::topdir/lib/tcl8/8.6
$starkit::topdir/lib/tcl8/8.6/
$starkit::topdir/lib/tcl8.6
$starkit::topdir/lib/tcl8.6/
$starkit::topdir/lib/tk8.6
$starkit::topdir/lib/tk8.6/

Setting the thread auto_path during the thread creating to the $starkit::topdir/lib is not finding the packages in the sub directories as I believe auto_path does not traverse to subdirectories.

Right now I am in the process of writing some code to add to the thread auto_path all subdirectories under the $starkit::topdir/lib directory but I was wondering if there was a better way to do this. It seems that I am missing something basic. I am not sure why the threads are not able to find the packages. It seems to me this is a basic thread/StarPack functionality.

Please advice.

Thanks in advance,
Frank

ActiveTcl Windows Installation not allowing "all users" install

$
0
0

Windows 7 Install of ActiveTicl 64-bit not allowing all users
komodingo | Fri, 2012-11-16 05:08
I am installing the lastest Windows version of ActiveTcl 64-bit. I get to a dialog box that asks me to "Please specify installation directory and mode.

Installation mode

( ) Install for current user only

( ) Install for all users (requires Administrative privileges)

I have admin privileges for my user ID so I don't understand why it isn't allowing the 2nd option to be selected.

tclsh8.5 uninstall binary fails to uninstall over ssh

$
0
0

I was able to install the ActiveState tcl package over ssh, but now I cannot uninstall it.

-bash-3.00$ sudo ./uninstall
no display name and no $DISPLAY environment variable
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

So, I set DISPLAY=localhost:0

-bash-3.00$ ls
install_data.tcl  install_lib.tcl  install.tcl  install_welcome.txt  license-at8.5-thread.terms  payload  README-8.5-thread.txt
install_images    install.sh       install.tk   lib                  MANIFEST_at8.5.txt          pdemos   uninstall
-bash-3.00$ sudo ./uninstall
couldn't connect to display "localhost:0"
    while executing
"load /home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded Tk 8.5.13" script)
    invoked from within
"package require Tk"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/uninstall.tcl" line 37)
    invoked from within
"source      $startup"
    (file "/home/eoj/tcltmp/ActiveTcl8.5.13.296436-linux-x86_64-threaded/uninstall/main.tcl" line 38)

Any ideas?

Thanks,

Ed

Viewing all 76 articles
Browse latest View live