Quantcast
Channel: ActiveState Community Site - TDK support
Viewing all 30 articles
Browse latest View live

can't find package tbcload 1.6

$
0
0

Hi~ There,
I am stuck, could you please help??

Many thanks!!
Frank

[root@localhost bin]# uname -an
Linux localhost.localdomain 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux

[root@localhost bin]# ./teacup update-self
Updating /root/src/tcl/ActiveTcl-8.5/bin/teacup ...
Found newer version 8.5.10.1.295317 (linux-glibc2.3-ix86) @ http://teapot.activestate.com

Retrieving application teacup 8.5.10.1.295317 linux-glibc2.3-ix86 ...@ http://teapot.activestate.com ... Ok
Copying ...
Ok

[root@localhost bin]# ./teacup update
Retrieving package ftp 2.4.11 tcl ...@ http://teapot.activestate.com ... Ok
Retrieving package sqlite3 3.7.8 linux-glibc2.3-ix86 ...@ http://teapot.activestate.com ... Ok
:
:
Installed 8 newer packages
Installed 567 unknown packages

[root@localhost code]# /root/src/TclDevKit-5.2/bin/tclapp -prefix /root/src/tcl/ActiveTcl-8.5/bin/base-tk8.5-thread-linux-ix86 -compile -compilefor 8.5 -out tclapp-out -architecture tcl -notbcload main.tcl
info | Tcl Dev Kit TclApp
info | Copyright (C) 2001-2011 ActiveState Software Inc. All rights reserved.
info | Licensed to Trial User (Trial license, serial number *2180141249*).
info |
info | Embedding license information into wrap result as comments.
info |
info | Expires: 15-10-2011.
info |
info | WARNING: All applications generated by this trial version
info | will also stop working on 15-10-2011.
info Expanding...
info Following only profile dependencies
info
info Issues...
info
notice Packages ...
notice * No packages
info Inserting TEApot metadata
info Nothing to insert
info
notice Extending the list of provided packages
info
info F* 160KiB /root/code/main.tcl
info
info Generated tclapp-out

[root@localhost code]# ./tclapp-out
/root/code/tclapp-out/lib/application/main.tcl: The TclPro ByteCode Loader is not available or does not support the correct version -- can't find package tbcload 1.6
while executing
"source $startup"
(file "/root/code/tclapp-out/main.tcl" line 52)


Error running starpack on Mac when tcl files are compiled

$
0
0

I'm trying to generate a standalone Tcl application using tclapp. The generated runtime works as long as I don't compile the Tcl code.

The error I get when I run the compiled runtime is:

test.tcl: The TclPro ByteCode Loader is not available or does not support the correct version -- dlopen(/var/tmp/tclwNROwK, 6): no suitable image found. Did find:
/var/tmp/tclwNROwK: file too short
while executing
"source $startup"
(file "main.tcl" line 38)

I'm using TDK 5.3 build 295349 (but tclapp reports it is build 295336) and I have reinstalled it and verified the files were updated properly. I have tried several different prefix files all with the same result.

I also tried running tclvfse an received the following error:

can't find package splash
while executing
"# Compiled -- no source code available
error "called a copy of a compiled script""
(procedure "::splash_hook" line 1)
invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
(procedure "go" line 1)
invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
invoked from within
"tbcload::bceval {
TclPro ByteCode 2 0 1.7 8.5
27 0 232 35 0 0 120 0 9 27 31 -1 -1
232
w0E6#2)>6#3,>6#6G:3w<&5p..."
(file "/Applications/ActiveState ActiveTcl/tclvfse.app/Contents/MacOS/tclvfse/main.tcl" line 7)
invoked from within
"source {/Applications/ActiveState ActiveTcl/tclvfse.app/Contents/MacOS/tclvfse/main.tcl}"
("uplevel" body line 1)
invoked from within
"uplevel [list source [file join $self main.tcl]]"

I'm running on Lion 10.7.3 and have run teacup update for the latest versions.

Chuck

TclApp not wrapping 256 x 256 icon files

$
0
0

My current setup is ActiveTcl 8.5.11.0 and ActiveTclDevKit 5.3.0 on a Windows XP machine (I've tested this on a Windows 7 64-bit machine with the same results).

When packing custom icons using TclApp and the provided basekit (base-tk8.5-thread-win32-ix86.exe) I have no problems packing all icons EXCEPT the 256 x 256/32 bpp icon. The tooltip on the "Basic" screen tab says that the basekit does indeed contain this icon but will say "missing" when I add it to the custom icon file. I've quadruple checked the icon size to ensure it conforms to 256x256/32bpp.

What's even more intriguing is the tooltip (and wrapping output) confuses the 256 x 256/32 bpp icon that I've added as a 0 x 0/32 bpp icon. I've tested this by removing the 256 pixel icon and the entry goes away. This suggests to me that a variable somewhere is not long enough to properly contain the image size but I can't find a workaround.

TclApp Run output:

Inserting custom -icon C:/Documents and Settings/Josh/Desktop/Program Icons/exe_icons/more icons/exe_icons/exe_icons_6.ico
    [__] 0x0/32bpp: ignored, missing in prefix
    [02] 128x128/32bpp: replaced
    [03] 64x64/32bpp: replaced
    [04] 48x48/32bpp: replaced
    [05] 32x32/32bpp: replaced
    [06] 24x24/32bpp: replaced
    [07] 16x16/32bpp: replaced
    [__] 256x256/32bpp: not replaced, missing in custom icon

I can't seem to find anybody who has reported a similar problem which strikes me as odd. Any thoughts on a cause, fix, or even a workaround? Is this a bug or did I make a mistake in setup?

Thanks for any help,
Josh @ Trifield

Very annoyed with Customer Service

$
0
0

I'm still using TDK3 and unfortunately due to a Windows reinstallation the license key has gone. Now I need to redownload it. But in my account there is no download link for the license key installer available anymore. So I contacted customer service by email.

The cumoster service representative keeps resending me the download link to the TDK3 itself, which I know, have and don't need. I sent 4 emails regarding this issue so far and always get the same wrong answer from the same customer service representative.

Could someone at ActiveState who reads my post here please address this issue.
I'd like to download my license.

Creating a "portable" TclApp project file (*.tpj)

$
0
0

I have quite a number of TclApp project files (*.tpj). Recently, I've reorganized the working copies of my source code and now need to update the TPJ files to coincide with those changes.

Generally, when I set up the "Files" section of a TclApp project, I add a reference folder, then insert files and or folders beneath that reference folder.

With that structure in mind, I assumed I could simply open the TPJ file and adjust the top-level "reference" folder to point to the new source location and all else would just fall into place. However, it seems that all paths are stored as absolute references in the TPJ file and therefore all contain the top-level folder name.

Here's a few example records:

Path                   {Relativeto C:/Users/jgodfrey/Dev/Tcl/ViewMSI}
Path                   {File C:/Users/jgodfrey/Dev/Tcl/ViewMSI/viewMSI.tcl}
Path                   Startup
Path                   {File C:/Users/jgodfrey/Dev/Tcl/ViewMSI/images/*.png}

Obviously, this is still easily fixed with some hand editing, but I wonder if there's not a better way to define my projects to keep the TPJ's more portable in the face of source code relocations? If there's not a better way, perhaps there should be?

Thanks for any advice.

Jeff Godfrey

Windows Server 2008 Support

$
0
0

I am currently using TclApp version 5.3 (build #295336) in conjunction with Tcl8.5 on a windows XP machine. I have an application that runs fine on my machine when built with the prefix file C:/Tcl/bin/base-tk8.5-thread-win32-ix86.exe. Should I expect this same EXE run fine on a PC running Windows server 2008

tbcload -is redirect error using tclapp.exe on Windows 7

$
0
0

I have a bunch of Windows .bat scripts that I use to build tclapps and they have been working fine for a while. I'm positive I did not change any of the build scripts at all but they are no longer working and I get the following error. Note the entire command line is not included below.

Again, this has been working for at least a year now.. This is using TCL Dev Kit 5.2

Thanks

Al Silverstein

tclapp.exe -compile -compilefor 8.5 -interpreter ./my_tkbase.exe -out myprogram.ngl ......

error package 'tbcload -is redirect' is not known (Specified, Not recoverable)
error
error Aborting
error

Install TDK, but TDK tool does not start, just application error occur.

$
0
0

I want to try Tcl Dev Kit. So I downloaded and installed. But TDK tools does not start. Always they show me an appliaction error dialog when I run TDK tool.

I try to re-install, but TDK tools does not run.

How do I recover?


Tcl App Wraping files

$
0
0

Hi

I am new to Tcl App. I am using TclApp 5.3.0. I am able to make an executable and run the same. But if i remove files locally from my system and run the executable it is still looks for the file and says file does not exists.

couldn't read file "MenuHandle.Tcl": no such file or directory
while executing
"source $item"
("foreach" body line 2)
invoked from within
"foreach item $lib_file{
source $item

}"

How can i solve this problem? i need to deliver as a standalone executable where in user wont have any of the tcl files. How can i do that?

Thanks in advance

Having a problem? Check here first:

Mac OS: mach-o, but wrong architecture / How to force the basekit to run in 32 bits?

$
0
0

I have a third party binary library that was linked in 32bits, and I've written a package to use from tcl. If I wrap an application with tclapp, the executable cannot load the extension. No problems from the wish from Apple, as it is compiled as 32 bits. If I "file" the ActiveTcl basekit, I see that it includes both the 64 and 32 bits, but it seems that always launches the 64bit interpreter.

How can I force to execute the 32 bit portion of the basekit? If I do 'Get Info'/'Open in 32-bit mode' in Finder, I still have the same problem.

Alternatively, is there a 32 bit only tk basekit for 8.5?

Thanks,

Miguel

Expect: removes cursor control terminal escape sequences from spawn output stream

$
0
0

I have posted two related entries in the TDK Discussion forum. This post provides additional debug detail. Can someone please advise if this is an Expect For Windows bug, or if there is a technique I am not using to include terminal escape sequences in the output stream of a spawned process?

Expect For Windows (E4W) strips out terminal escape sequences, which I also refer to as ANSI cursor control strings. My application needs these codes to work properly. Cygwin Expect provides the escape sequences in the output, as do other Expect implementations.

The attached zip contains the following debug information:

- A sample TCL/Expect source script, tput_tcl.tcl. It spawns telnet, then runs "tput cup 10 10" and "tput smso" to create cursor control in the telnet data stream.

- The TclApp .tbj project file. The .exe was not included because it causes the file attachment to exceed the 512K limit. The resulting tput_tcl.exe file is 581KB.

For the TclApp .exe, which strips out the terminal escape sequences, i.e. does not work, also included are:
- exp_internal and exp_log_user logs. The tput "esc[11;11H" escape sequence is missing.
- a screen shot of the exp::winnt_debug telnet debug window, showing the tput cursor control results. The cursor control strings from the tput commands are working.
- a Wireshark packet capture showing that the tput escape sequence above is in the data stream for the .exe version. See packet frame 175, which has the "1b 5b 31 31 3b 31 31 48" hex equivalent of the escape sequence.

For the Cygwin Expect invocation of the same .tcl script, the following are included:
- exp_internal and exp_log logs. The tput "[11;11H" escape sequence is present.

Thank You,

Larry Hybl

AttachmentSize
Expect_TerminalEscapeStrings.ZIP38.69 KB

Mac OS: mach-o, but wrong architecture / How to force the basekit to run in 32 bits?

$
0
0

I have a third party binary library that was linked in 32bits, and I've written a package to use from tcl. If I wrap an application with tclapp, the executable cannot load the extension. No problems from the wish from Apple, as it is compiled as 32 bits. If I "file" the ActiveTcl basekit, I see that it includes both the 64 and 32 bits, but it seems that always launches the 64bit interpreter.

How can I force to execute the 32 bit portion of the basekit? If I do 'Get Info'/'Open in 32-bit mode' in Finder, I still have the same problem.

Alternatively, is there a 32 bit only tk basekit for 8.5?

Thanks,

Miguel

TDK-TclApp OSX 10.9.2 resulting app won't execute because "Classic environment is no longer supported"

$
0
0

Hi, I'm trying to compile a Tcl/Tk 8.5 application on OSX 10.9 using TclApp. The resulting app does not execute, a warning panel pops up instead.

You can't open the application
"dscV3.app" because the Classic
environment is no longer supported.

I have used both the "/Library/Tcl/basekits/base-tk8.5-thread-macosx-universal" and "teapot:base-tk-thread/8.5.15.1.297985/macosx10.5-i386-x86_64"

The application compiles ok on the Windows version of TclApp.

Please let me know what may be the problem.

Thanks,

Victor

No starkit due to no "base-tcl-" and "base-tk-" on the installation folder

$
0
0

Hay Guys,
I am a new user to this TDK. Lately I found some issues when using the evaluation version of tclapp.

I download the evaluation package for linux x64 machine by choosing Linux(x86_64) from : Download Site. After I installed it on my machine, please notice that it doesn't have any base-tcl- and base-tk- folder.

My objection is to use TclApp to warp a file which might be used into another machine. So I execute: tclapp input.tcl without -prefix since I can't find any base-tcl- and base-tk- on my installation directory, however I got "can't find starkit" when I execute the output file.

From Example , it seems like there are other way to solve this problem which is
using tclapp GUI. However when I apply the same setting as the
Example , I found Package 'tbcload' tap definition ignored due to platform
mismatch. The pacakage is for platform 'linux-x86_64' An acceptable platform would have been '*' package 'tbcload is redirect' is not known (Specified, Not recoverable) Aborting Done with errors, please read the log

Can anyone guide me on this?

NB:I have tried to upload some pictures to this forum but I also got some error :(

Thank you in advance!
Best regards, Andi.


Error "file too big" when compiling tcl with TclDevKit 5.0 or 5.2

$
0
0

On our build machine, TclDevKit is working fine, but on the development machine I'm currently setting up I get this problem when using tclcompiler for whichever Tcl file I try to compile using the "tclcompiler" or "tclcompiler84" commands. It doesn't seem to let me cut and paste from the GUI so I will type it in here:

Command line:
/opt/TclDevKit-5.0/bin/tclcompiler84/main.tcl -verbose -nologo -prefix none /path/to/custom.tcl
Compiling...
Flag: -prefix none
Compilation of "/path/to/custom.tcl" failed: couldn't read file "/path/to/custom.tcl": file too big
Done

However, the file's contents are a dozen lines of boilerplate comments plus this code:

proc custom { invals } {
   
    set result ""

    return $result
}

It's only 1.4 KB so doesn't seem possible to be "too big". It gets this same error on all the other Tcl files that work fine when I try it on the build machine that's been working for years.

I've checked the TAPS are the same in the build machine and on my dev machine.

Any ideas?

Tclchecker Oratcl.pcx

$
0
0

Is there an updated Oratcl.pcx for the Oratcl 4.5 version? The one that came with our recent purchase of the TDK is only for version 2.5 and doesn't support what we need.

I tried modifying the file to add the missing commands (e.g., oraparse) and that solves some of the problems. But the orafetch command still logs an error because it doesn't recognize the -datavarible switch. When I changed the check to stop checking for the badSubstChar error and instead tried to add a check for the -datavariable switch, it gets a numArgs errors.

Also, everyone one of our oraplexec commands is generating warnUndefinedVar errors for each instance of name/value pairs. It thinks that everyone one of the names with the colon prefixing it is an undefined variable. We have over 2000 of them.

Thanks,
Diana Petty

TDK tclchecker version 5.4 not checking Tk commands

$
0
0

I've installed TDK 5.4, and the checker is no longer checking Tk commands. They are all flagged as undefined. The script I am checking includes a "package require Tk", and checks OK with TDK 5.3. If I run TDK 5.4 tclchecker with the -verbose option I see:

scanning: test.tcl
checking: test.tcl
test.tcl:1 (pkgUnchecked) Will not check commands provided by this package: Content mismatch, file "/opt/TclDevKit/bin/tclchecker/data/pcx/Tk.pcx" registered package "coreTk" instead
package require Tk
                ^
test.tcl:2 (warnUndefProc) undefined procedure: frame
frame .f
^

Packages Checked | Version
-----------------|--------
Tcl                8.5

Number of Errors:   0
Number of Warnings: 1

Number of messages per id:
--------------------------
  warnUndefProc  1

Commands that were called but never defined:
--------------------------------------------
  frame

Additional diagnostics.
--------------------------------------------------------------
Number of package uses without PCX definitions: 1

  Note: Use option -v or -check pkgUnchecked to see package names.
        This issue cannot be fixed in the Tcl code which was checked.
        Talk to the administrator for your Tcl Dev Kit installation
        about installing additional PCX files.

Tcl checker in TDK 5.4.0 reports lots more warnUndefinedVar than 5.3

$
0
0

I have a script that ran clean with tclchecker from TDK5.3 but under the version of tclchecker from TDK5.4.0, it reports almost 800 undefined variables. The script uses the snit package and it appears most of these are related to snit variables. It appears that the checker is complaining about the same variables over and over. The previous version of the checker also complained about these variables, but it seemed like adding a single "#checker exclude warnUndefinedVar" was sufficient to eliminate the warnings for all uses of that variable. Now it appears that I need to add "#checker" comment to every reference to the variable.

The undefinedVar warning has been useful to me in the past, but now there are so many warnings, that "real" errors are lost in the noise. Is there any switch or configuration that will make the new version behave more like the previous?

Thanks,
-paul

Tcl Dev Kit 5.4.0 Known Issues

$
0
0

Known Issues for TDK 5.4.0

-Release Notes update did not get included.

-OS X Yosemite compatibility. TclApp still has a dependence on /usr/X11R6/lib/libX11.6.dylib, which is not available on Yosemite. TclApp crashes silently on startup.

-Tclchecker does not handle Tk correctly.

Viewing all 30 articles
Browse latest View live