You are here: Foswiki>Tasks Web>Item597 (08 Jan 2009, OlivierRaginel)Edit Attach

Item597: When trying to install any plugins, this one is is ChecklistTablePlugin it fails with the error below.

pencil
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component:
Branches:
Reported By: Foswiki:Main.EugenMayer
Waiting For:
Last Change By: OlivierRaginel
When trying to install any plugins, this one is is ChecklistTablePlugin it fails with the error below. I tried some plugins, always this error:

Insecure dependency in require while running with -T switch at /usr/share/perl5/LWP/UserAgent.pm line 421.
 at /usr/share/perl5/LWP/UserAgent.pm line 421
   LWP::UserAgent::get('LWP::UserAgent=HASH(0x9b33b00)', 'http://foswiki.org/pub/Extensions/ChecklistTablePlugin/Checkl...') called at /var/www/foswiki.local/tools/extender.pl line 392
   Foswiki::Extender::getComponent('ChecklistTablePlugin', 'ARRAY(0x94c5fc8)', 'archive') called at /var/www/foswiki.local/tools/extender.pl line 418
   Foswiki::Extender::getArchive('ChecklistTablePlugin') called at /var/www/foswiki.local/tools/extender.pl line 808
   Foswiki::Extender::_install('ARRAY(0xa1105d8)', 'ChecklistTablePlugin') called at /var/www/foswiki.local/tools/extender.pl line 911
   Foswiki::Extender::install('MANIFEST', 'data/System/ChecklistTablePlugin.txt,0644,\x{a}data/System/VarCHE...', 'DEPENDENCIES', '') called at /var/www/foswiki.local/ChecklistTablePlugin_installer line 141
   require /var/www/foswiki.local/ChecklistTablePlugin_installer called at /var/www/foswiki.local/lib/Foswiki/Configure/UIs/EXTEND.pm line 159
   eval {...} called at /var/www/foswiki.local/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x911bc20)') called at /var/www/foswiki.local/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local/bin/configure line 454
 at /usr/share/perl/5.10/CGI/Carp.pm line 356
   CGI::Carp::realdie('Insecure dependency in require while running with -T switch a...') called at /usr/share/perl/5.10/CGI/Carp.pm line 437
   CGI::Carp::die('Insecure dependency in require while running with -T switch a...') called at /var/www/foswiki.local/lib/Foswiki/Configure/UIs/EXTEND.pm line 161
   eval {...} called at /var/www/foswiki.local/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x911bc20)') called at /var/www/foswiki.local/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local/bin/configure line 454


tried with and without compat, same error EugenMayer :
Module Version
Perl v5.10.0
LWP 5.812

KennethLavrsen: Works for him
Module Version
Perl v5.8.8
LWP 5.805


after i updated CPAN and LWP to:
Module Version
Perl v5.10.0
LWP 5.822

i got further, but still failing
Insecure dependency in eval while running with -T switch at /var/www/foswiki.local.compat/tools/extender.pl line 794.
 at /var/www/foswiki.local.compat/tools/extender.pl line 794
   Foswiki::Extender::_install('ARRAY(0xaa72c90)', 'AttachmentUrlShortcutPlugin') called at /var/www/foswiki.local.compat/tools/extender.pl line 911
   Foswiki::Extender::install('MANIFEST', 'lib/Foswiki/Plugins/AttachmentUrlShortcutPlugin.pm,0444,Plugi...', 'DEPENDENCIES', '') called at /var/www/foswiki.local.compat/AttachmentUrlShortcutPlugin_installer line 141
   require /var/www/foswiki.local.compat/AttachmentUrlShortcutPlugin_installer called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 159
   eval {...} called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x9db0e68)') called at /var/www/foswiki.local.compat/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local.compat/bin/configure line 454
 at /usr/share/perl/5.10/CGI/Carp.pm line 356
   CGI::Carp::realdie('Insecure dependency in eval while running with -T switch at /...') called at /usr/share/perl/5.10/CGI/Carp.pm line 437
   CGI::Carp::die('Insecure dependency in eval while running with -T switch at /...') called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 161
   eval {...} called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x9db0e68)') called at /var/www/foswiki.local.compat/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local.compat/bin/configure line 454


Debuging i can see, that $source is somehow wrong, because
$source=$1
is not what is supposed to be, out of any reason it become "/var/www/foswiki.local.compat" what is my installation path of foswiki.compat. Looking at the regexp above :
 if ($path !~ /^(Foswiki|TWiki)::/) { .. } 
so, as $path is "AutoCompleteLibPlugin" is not matching (Foswiki|TWiki), $1 is something else and the whole thing explodes. forcing $source=Foswiki does not help, still getting the same error, even if i untaint $path just before. Beside all that, installing NatSkin now displays a different error :


Warning: CPAN is not available, some installer functions have been disabled

### PatternSkin Installer ###

This installer must be run from the root directory of your TWiki
installation.
    * You can abort the script at any point and re-run it later
    * If you answer 'no' to any questions you can always re-run
      the script again later

and
Insecure dependency in eval while running with -T switch at /var/www/foswiki.local.compat/tools/extender.pl line 196.
 at /var/www/foswiki.local.compat/tools/extender.pl line 196
   Foswiki::Extender::satisfy('HASH(0x8fad4f0)') called at /var/www/foswiki.local.compat/tools/extender.pl line 778
   Foswiki::Extender::_install('ARRAY(0x9ca15c8)', 'PatternSkin') called at /var/www/foswiki.local.compat/tools/extender.pl line 912
   Foswiki::Extender::install('http://foswiki.org/pub/Extensions', 'PatternSkin', 'PatternSkin', 'MANIFEST', 'lib/Foswiki/Contrib/PatternSkin.pm,0444,\x{a}data/_default/WebLef...', 'DEPENDENCIES', 'TWiki::Plugins::TwistyPlugin,>=1.000,1,perl,Required\x{a}TWiki::P...') called at /var/www/foswiki.local.compat/PatternSkin_installer line 141
   require /var/www/foswiki.local.compat/PatternSkin_installer called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 159
   eval {...} called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x8d9ced8)') called at /var/www/foswiki.local.compat/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local.compat/bin/configure line 454
 at /usr/share/perl/5.10/CGI/Carp.pm line 356
   CGI::Carp::realdie('Insecure dependency in eval while running with -T switch at /...') called at /usr/share/perl/5.10/CGI/Carp.pm line 437
   CGI::Carp::die('Insecure dependency in eval while running with -T switch at /...') called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 161
   eval {...} called at /var/www/foswiki.local.compat/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x8d9ced8)') called at /var/www/foswiki.local.compat/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /var/www/foswiki.local.compat/bin/configure line 454



Ok after some time of debugging with Olivier, we ended up like this:


For the record: This fails for me, too (beta2):
Module Version
Perl v5.10.0
CPAN 1.9205
LWP 5.814

Insecure dependency in require while running with -T switch at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 423.
 at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 423
   LWP::UserAgent::get('LWP::UserAgent=HASH(0x8fc0340)', 'http://foswiki.org/pub/Extensions/ChecklistTablePlugin/Checkl...') called at /home/httpd/foswiki/tools/extender.pl line 392
   Foswiki::Extender::getComponent('ChecklistTablePlugin', 'ARRAY(0x89fa728)', 'archive') called at /home/httpd/foswiki/tools/extender.pl line 418
   Foswiki::Extender::getArchive('ChecklistTablePlugin') called at /home/httpd/foswiki/tools/extender.pl line 808
   Foswiki::Extender::_install('ARRAY(0x95a1e58)', 'ChecklistTablePlugin') called at /home/httpd/foswiki/tools/extender.pl line 911
   Foswiki::Extender::install('MANIFEST', 'data/System/ChecklistTablePlugin.txt,0644,\x{a}data/System/VarCHE...', 'DEPENDENCIES', '') called at /home/httpd/foswiki/ChecklistTablePlugin_installer line 141
   require /home/httpd/foswiki/ChecklistTablePlugin_installer called at /home/httpd/foswiki/lib/Foswiki/Configure/UIs/EXTEND.pm line 159
   eval {...} called at /home/httpd/foswiki/lib/Foswiki/Configure/UIs/EXTEND.pm line 156
   Foswiki::Configure::UIs::EXTEND::ui('Foswiki::Configure::UIs::EXTEND=HASH(0x83444f0)') called at /home/httpd/foswiki/bin/configure line 561
   Foswiki::_actionInstallExtension() called at /home/httpd/foswiki/bin/configure line 454
 at /usr/lib/perl5/vendor_perl/5.10.0/CGI/Carp.pm line 356
[...]

After updating LWP, I still get:

Module Version
LWP 5.822

Insecure dependency in require while running with -T switch at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 397.
 at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 397
[...]

After updating CPAN as well (and installing Package::Alias which seems to cause the warning regarding CPAN not being available(?)), I get the exact same error message as Eugen above:

Module Version
CPAN 1.9301

Insecure dependency in eval while running with -T switch at /home/httpd/foswiki/tools/extender.pl line 794.
 at /home/httpd/foswiki/tools/extender.pl line 794
[...]


With the latest checkins i can now smoothly install all Plugins which are in Foswiki scope, trying to install TreeBrowserView fails fails with

Undefined subroutine &TWiki::Extender::install called at /var/www/www.collaborganize.de/core/TreeBrowserPlugin_installer line 104.

So seems to be a NS problem. But that is a different bug, i open a new one for this. If anybody still face problems here, reopen this please

For the record: The installation of Foswiki-Plugins (which don't have the forementioned namespace problem) now works for me as well wink

Re-openind this bug as the validatePerlModule function misses figures, so modules such as Digest::MD5 are truncated to Digest::MD, and thus can't be installed. Added a warning message about it too.

-- OlivierRaginel - 08 Jan 2009

ItemTemplate edit

Summary When trying to install any plugins, this one is is ChecklistTablePlugin it fails with the error below.
ReportedBy Foswiki:Main.EugenMayer
Codebase 1.0.0 beta2, 1.0.0 beta1
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:9c3b66066249 distro:20d14a79b4d0 distro:c751b2ed5dd3 distro:1750daeb7bc9 distro:57b4a9d98fae distro:da91caea649e
ReleasedIn
Topic revision: r14 - 08 Jan 2009, OlivierRaginel - This page was cached on 25 Feb 2018 - 14:48.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License