<div dir="ltr">daryl@trieli:/usr/local/bin$ sudo rm /tmp/hdhr_discovery.log<br>[sudo] password for daryl: <br>daryl@trieli:/usr/local/bin$ sudo ./hdhomerun_check.py <br>daryl@trieli:/usr/local/bin$<br><div><br></div><div>Does this now indicate a successful run of the script?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 13, 2023 at 7:54 PM Hika van den Hoven <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hoi Daryl,<br>
<br>
Friday, April 14, 2023, 1:37:29 AM, you wrote:<br>
<br>
> Hoi Daryl,<br>
<br>
> Friday, April 14, 2023, 1:20:22 AM, you wrote:<br>
<br>
>> sometimes they are available - sometimes not. When I run the check<br>
>> script from the terminal I see this:<br>
>> aryl@trieli:/usr/local/bin$ sudo ./hdhomerun_check.py <br>
>> [sudo] password for daryl: <br>
>> Traceback (most recent call last):<br>
>>   File "/usr/local/bin/./hdhomerun_check.py", line 64, in <module><br>
>>     main()<br>
>>   File "/usr/local/bin/./hdhomerun_check.py", line 31, in main<br>
>>     logging.basicConfig(filename='/tmp/hdhr_discovery.log',<br>
>>   File "/usr/lib/python3.10/logging/__init__.py", line 2040, in basicConfig<br>
>>     h = FileHandler(filename, mode,<br>
>>   File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__<br>
>>     StreamHandler.__init__(self, self._open())<br>
>>   File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open<br>
>>     return open_func(self.baseFilename, self.mode,<br>
>> PermissionError: [Errno 13] Permission denied: '/tmp/hdhr_discovery.log'<br>
>> daryl@trieli:/usr/local/bin$<br>
<br>
<br>
<br>
>> How do I correct this?     TIA  Daryl<br>
<br>
> My guess is that you have run this script as different users. It looks<br>
> like a bug in the script that does not anticipate this.<br>
> It can not write to the file: '/tmp/hdhr_discovery.log', so remove it,<br>
> if needed with sudo and try the script again.<br>
<br>
> If this indeed is the problem, the script should set world permissions<br>
> to the file to rw.<br>
<br>
If the script reuses the file you could fix it by manually setting the<br>
word permissions on that file to rw. If it deletes and recreates the<br>
file the script needs fixing.<br>
<br>
<br>
Tot mails,<br>
  Hika                            mailto:<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a><br>
<br>
"Zonder hoop kun je niet leven<br>
Zonder leven is er geen hoop<br>
Het eeuwige dilemma<br>
Zeker als je hoop moet vernietigen om te kunnen overleven!"<br>
<br>
De lerende Mens<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>