ActiveState Community

Linux

Out of memory

OS: Linux

I am getting out of Memory when i am running Perl programm in Linux which read an XML and does some modifications.

the following is the program i used

use XML::DOM;

my $parser = new XML::DOM::Parser;
my $doc = $parser->parsefile("MDT179.xml");

my $nodes = $doc->getElementsByTagName("MDT_Entry");
my $n = $nodes->getLength;

for (my $i = 0; $i < $n; $i++)
{
my $node = $nodes->item($i);
my $MeasurementNumber = $node->getAttributeNode("MeasurementNumber");
$node->removeAttribute("MeasurementNumber");
if($MeasurementNumber->getValue eq "10353")
{

IndexError: list index out of range

OS: Linux | Product: Komodo | tags: install error tar.gz index unzip
Question:

I'm getting "IndexError: list index out of range" when I try to install Komodo on Linux. Why?

Answer:

The Komodo installer is a gzipped tarball. It needs to be decompressed and untarred with g(un)zip and GNU tar compatible tools ('tar xzvf ...' should work on most systems).

Unpacking the tar.gz file using some other tools (such as WinZip) may cause the archive to be corrupted or missing components, leading to install errors like this one:

install: Installing ActiveState Komodo to '/opt/Komodo-IDE-4'...
Traceback (most recent call last):
File "./support/_install.py", line 620, in 
sys.exit( main(sys.argv) )
File "./support/_install.py", line 607, in main
interactiveInstall(suppressShortcut)
File "./support/_install.py", line 506, in interactiveInstall
install(installDir, suppressShortcut)
File "./support/_install.py", line 515, in install
destDir=destDir)
File "./support/_install.py", line 397, in _install
"libpython?.?.so"))[0]
IndexError: list index out of range

If you are seeing errors like this, try re-downloading the tar.gz file and unpacking it with 'tar -xzvf Komodo-<version>-<platform>.tar.gz'.

Active tclsh 8.4.19 creates strange files under Linux

OS: Linux

Hi,

I have a strange bug with the last release of
Active Tcl under Linux (with KUbuntu).
Strange files have been created everywhere on my disk,
everytime I launch a Tcl script.
Reducing the problem, it seems that the tclsh
interpreter creates these files, as shown in the
following sample Linux session.
Do you have any idea of what may cause that ?

Best regards,

Michaël

testtmp$ ls -al
total 8
drwxr-xr-x 2 username username 4096 2008-09-10 09:15 .
drwxr-xr-x 10 username username 4096 2008-09-09 16:55 ..
testtmp$ tclsh
% set ::tcl_patchLevel
8.4.19
% exit

Using komodo to debug perl daemons remotely

OS: Linux

I am attempting to use Komodo (versions 4.3 and 4.4) to debug a perl daemon remotely. I get the remote debugging connection and debugging works fine right up to the point where the perl script does a fork. In this daemon, the parent simply exits and the child continues on. The perl daemon is actually running; you can see it with the ps command, but Komodo cannot seem to talk to it.

I looked back in the support forms and found some issues with Komodo and fork, but the problem really wasn't the same as mine.

Catalyst [perl] MVC Project Template

OS: Linux

Is their already a Catalyst MVC (Perl) project template?
If not, is there going to be?

I've watched the ruby on rails screen-casts and would like to see the same ease of "build" stuff with Catalyst (being the rails equiv for Perl)

I'm thinking about making a big dive and switching from cli+vim+tab terms+pdb+h2xs+firebug development tools pattern to an IDE.

Change to tab number (like Firefox)

OS: Linux

Hi.

Imagine you have 3 files opened (3 tabs). Is there a possible to quick jump to the th tab by doing Alt+ like you do in Firefox and others?

For instance, if you want to go to tab 2 you do Alt + 2...

This would be great! Thank you!

loading shared objects from SWIG

OS: Linux

I've built some C functions into shared object files with SWIG that I am able to successfully load into the ActiveTCL wish/tclsh interpreters and use. However, when I try to use the prefix files (base-tk-linux-x86_64) as interpreters, I get the following:

% load ccontrol.sl.lin64
couldn't load file "ccontrol.sl.lin64": ccontrol.sl.lin64: undefined symbol: Tcl_TraceVar

What am I doing wrong? I got this working before, but I don't remember how.

Thanks.

DBD:ODBC + ActivePerl

Hi,

I have been looking at a problem one ouf our customers was having using ActivePerl to connect via DBD:ODBC to our SQL Server driver on Linux. After investigating, the problem seems to be that the version of iODBC you have built your distribution with expects the W (wide) functions (SQLDriverConnectW, SQLConnectW) to use four byte unicode. Unfortunatly that will fail with just about every ODBC driver out there that exports the W functions, as most of those will expect 2 byte wide characters, just the same as on Windows

ActiveTcl installation on Linux

OS: Linux

Hi folks,

I've installed ActiveTcl 852 on my Linux, Fedora 8, through the GUI installer.
It was installed in /opt/ActiveTcl... (default).
The tcl lib got installed in /opt/ActiveTcl../lib and /include

Consequently, I cas unable to compile and link easily my C code with tcl, since gcc could not find the tcl.h file, nore the lib tcl. I've had to add manually links in /usr/local/include and /usr/local/lib.

This is strange to me. I thought that the ActiveState installer would / should have added such links for me, so that the tcl lib is found immediatly by the compiler.