Thread: RE: [Ssh-sftp-perl-users] 'new' breaks if using PDL.
Brought to you by:
dbrobins
From: David R. <dr...@at...> - 2005-02-23 20:51:47
|
I've reduced it to "perl -MPDL::Core -MCrypt::Random -e ''" and I still = get the error in Crypt::Random, so it isn't Net::SSH::Perl related. = That's not to say that I or someone else on the list won't help you = figure it out, of course; I'll keep looking into it. It looks like the issue involves Exporter (possibly the export cache), = perhaps PDL is doing evil things? -----Original Message----- From: ssh...@li... on behalf of Sean = Quinlan Sent: Wed 2/23/2005 2:35 PM To: ssh...@li... Cc: pe...@ja... Subject: [Ssh-sftp-perl-users] 'new' breaks if using PDL. I have a function in a module which executes a long process (blast) on a remote server via Net::SSH::Perl (NSP). This function is used by a number of different programs quite successfully (thanks!). However it recently started failing spectacularly in a program after I started using a module based on PDL (pdl.perl.org). The Perl version, OS and errors are below. I'm using NSP version 1.27 and PDL version 2.4.0. I've confirmed this as best I can by first stripping out use of my PDL based modules, then adding them back piece by piece. The error below doesn't occur until I have to add C<use PDL;> back in. I've also done a trial case by adding C<use PDL;> to a program that uses the blast function without error, and adding just the use statement causes the same errors as below. My first guess is this is from a namespace conflict of some kind? I'm hoping someone on these lists can help narrow down and resolve this issue with far more alacrity than I, although I am digging. Thanks! Sean 234: 1:57pm % perl -v This is perl, v5.8.3 built for alpha-dec_osf-thread-multi 235: 1:58pm % uname -a OSF1 huxley V5.1 1885 alpha [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: "makerandom" is not exported by the Crypt::Random module [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: "makerandom_itv" is not exported by the Crypt::Random module [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: "makerandom_octet" is not exported by the Crypt::Random module [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Can't continue after import errors at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random/Generator.pm line 12 [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random/Generator.pm line 12, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random.pm line 18, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random.pm line 18, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/DH.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/DH.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1. [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl.pm line 51. --=20 Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |
From: Steve S. <sap...@gs...> - 2005-02-23 23:45:43
|
This is (I think) actually a more general issue related to the UNIVERSAL package that comes with Perl. It's discussed here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-10/msg00163.html I had to modify UNIVERSAL.pm on my system to get rid of these errors. ---- Steve Sapovits |
From: Sean Q. <se...@qu...> - 2005-02-24 00:13:47
|
On Wed, 2005-02-23 at 18:45 -0500, Steve Sapovits wrote: > This is (I think) actually a more general issue related to the=20 > UNIVERSAL package that comes with Perl. It's discussed here: >=20 > http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-10/msg00163.h= tml >=20 > I had to modify UNIVERSAL.pm on my system to get rid of these > errors. =20 :( Why that is causing a problem just sailed right over my head. I'll look at it more closely in the morning. I notice that Crypt::Random uses *import =3D \&Exporter::import; Which is mentioned in the docs the email your referred to quotes. Is that what is the source of the error? I'd never seen that before. Do you have a guess why that conflicts with PDL when PDL doesn't seem to have a 'makerandom'? Personally I'd rather patch the modules than mess with UNIVERSAL, but if you could provide you patch so I could test it (rather than poke around myself for a bit ;) I'd appreciate it. Thanks! --=20 Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com |
From: Sean Q. <se...@qu...> - 2005-02-24 00:41:32
|
W00T!! Thanks Christian! That patch does seem to have fixed the problem. :) It has moved past that point on to another bug! I'll look over the UNIVERSAL fix Steve referred to JIK I need that later anyway. But unless PDL starts to fail because of this patch (I'll let you know immediately if it does), I seem to be back to debugging our own code. Thanks everyone! On Thu, 2005-02-24 at 12:31 +1300, Christian Soeller wrote: > With that info the following patch might fix things. Please try it (I=20 > assume the 'use UN...' is not really needed). >=20 > Christian >=20 > Index: Basic/Core/Core.pm.PL > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/pdl/PDL/Basic/Core/Core.pm.PL,v > retrieving revision 1.58 > diff -u -r1.58 Core.pm.PL > --- Basic/Core/Core.pm.PL 10 Jan 2005 03:38:39 -0000 1.58 > +++ Basic/Core/Core.pm.PL 24 Feb 2005 00:10:59 -0000 > @@ -515,7 +515,7 @@ > ####################### Overloaded operators ####################### >=20 > { package PDL; > - use UNIVERSAL 'isa'; # need that later in info function > + # use UNIVERSAL 'isa'; # need that later in info function > use Carp; >=20 > use overload ( >=20 >=20 >=20 >=20 --=20 Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com |
From: Steve S. <sap...@gs...> - 2005-02-24 00:26:08
|
I don't remember the details -- it's been a while since I patched it. What I do remember is that trying to patch the modules reporting the error just kept moving it to new modules and that only making the UNIVERSAL.pm change fixed it. I believe once I fixed it in the Crypt modules, it moved to something entirely unrelated. In part of the thread I referenced, there is a simple fix to UNIVERSAL.pm that fixes it for everyone. If you have more issues I'll see if I can find any remains of what I did in email threads, etc. ---- Steve Sapovits |
From: Sean Q. <se...@qu...> - 2005-02-24 00:38:14
|
Thanks Steve. I'll review the thread more closely tomorrow. On Wed, 2005-02-23 at 19:25 -0500, Steve Sapovits wrote: > I don't remember the details -- it's been a while since I patched > it. What I do remember is that trying to patch the modules reporting > the error just kept moving it to new modules and that only making the > UNIVERSAL.pm change fixed it. I believe once I fixed it in the Crypt > modules, it moved to something entirely unrelated. In part of the > thread I referenced, there is a simple fix to UNIVERSAL.pm that fixes > it for everyone. > > If you have more issues I'll see if I can find any remains of what I > did in email threads, etc. > > ---- > Steve Sapovits > > -- Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com |
From: Sean Q. <se...@qu...> - 2005-02-23 21:22:54
|
On Wed, 2005-02-23 at 15:51 -0500, David Robins wrote: > I've reduced it to "perl -MPDL::Core -MCrypt::Random -e ''" and I still get the error in Crypt::Random, so it isn't Net::SSH::Perl related. That's not to say that I or someone else on the list won't help you figure it out, of course; I'll keep looking into it. Many many thanks! I've CC'd the author of Crypt::Random JIK. > It looks like the issue involves Exporter (possibly the export cache), perhaps PDL is doing evil things? Having now read the source for Crypt::Random, that's looking more likely to be the case. I'm trying to find anything in PDL that might indicate culpability. I didn't grep any instances of 'makerandom' in the PDL source, which is too bad. I was really hoping it might be some odd namespace clash that could be found relatively easily. I did find this: /usr/local/lib/perl5/site_perl/5.8.3/alpha-dec_osf-thread-multi/auto/Crypt/Random/.packlist:/usr/local/bin/makerandom But I don't see how that would be the source of conflict. > -----Original Message----- > From: ssh...@li... on behalf of Sean Quinlan > Sent: Wed 2/23/2005 2:35 PM > To: ssh...@li... > Cc: pe...@ja... > Subject: [Ssh-sftp-perl-users] 'new' breaks if using PDL. > I have a function in a module which executes a long process (blast) on a > remote server via Net::SSH::Perl (NSP). This function is used by a > number of different programs quite successfully (thanks!). However it > recently started failing spectacularly in a program after I started > using a module based on PDL (pdl.perl.org). The Perl version, OS and > errors are below. I'm using NSP version 1.27 and PDL version 2.4.0. > > I've confirmed this as best I can by first stripping out use of my PDL > based modules, then adding them back piece by piece. The error below > doesn't occur until I have to add C<use PDL;> back in. I've also done a > trial case by adding C<use PDL;> to a program that uses the blast > function without error, and adding just the use statement causes the > same errors as below. > > My first guess is this is from a namespace conflict of some kind? I'm > hoping someone on these lists can help narrow down and resolve this > issue with far more alacrity than I, although I am digging. > > Thanks! > Sean > > 234: 1:57pm % perl -v > > This is perl, v5.8.3 built for alpha-dec_osf-thread-multi > > 235: 1:58pm % uname -a > OSF1 huxley V5.1 1885 alpha > > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: "makerandom" is not exported by the > Crypt::Random module > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: "makerandom_itv" is not exported by the > Crypt::Random module > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: "makerandom_octet" is not exported by > the Crypt::Random module > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Can't continue after import errors > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random/Generator.pm line > 12 > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random/Generator.pm line > 12, <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random.pm line 18, <GEN0> > line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/Random.pm line 18, <GEN0> > line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/DH.pm line 6, <GEN0> line > 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Crypt/DH.pm line 6, <GEN0> line > 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex/DH1.pm line 13, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex/DH1.pm line 13, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex.pm line 6, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/Kex.pm line 6, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: Compilation failed in require > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/SSH2.pm line 6, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: [Wed Feb 23 13:30:04 > 2005] profile-request-cgi.prl: BEGIN failed--compilation aborted > at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl/SSH2.pm line 6, > <GEN0> line 1. > [Wed Feb 23 13:30:04 2005] profile-request-cgi.prl: Compilation failed > in require at /usr/local/lib/perl5/site_perl/5.8.3/Net/SSH/Perl.pm line > 51. > -- Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com |
From: Sean Q. <se...@qu...> - 2005-02-23 21:34:36
|
On Wed, 2005-02-23 at 16:22 -0500, Sean Quinlan wrote: > On Wed, 2005-02-23 at 15:51 -0500, David Robins wrote: > > I've reduced it to "perl -MPDL::Core -MCrypt::Random -e ''" and I still= get the error in Crypt::Random, so it isn't Net::SSH::Perl related. That'= s not to say that I or someone else on the list won't help you figure it ou= t, of course; I'll keep looking into it. In case it helps anyone, reversing the order here causes both to load without error: perl -MCrypt::Random -MPDL::Core -e '' And this works: perl -MNet::SSH::Perl -MPDL -e '' But unfortunately changing the order in which modules are use'd in my programs doesn't help (I tried before and just double checked). I suspect this is because I use mod_perl, so I'd need to force NSP to load first at startup - I'm going to give that a try. --=20 Sean Patrick Quinlan se...@qu... Tired of spyware? Wish there was a better, more secure way to browse the internet? There is, Firefox! And it's free! http://www.getfirefox.com |