Upgrading to latest Rose Bundle has broken Rose::HTML::Text

0 views
Skip to first unread message

James Masters

unread,
Jan 23, 2009, 7:59:51 AM1/23/09
to Rose::HTML::Objects
Today I upgraded my Rose installation to the latest stuff to try to
resolve a problem with Rose::DB::Object. I just did this in CPAN by
typing "install Bundle::Rose" which seemed to work. But now when I try
to run my module that was previously working fine, it crashes
horribly. Disaster (for me anyway)!! I may be wrong but it doesn't
seem to relate to my code but to some problem within Rose that I don't
understand:
Can't locate object method "valid_html_attrs" via package
"Rose::HTML::Text" at C:/Perl/site/lib/Rose/HTML/Text.pm line 11.
at C:/Perl/site/lib/Rose/HTML/Text.pm line 11
require Rose/HTML/Text.pm called at C:/Perl/site/lib/Rose/
HTML/
Label.pm line 5
Rose::HTML::Label::BEGIN() called at C:/Perl/site/lib/Rose/
HTML/
Text.pm line 0
eval {...} called at C:/Perl/site/lib/Rose/HTML/Text.pm line
0
require Rose/HTML/Label.pm called at C:/Perl/site/lib/Rose/
HTML/Form/
Field.pm line 10
Rose::HTML::Form::Field::BEGIN() called at C:/Perl/site/lib/
Rose/HTML/
Text.pm line 0
eval {...} called at C:/Perl/site/lib/Rose/HTML/Text.pm line
0
require Rose/HTML/Form/Field.pm called at C:/Perl/site/lib/
Rose/HTML/
Form.pm line 15
Rose::HTML::Form::BEGIN() called at C:/Perl/site/lib/Rose/
HTML/
Text.pm line 0
eval {...} called at C:/Perl/site/lib/Rose/HTML/Text.pm line
0
require Rose/HTML/Form.pm called at ../PROD/ProductForm.pm
line 6
PROD::ProductForm::BEGIN() called at C:/Perl/site/lib/Rose/
HTML/
Text.pm line 0
eval {...} called at C:/Perl/site/lib/Rose/HTML/Text.pm line
0
require PROD/ProductForm.pm called at C:/Information/mgroot/
cgi-bin/
opproduct.pl line 113
main::BEGIN() called at C:/Perl/site/lib/Rose/HTML/Text.pm
line 0
eval {...} called at C:/Perl/site/lib/Rose/HTML/Text.pm line
0
Compilation failed in require at C:/Perl/site/lib/Rose/HTML/Label.pm
line 5.



John Siracusa

unread,
Jan 23, 2009, 8:03:12 AM1/23/09
to rose-htm...@googlegroups.com
On Fri, Jan 23, 2009 at 7:44 AM, James Masters <ja...@mastersgames.com> wrote:
> I earlier upgraded my Rose installation to the latest stuff from CPAN

> by typing "install Bundle::Rose" which seemed to work.

Did all the modules pass all tests? So far, I have no failing reports
for RHTMLO version 0.601 from CPAN testers:

http://www.cpantesters.org/show/Rose-HTML-Objects.html#Rose-HTML-Objects-0.601

> But now when I try to run my module that was previously working fine,

> it crashes horribly. I may be wrong but it doesn't seem to relate to


> my code but to some problem within Rose that I don't understand:
> Can't locate object method "valid_html_attrs" via package
> "Rose::HTML::Text" at C:/Perl/site/lib/Rose/HTML/Text.pm line 11.
> at C:/Perl/site/lib/Rose/HTML/Text.pm line 11

That makes me think there was some sort of installation issue. Maybe
the old versions are still installed too? Can you even load the
Rose::HTML::Text module?

% perl -MRose::HTML::Text -e 0

-John

James Masters

unread,
Jan 23, 2009, 9:32:43 AM1/23/09
to Rose::HTML::Objects
I have just tried to run

> % perl -MRose::HTML::Text -e 0

It ran appeared to complete but with no errors and no output at all.
I am on Windows XP (he said, apologetically); maybe that's an issue.

John Siracusa

unread,
Jan 23, 2009, 10:15:58 AM1/23/09
to rose-htm...@googlegroups.com
On Fri, Jan 23, 2009 at 9:32 AM, James Masters <ja...@mastersgames.com> wrote:
> I have just tried to run
>
>> % perl -MRose::HTML::Text -e 0
>
> It ran appeared to complete but with no errors and no output at all.

Okay, that's correct. Now I guess try to build up from there (or
downwards from your actual code) until you get a minimal script that
reproduces your error.

-John

Reply all
Reply to author
Forward
0 new messages