[mythtv-users] Mythweather - works in mythweb but not mythfrontend

Joe Ripley vitaminjoe at gmail.com
Tue Sep 23 16:29:44 UTC 2008


On Tue, Sep 23, 2008 at 4:15 AM, Drew Gilbert <gilbert.drew at gmail.com> wrote:
> Hi All,
>
> I'm having trouble getting mythweather to work in the frontend, it did work
> previously before upgrading to the latest (at the time) fixes 0.21-18198.  I
> tried rolling back to the previous version, but I get the same problem.
> Strangely this still works in mythweb.
>
> When trying to configure the sources in screen settings, I get messages like:
>
> 2008-09-19 17:20:07.706 Can't locate NWSLocation.pm in @INC (@INC contains:
> /usr/lib/perl5/site_perl/5.10.0 /usr/share/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl
> /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl
> /usr/share/perl5/core_perl /usr/lib/perl5/current/x86_64-linux-thread-multi
> /usr/lib/perl5/current /usr/lib/perl5/site_perl/current/x86_64-linux-thread-
> multi /usr/lib/perl5/site_perl/current) at
> /usr/share/mythtv/mythweather/scripts/us_nws/nwsxml.pl line 8.
>
> # ls -l /usr/share/mythtv/mythweather/scripts/us_nws/NWSLocation.pm
> -rw-r--r-- 1 root   root     3914 2008-08-26 23:24 NWSLocation.pm
>
> According to perldoc, I should have the $PERLLIB and $PERL5LIB environment
> variables set, so  I have done it system wide, both are the same:
>
> # echo $PERLLIB
> /usr/lib/perl5/site_perl/5.10.0:/usr/share/perl5/site_perl/5.10.0:/usr/lib/perl5/vendor_perl:
> /usr/share/perl5/vendor_perl:/usr/share/perl5/vendor_perl:/usr/lib/perl5/core_perl:/usr/share/perl5/core_perl:
> /usr/lib/perl5/current/x86_64-linux-thread-multi:/usr/lib/perl5/current:
> /usr/lib/perl5/site_perl/current/x86_64-linux-thread-multi:
> /usr/lib/perl5/site_perl/current:/usr/share/mythtv/mythweather/scripts/us_nws:
> /usr/share/mythtv/mythweather/scripts/uk_bbc
>
> The active screens that I selected prior to this breaking are still present,
> but in the details box it says "Source: Not Defined"
>
> The frontend is not running with root priviledges.

The PERL5LIB/PERLLIB environment variables seem to be different from
the @INC array.  According to your error message, PERL can't find
NWSLocation.pm in @INC.  I've noticed that '.' (i.e. the current
directory) is not in your @INC array.  Try changing your
/usr/share/mythtv/mythweather/scripts/us_nws/nwsxml.pl script to use
this as the header:

#! /usr/bin/perl -w -I./.

This will probably solve the problem for you.  This is usually only
necessary if you run the frontend as root (which you say you don't).
It's odd that the scripts run fine in MythWeb but not the frontend...

-- 
Joe Ripley
vitaminjoe at gmail.com


More information about the mythtv-users mailing list