Windows 7

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?

can't uninstall ActivePython...

I did an uninstall of ActiveState python both 64 & 32 bit versions, and even a reboot, and installed the FOSS (python.org)python (2.7).

But oddly enough, when I run python (cmd line) I still get ActiveState python reported:
E:\Plang\python>python
ActivePython 2.7.0.2 (ActiveState Software Inc.) based on
Python 2.7 (r27:82500, Aug 23 2010, 17:18:21) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> copyright()
Copyright (c) 2000-2010 ActiveState Software Inc.

Xml with perl

Hello,

I have a large number of xml files in a folder. I want to read and extract the content of each xml file to a new.txt. I'm only interested in the content having the tag , and i want to create a .txt file (a texte file for each of my xml's). I use the perl modules xml twig and xml simple. There's the code i have until now:

my $xml_dir="C:\xmlperl";
my $output="C:\xmlperl\output.txt";
my $file = $ARGV[0];

opendir(DIR,$xml_dir) || die;

my @TranscriptsList = grep(/xml$/, readdir(DIR));
closedir(DIR);

foreach $file (@TranscriptsList) {

PerlCritic Aborting - Magic Number checking failed

When I attempt to run my perlcritic-gui.exe, I am getting an abend with the error message:

Failed to obtain list of policies from percritic-dump Magic number checking on storable fiel failed at ..\..\lib\Storable.pm (autosplit into ..\..\lib\auto\Storable\fd_retrieve.al) line 398, at /<C:\Program Files\ActiveState Perl Dev Kit 8.0.1\bin\perlcritic-gui.exe>PDK/PerlCritic/Policy.pm line 21

Does anyone have any idea what might need to be done to get PerlCritic to work?

Unable to Import my user created module

I built a module called "categories.py" and put it in the folder c:\pytemp .

I made sure that "c:\pytemp" was on the python path, and checked to see that it was in sys.path. It was the very first item after ''.

When I ran "import categories," I got the error "No module named categories"

I am new to the Python world, but it sure seems I followed the docs. What might work here?

Thanks.

Windows 7 error

Hi, trying to install a package on Windows 7 and suddenly a five minute task became an all day odyssey.

This is the error I get:

"All activated install areas are read-only. You cannot currently install or remove packages. Try enabling the uninitialized Areas in the Preferences dialog"

For some reason, Windows does not allow me (even running Explorer as admin) to change the ownership on "C:\Program Files (x86)\Perl\lib" to Full Control for my username.

Has anyone else experienced this?

Noob question

Hi,

I am a newbie to Perl and I like to know how perl scripts are used. I do not see a .pl in the addressbar of the browser in most of the websites I visited. Are perl scripts run at the background? or if it is part of an html frame? What if I want to create a guestbook using perl? Is it ok to have a .pl as the extension of my webpage?

Thanks for the help...

Windows Toplevel "X" Close Button Binding

I need to have a script run when a toplevel window is closed using the red "X" button in the top right hand corner of the window. I have done this before but I can't remember where I found the infromation.

If someone can give me an example or point me to the doucmentation that would be even better.

Found the answer...

bind . {...script...}

Read and compare russian imap-folder name with Mal::ImapClient

Hi.

I'm having troubles with reading mail from Exchange's common folders.
Folder names are russian, and when i'm try to read mail, have error (in this post russian symbols shows as ???):

#!perl -w
use strict;
use Mail::IMAPClient;
use Encode;
use Encode::IMAPUTF7;
use DBI;

my $imap = Mail::IMAPClient->new(
    Server      => 'mailservername',
    User        => 'loginname',
    Password    => 'password',
    Ssl         => 0,
    Uid         => 1,    
) or die "new failed: $@\n";

MSI and AS Package fail to install

I've been trying to install ActivePerl 5.12.1 for Windows 64.msi on Windows 7 and continue to get the following error:

Product: ActivePerl 5.12.1 Build 1201 (64-bit) -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action ConfigurePerl, location: C:\Windows\Installer\MSIAFFC.tmp, command: "C:\Perl64\bin\wperl.exe" "C:\Perl64\bin\config.pl"

Once the error occurs, the program rolls back and uninstalls itself.