Opened 18 years ago
Closed 17 years ago
#4926 closed patch (duplicate)
MythTV.pm always prints an error if Net::UPnP::ControlPoint is not installed.
| Reported by: | Owned by: | xris | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | perl / nuvexport | Version: | 0.21-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Rob Smith | Ticket locked: | no |
Description
Some of my mythtv-status users have asked about an error message that is always printed from MythTV.pm which says:
Net::UPnP::ControlPoint is not installed!
Looking at the code this is always printed if Net::UPnP is not installed, even if UPnP isn't needed to be used. Then if MythTV.pm does try and fall back to UPnP but the module isn't present *another* warning is printed.
So I think this first warning isn't required. The attached patch removes it.
If this could go on 0.21-fixes that would be excllent. As it affects anyone using the Perl bindings included with 0.21 that don't have this often unrequired module installed.
Attachments (1)
Change History (11)
by , 18 years ago
| Attachment: | 0001-Don-t-bother-printing-an-error-if-Net-UPnP-Control.patch added |
|---|
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Actually, that patch fixes another problem. The print STDERR is still not required (which is what my patch removes).
comment:4 by , 18 years ago
i FOUND THE ERROR!!!!
its not just the Net::UPnP::ControlPoint that isnt installed. but ALSO Net::UPnP::QueryResponse
use "cpan" in a terminal and follow its prompts... then when its done with the configuration type this in the cpan prompt "install Perl Net::UPnP::ControlPoint" and dont forget "cpan> install Net::UPnP::QueryResponse"
then you should be able to run mythrename.pl or anything else giving the above error. example syntax for mythrename.pl is: /usr/share/mythtv/contrib/mythrename.pl --link /mnt/storage/RaidShare/Movies\ and\ Video/MYTHTVshows/ --format %T/%T%-%S
luv MediAWakE
comment:5 by , 18 years ago
While that stops the message appearing for you, I still think the message doesn't need to displayed unless UPnP actually fails because the module isn't present.
As it is, I've also been told that MythTV.pm will print out a message on STDERR if it actually wants to use UPnP to find the backend. This is a pain for people trying to use the module as well.
comment:6 by , 17 years ago
| Cc: | added |
|---|
comment:7 by , 17 years ago
I can confirm that the install of Net::UPnP::QueryResponse fixes the Net::UPnP::ControlPoint message
comment:8 by , 17 years ago
Excellent. But apply my patch will also fix the problem since UPnP isn't required for this module to work.
comment:9 by , 17 years ago
| Status: | new → assigned |
|---|

This is fixed properly by #4754. #4754 can be applied to both 0.21-fixes and trunk.