Windows 7

Attempting to install Ffidl using teacup

When I use teacup to try to install Ffidl from my local drive I get this error message:
Unable to install. No TEAPOT meta data found in TM archive
"C:/Users/kpmorlax/AppData/Local/Temp/tpmqAZzC06xR4", no
embedded meta data block

This is the command line:
C:\Users\kpmorlax>teacup install C:\Users\kpmorlax\Documents\WCS\TCL\Ffidl0.6\pk
gIndex.tcl

(imagine it's all on one line).

Missing msvcr70.dll

I have been using PDK for quite some time now to compile my wxPerl scripts and I have never had any problems with the x86 editions.

However, once I decided to upgrade to ActivePerl 5.12.2 x64 and PDK 9.0.1 x64 and even though my wxPerl scripts still compile just fine, I started receiving the following annoying error message:

Perltray PopupMenu stops my code from running

When a user right-clicks the system tray icon of my perltray application, the application stops executing my code.

To reproduce:
compile the attached script:
perltray --icon c:\Perl\bin\perl.exe --dependent --force --nogui --exe testevent.exe testevent.pl

- Run the application.
- Wait till the console shows "Heartbeat [sleep 2]" for the first time.
- Right click the system tray icon.

What happens on my system is that "Heartbeat [sleep 3]" is never shown. It is almost 100% reliably reproducible.

strange account problems

everytime I log in, I get message:

Your community site username has been updated to baikis; previously this was set to gatavas

When I try to post a comment, I get:

Access denied
You are not authorized to access this page.

I tried to comment here:
http://community.activestate.com/xpi/uploader

Name a new file with stdin

Hi all,

Im a newbie to Tcl and need some help/advice. I’m writing a program that will connect to several Cisco routers run some commands and send the output to a text file.

I want to name the text file with the hostname from the router prompt. In my current script below, the text file is created but there is no name.

I think the problem may be in these 2 lines

gets stdin line
set fh [open $line.txt a+]

My script below

package require Expect

package require Expect

set username cisco
set password cisco
set expect_out(buffer) {}

set IP [open "ip.txt" r]

Problem installing UDP Package

I just upgraded my machine from WinXP to Win7. I then installed ActvieTCL 8.5.9 and attempted to use teacup to install the udp package. However, I get the following error:

Retrieving package udp 1.0.9 win32-x86_64 ...@ http://teapot-be.activestate.com
... Error:

        This operation needs a business edition license installed to
        succeed. Please visit
        http://www.activestate.com/business-edition to learn more about
        the ActiveTcl Business Edition offering.

        Unable to install the full list. Aborting.

time functions execute out of order

I ran this code both interactively and as a .py file:

import time
def a():
    print "starting"
    time.sleep(5)
    print "finishing"

a()

My intention was to have "starting" print at the beginning, then a five second pause, then to have "finishing" printed.

Instead when I run the program, nothing happens for (a bit more than) 5 seconds, then "starting" and "finishing" print right after each other with no pause between them.

The same thing happened when I replaced the time.sleep(5) function with a handmade 5-second-pause function.

mysql + not EN characters

Hi, I'm using activeperl in win7 and have the following problem with MySql connection.

For a reason I can't select data when "where" clause contains some not EN characters. Returned data set is always empty. I tried to set mysql_enable_utf8=1 and unicode collation but with no success. The same script works properly with Strawberry perl. Could you please help?

Many thx in advance.

Trouble with PPM and @INC

I am installing the W3C Validator (validator.w3.org) which I have done many times before.
It requires SGML::Parser::OpenSP which is only available in precompiled form for 5.8, and compiling it is very hard (because of some dependencies).

Introduction out of the way, I installed ActivePerl in C:\Webserv\ActivePerl\5.8.9\.
PPM and the CPAN command line are adding modules to .\site\lib instead of .\lib.
I changed the #! in the script to #!C:/Webserv/ActivePerl/5.8.9/bin/perl.exe -T
and Apache seems to be executing it properly, but I get this error:

idle closes immediately

I installed ActivePython 2.7 (32-bit) on a Windows 7 box (x64). When I run idle from the Start menu, idle closes its window immediately. If I run idle from a cmd box, it seems to run fine:

> cd \ActivePython27
> Lib\idlelib\idle.bat

Any thoughts?