Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Strange Class::Accessor::Chained::Fast error

by Gangabass (Vicar)
on Jan 02, 2012 at 06:22 UTC ( [id://945841]=perlquestion: print w/replies, xml ) Need Help??

Gangabass has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Monks. I have strange (for me) error fixing someones script. The code contain use Data::Pageset; which gives me this error message:
Error: Base class package "Class::Accessor::Chained::Fast" is empty.
    (Perhaps you need to 'use' the module which defines that package first.)
 at /usr/lib/perl5/site_perl/5.8.8/Data/Page.pm line 4
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Data/Page.pm line 4.

Callstack:
	1: Package main in File Page.pm, Sub (eval) @ Line 4
	2: Package Data::Pageset in File Pageset.pm, Sub Data::Pageset::BEGIN @ Line 6
	3: Package main in File Page.pm, Sub (eval) @ Line 4
	4: Package main in File Page.pm, Sub (eval) @ Line 4
	5: Package AUC::TEMPLATE in File TEMPLATE.pm, Sub AUC::TEMPLATE::BEGIN @ Line 473
	6: Package main in File Page.pm, Sub (eval) @ Line 4
	7: Package main in File Page.pm, Sub (eval) @ Line 4
	8: Package main in File Auction, Sub main::BEGIN @ Line 94
	9: Package main in File Page.pm, Sub (eval) @ Line 4
	10: Package main in File Page.pm, Sub (mainline) @ Line 4
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Data/Pageset.pm line 6.
On line 6 of Data/Pageset.pm i have just use Data::Page; and the 4th line of Data/Page.pm is standard use base 'Class::Accessor::Chained::Fast'; and this line gives me this empty error.

This thing is strange for me because than i run perl -MData::Page -e "1" from command line i have no errors. So i need a hint how i can fix this issue.

Thanks a lot.
Roman

Replies are listed 'Best First'.
Re: Strange Class::Accessor::Chained::Fast error
by Khen1950fx (Canon) on Jan 02, 2012 at 07:07 UTC
      Yes, i have Class::Accessor::Chained::Fast installed (checked it with cpan). But i don't understand what you mean by
      Line 6 should be use Data::Pageset;
      Because line 6 is from Data::Pageset...
Re: Strange Class::Accessor::Chained::Fast error
by choroba (Cardinal) on Jan 02, 2012 at 09:01 UTC
Re: Strange Class::Accessor::Chained::Fast error
by Gangabass (Vicar) on Jan 02, 2012 at 08:39 UTC
    I have fixed this issue: the Class::Accessor::Chained::Fast was install in my /home directory.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://945841]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found